Shiny New E-Book Gizmo: The Amazon Kindle


View Full Version : PDF thumbnail images


cap
01-28-2008, 02:25 PM
If anyone's struggling to generate thumbnail images of pdfs with linux -- there is a solution at
http://konrad.familie-kieling.de/computer/35-devices/47-cybook-gen3-pdf-thumbnail-images

tompe
01-28-2008, 03:52 PM
If anyone's struggling to generate thumbnail images of pdfs with linux -- there is a solution at
http://konrad.familie-kieling.de/computer/35-devices/47-cybook-gen3-pdf-thumbnail-images

Anybody tested if it works adding the thumbnail file? I tried it with images and it did not work. The thumbnail was regenerated in spite of me having put a thumb nail file on the card.

cap
01-29-2008, 12:55 PM
Anybody tested if it works adding the thumbnail file? I tried it with images and it did not work. The thumbnail was regenerated in spite of me having put a thumb nail file on the card.

yes. the script mentioned above works perfectly for me. you can adapt it to generate thumbnails for images by changing lines 10-13 and 26 appropriately. find an updated version here:

http://konrad.familie-kieling.de/code/t2b

Jellby
01-31-2008, 04:00 AM
Why not use this line instead?:

'convert -resize 96x144 -dither -map \"$palette\" \"$file\" PNM:- | pnmtopng 2>/dev/null |'

It seems to work just as well, and it uses one less command (djpeg) and allows for filenames with spaces. What I could not find is the way to generate the correct kind of PNG file directly with convert, without the need for pnmtopng.