[SLE] generating thumbnails from jpeg pictures
Hi, I want to generate thumbnail pictures from jpeg files. I there any tool about that can be used for that from the shell?? I want to run this via script if possible. I failed sofar with gphoto (the thumbs are nice, but there is no obvious relation between their filenames and the originals ;-( ) Further, I didn't get gimp to run in batch mode. If I try the latter, I always get an error message, like: brauki@marvin:/home/brauki/picts > gimp -n -b '(file-jpeg-load 0 "dscn0022.jpg" "dscn0022.jpg")' '(gimp-image-scale "dscn0022.jpg" 128 96)' '(file-jpeg-save 0 "t-dscn0022.jpg" )' '(gimp-quit 0)' Gdk-WARNING **: locale not supported by C library batch command: executed successfully. batch command: experienced an execution error. batch command: experienced an execution error. brauki@marvin:/home/brauki/picts > The use of gimp's scripts is not obvious to me- ;-(( Any help apreciated. Juergen -- =========================================== __ _ Juergen Braukmann juergen.braukmann@gmx.de| -o)/ / (_)__ __ ____ __ Tel: 0201-743648 dk4jb@db0qs.#nrw.deu.eu | /\\ /__/ / _ \/ // /\ \/ / ===========================================_\_v __/_/_//_/\_,_/ /_/\_\ -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq
You're in luck! I just ran accross this yesterday, I haven't used it, but it is written in Python (seriously cool lang!) and should be fairly easy to modify. Also generates an html page! http://kpd.twu.net/gallery/gallery.html Regards, Adi Gadwale. On Thu, 12 Oct 2000 juergen.braukmann@ruhr-west.de wrote:
Hi,
I want to generate thumbnail pictures from jpeg files. I there any tool about that can be used for that from the shell?? I want to run this via script if possible.
I failed sofar with gphoto (the thumbs are nice, but there is no obvious relation between their filenames and the originals ;-( ) Further, I didn't get gimp to run in batch mode. If I try the latter, I always get an error message, like:
brauki@marvin:/home/brauki/picts > gimp -n -b '(file-jpeg-load 0 "dscn0022.jpg" "dscn0022.jpg")' '(gimp-image-scale "dscn0022.jpg" 128 96)' '(file-jpeg-save 0 "t-dscn0022.jpg" )' '(gimp-quit 0)'
Gdk-WARNING **: locale not supported by C library batch command: executed successfully. batch command: experienced an execution error. batch command: experienced an execution error. brauki@marvin:/home/brauki/picts >
The use of gimp's scripts is not obvious to me- ;-((
Any help apreciated.
Juergen
-- =========================================== __ _ Juergen Braukmann juergen.braukmann@gmx.de| -o)/ / (_)__ __ ____ __ Tel: 0201-743648 dk4jb@db0qs.#nrw.deu.eu | /\\ /__/ / _ \/ // /\ \/ / ===========================================_\_v __/_/_//_/\_,_/ /_/\_\
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq
juergen.braukmann@ruhr-west.de wrote:
Hi,
I want to generate thumbnail pictures from jpeg files. I there any tool about that can be used for that from the shell?? I want to run this via script if possible.
I have had good luck with igal, a perl script which makes thumbnails, html pages with links to the full photos, and slide shows. http://www.stanford.edu/~epop/igal -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq
juergen.braukmann@ruhr-west.de tapped away at the keyboard with:
I want to generate thumbnail pictures from jpeg files. I there any tool about that can be used for that from the shell?? I want to run this via script if possible.
I failed sofar with gphoto (the thumbs are nice, but there is no obvious relation between their filenames and the originals ;-( ) Further, I didn't get gimp to run in batch mode. If I try the latter, I always get an error message, like:
I hacked a quick and dirty script that creates a set of varied-resolution images in different sub-directories from the images in the current directory. Hack follows the signature bit of the message. Next time around, I'll make it smarter so it's not always reducing from the original, large image! It's a start anyways... all from command-line in one (piped) line. At least it gives you the names of required commands. -- Bernd Felsche - Innovative Reckoning Perth, Western Australia for r in 200 400 800 ; do mkdir $r 2>/dev/null || : for j in pic1[23]r.jpeg ; do echo "$r $j \c" time djpeg $j| pnmscale -xysize $r $r| cjpeg -quality 80 -optimize -progressive -maxmemory 20m | wrjpgcom -comment "Scan by Bernd Felsche" > $r/$j done done -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq
participants (4)
-
adi@gadwale.com
-
bernie@innovative.iinet.net.au
-
juergen.braukmann@ruhr-west.de
-
zentara@gypsyfarm.com