请,这是我的小代码,用于创建保存在名为“pictures”的文件夹中的图片缩略图,并将它们保存在另一个名为“thumbs”的文件夹中。
#!/bin/bash
for i in *.jpg
do
convert -thumbnail 100 $i thumbs/$i
done
Run Code Online (Sandbox Code Playgroud)
但是,该程序没有做两件事:
它不会保留缩略图中的图片名称。例如,我希望它生成一个缩略图,名称pic.jpg
为图片名称pic.jpg
此外,当我运行该程序时,我不希望它为已经生成缩略图的图片生成缩略图,除非该图片已被修改。
任何帮助将不胜感激。
如何在 Ubuntu 20.10 中显示视频缩略图?
我尝试了这个解决方案Thumbnails not shown in video in Ubuntu 18.04 but does not work for 20.10
我目前可以看到 pdf 和 jpg 缩略图,但看不到视频缩略图。
请问有什么解决办法吗?
我在 Gnome 3.36.8 桌面上使用股票 Ubuntu 20.04.2(根据 gnome-control-center 的“关于”选项卡)。
鹦鹉螺版本:3.36.3
沮丧:
我很难在 Nautilus 中组织我的照片,因为最大可能的图像缩略图设置会导致缩略图以 164 像素的有效宽度显示。(一直以来~/.cache/thumbnails/large/
,实际的缩略图 .png 文件,in 中,仍然以更合理的、早期的默认 256 像素宽度保存。但有人决定在显示时,它们需要缩小到 164 像素。)
我发现了有关放大 Nautilus 缩略图的问题:
org.gnome.nautilus.icon-view thumbnail-size
了~/.cache
宽度如此之大的原因;调整大小发生在前端,在显示时我的用例:
/
分区上只剩下 19GB ,如果我不需要把它填满我会很高兴。当我使用 Gthumb 时,我发现它不太适合与文件管理器相关的任务(移动文件);同时我不想使用 Shotwell,因为它非常不灵活(多亏了它的“导入”程序)。
推荐的替代文件管理器似乎都包含了整个相应的桌面:
这似乎是一个巨大的开销,因此是一个低效的解决方案。 …
我使用 Nemo 作为默认文件浏览器,我想使用ffmpegthumbnailer生成缩略图。所以我安装了ffmpegthumbnailer并编辑了totem.thumbnailer文件/usr/share/thumbnailers
并添加
TryExec=/usr/bin/ffmpegthumbnailer
Exec=/usr/bin/ffmpegthumbnailer -s %s -i %i -o %o -c png -f
这样我的系统就会使用ffmpegthumbnailer
Buttotem-video-thumbnailer
每次我这样做时,nemo (和 nautilus)都会停止生成 mp3 缩略图,如下图 ( 2 ) 所示。我想使用它ffmpegthumbnailer
,因为您可以使视频具有电影片段覆盖(2),并且因为totem-video-thumbnailer
某些视频文件缩略图上有紫色(1)。
1 . 带 totem-video-thumbnailer 的 Mp3 和视频文件
2 . 使用 ffmpegthumbnailer 的 Mp3 和视频文件
因此,当我使用下面的原始 totem.thumbnailer 行时,我得到了图片1。
我的原始 totem.thumbnailer 文件包含 totem-video-thumbnailer 行:
[Thumbnailer Entry]
TryExec=/usr/bin/totem-video-thumbnailer
Exec=/usr/bin/totem-video-thumbnailer -s %s %u %o
MimeType=application/mxf;application/ogg;application/ram;application/sdp;application/vnd.apple.mpegurl;application/vnd.ms-asf;application/vnd.ms-wpl;application/vnd.rn-realmedia;application/vnd.rn-realmedia-vbr;application/x-extension-m4a;application/x-extension-mp4;application/x-flash-video;application/x-matroska;application/x-netshow-channel;application/x-ogg;application/x-quicktimeplayer;application/x-shorten;image/vnd.rn-realpix;image/x-pict;misc/ultravox;text/x-google-video-pointer;video/3gp;video/3gpp;video/3gpp2;video/dv;video/divx;video/fli;video/flv;video/mp2t;video/mp4;video/mp4v-es;video/mpeg;video/mpeg-system;video/msvideo;video/ogg;video/quicktime;video/vivo;video/vnd.divx;video/vnd.mpegurl;video/vnd.rn-realvideo;video/vnd.vivo;video/webm;video/x-anim;video/x-avi;video/x-flc;video/x-fli;video/x-flic;video/x-flv;video/x-m4v;video/x-matroska;video/x-mpeg;video/x-mpeg2;video/x-ms-asf;video/x-ms-asf-plugin;video/x-ms-asx;video/x-msvideo;video/x-ms-wm;video/x-ms-wmv;video/x-ms-wmx;video/x-ms-wvx;video/x-nsv;video/x-ogm+ogg;video/x-theora;video/x-theora+ogg;video/x-totem-stream;audio/x-pn-realaudio;audio/3gpp;audio/3gpp2;audio/aac;audio/ac3;audio/AMR;audio/AMR-WB;audio/basic;audio/dv;audio/eac3;audio/flac;audio/m4a;audio/midi;audio/mp1;audio/mp2;audio/mp3;audio/mp4;audio/mpeg;audio/mpg;audio/ogg;audio/opus;audio/prs.sid;audio/scpls;audio/vnd.rn-realaudio;audio/wav;audio/webm;audio/x-aac;audio/x-aiff;audio/x-ape;audio/x-flac;audio/x-gsm;audio/x-it;audio/x-m4a;audio/x-matroska;audio/x-mod;audio/x-mp1;audio/x-mp2;audio/x-mp3;audio/x-mpg;audio/x-mpeg;audio/x-ms-asf;audio/x-ms-asx;audio/x-ms-wax;audio/x-ms-wma;audio/x-musepack;audio/x-pn-aiff;audio/x-pn-au;audio/x-pn-wav;audio/x-pn-windows-acm;audio/x-realaudio;audio/x-real-audio;audio/x-s3m;audio/x-sbc;audio/x-shorten;audio/x-speex;audio/x-stm;audio/x-tta;audio/x-wav;audio/x-wavpack;audio/x-vorbis;audio/x-vorbis+ogg;audio/x-xm;application/x-flac;
Run Code Online (Sandbox Code Playgroud)
当我使用它时(带有 ffmpegthumbnailer 行的 totem.thumbnailer …
我读过图标存储在哪里?关于 Ubuntu 内置图标的位置(例如/usr/share/icons/gnome/256x256/appsgnome-terminal.png
)。
但例如,我对新图像的图标位置感到困惑。假设我在一个特定的目录中有一个非常大的.eps
文件.bmp
,我想知道它的图标位于哪里(如果在某个地方)以及如何访问它/它们。