How to sketch using system libraries on Linux

I want to create a miniature file type view similar to the thumbnails displayed in gnome / kde. I wonder if anyone knows which libraries gnome / kde uses to display thumbnails of different types of files in Linux.

+4
source share
3 answers

There seems to be a D-BUS specification for sending requests to the cross-tooling Thumbnailing service called Tumber: http://gezeiten.org/post/2009/10/Using-Tumbler-in-Client-Applications

But the documentation seems very rare.

+1
source

ImageMagick is a command line tool and library. This library has interfaces for C ++ and Perl. Or you can also try GraphicsMagick .

0
source

The 'convert' utility 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 adapted here.

Given two directories, images and thumbnails /, this small script converts all images into thumbnails in another directory using the thumb. at the beginning of the file name:

#!/bin/bash for i in images/* do echo "Prcoessing $i ..." /usr/bin/convert -thumbnail 200 "$i" thumbnails/thumb.$(basename "$i") done 
-one
source

Source: https://habr.com/ru/post/1299923/


All Articles