如何在 Linux 中使用系统库创建缩略图视图
我想创建类似于 gnome/kde 中显示的缩略图的文件类型的缩略图视图。 想知道是否有人知道 gnome/kde 使用哪些库来显示 Linux 中不同文件类型的缩略图。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
我想创建类似于 gnome/kde 中显示的缩略图的文件类型的缩略图视图。 想知道是否有人知道 gnome/kde 使用哪些库来显示 Linux 中不同文件类型的缩略图。
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(3)
似乎有一个 D-BUS 规范用于将请求发送到名为 Tumber 的跨工具包缩略图服务: http://gezeiten.org/post/2009/10/Using-Tumbler-in-Client-Applications
但文档似乎非常稀疏。
It appears there is a D-BUS specification for sending requests to a cross-toolkit Thumbnailing service called Tumber: http://gezeiten.org/post/2009/10/Using-Tumbler-in-Client-Applications
But documentation seems to be very sparse.
ImageMagick 是一个命令行工具和库。该库具有 C++ 和 Perl 的接口。或者您也可以尝试 GraphicsMagick。
ImageMagick is a command-line tool and the library. This library has interfaces for C++ and Perl. Or you can also try GraphicsMagick.
ImageMagick 中的实用程序“convert”通常用于此目的。
http://www. cyberciti.biz/tips/howto-linux-creating-a-image-thumbnails-from-shell-prompt.html 有一个我在此处改编的示例。
给定两个目录,images/和thumbnails/,这个小脚本会将所有图像转换为另一个目录中的缩略图,并带有“thumb”。在文件名的开头:
The utility 'convert' from ImageMagick is often used for this.
http://www.cyberciti.biz/tips/howto-linux-creating-a-image-thumbnails-from-shell-prompt.html has an example that I have adapted here.
Given two directories, images/ and thumbnails/, this little script will convert all the images into thumbnails in the other directory, with 'thumb.' at the start of the filename :