View Single Post
Old 01-31-2008, 05:00 AM   #4
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,560
Karma: 20150435
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
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.
Jellby is offline   Reply With Quote