Hi all, I'm looking for a command line program that will perform resizing, etc. on an image. Batch processing would be an advantage. The idea is that I want to make thumbnails for a large number of jpeg images, and I would like it to do this automatically, from within a script. I'm sure I've heard of something before, but I can't quite remember what it's called. I anyone knows the name of such a program, could you let me know. Thanks in advance, Chris -- __ _ -o)/ / (_)__ __ ____ __ Chris Reeves /\\ /__/ / _ \/ // /\ \/ / ICQ# 22219005 _\_v __/_/_//_/\_,_/ /_/\_\
also sprach Chris Reeves (on Mon, 22 Jan 2001 05:31:28PM +0000):
I'm looking for a command line program that will perform resizing, etc. on an image. Batch processing would be an advantage. The idea is that I want to make thumbnails for a large number of jpeg images, and I would like it to do this automatically, from within a script. I'm sure I've heard of something before, but I can't quite remember what it's called.
ImageMagick will do the trick. martin [greetings from the heart of the sun]# echo madduck@!#:1:s@\@@@.net -- the young lady had an unusual list, linked in part to a structural weakness. she set no preconditions.
On Mon, 22 Jan 2001, MaD dUCK wrote: <*]Date: Mon, 22 Jan 2001 12:37:21 -0500 <*]From: MaD dUCK <madduck@madduck.net> <*]To: Chris Reeves <chris.reeves@iname.com> <*]Cc: SuSE Mailing List <suse-linux-e@suse.com> <*]Subject: Re: [SLE] Command-line image processing <*] <*]also sprach Chris Reeves (on Mon, 22 Jan 2001 05:31:28PM +0000): <*]> I'm looking for a command line program that will perform resizing, etc. <*]> on an image. Batch processing would be an advantage. The idea is that I <*]> want to make thumbnails for a large number of jpeg images, and I would <*]> like it to do this automatically, from within a script. I'm sure I've <*]> heard of something before, but I can't quite remember what it's called. <*] <*]ImageMagick will do the trick. <*] I don't know about ImageMagick alone, but ImageMakick + Photoaddict will create a complete set of thumbnails with a HTML index gathering them all, helping you (or anyone else) to visualize the whole set easily. ciao /NB ________________ Nicolas Beaulieu Teamwork is essential: it allows you to blame someone else. _________________
also sprach Nicolas Beaulieu (on Mon, 22 Jan 2001 01:20:49PM -0500):
I don't know about ImageMagick alone, but ImageMakick + Photoaddict will create a complete set of thumbnails with a HTML index gathering them all, helping you (or anyone else) to visualize the whole set easily.
check out the attached bash function which, in combination with ImageMagick 5.x will do the trick. martin [greetings from the heart of the sun]# echo madduck@!#:1:s@\@@@.net -- "it's not easy, being green." -- kermit the frog
MaD dUCK wrote:
also sprach Nicolas Beaulieu (on Mon, 22 Jan 2001 01:20:49PM -0500):
I don't know about ImageMagick alone, but ImageMakick + Photoaddict will create a complete set of thumbnails with a HTML index gathering them all, helping you (or anyone else) to visualize the whole set easily.
check out the attached bash function which, in combination with ImageMagick 5.x will do the trick.
Thanks Nicolas and Martin. convert, part of ImageMagick, does the trick nicely. I thought the program was called ImageMagick, but I couldn't find any man pages about it - the capitals make it harder to find ;-) My script now converts the jpeg images on the fly if there's no thumbnail, so the users can just put any images in the gallery I was working on, and the thumbnails are automatially generated :-> Thanks again, Chris -- __ _ -o)/ / (_)__ __ ____ __ Chris Reeves /\\ /__/ / _ \/ // /\ \/ / ICQ# 22219005 _\_v __/_/_//_/\_,_/ /_/\_\
On Mon, 22 Jan 2001, Chris wrote:
I'm looking for a command line program that will perform resizing, etc. on an image. Batch processing would be an advantage. The idea is that I want to make thumbnails for a large number of jpeg images, and I would like it to do this automatically, from within a script.
If you have ImageMagick installed (most systems do), try for image in *.jpg; do convert -geometry 160x120 $image thumb-$image To use this, put all your images in one directory and run the script. Change the thumbnail dimensions to whatever you want. Your thumbnail file names will all begin with thumb-, for example bike.jpg will have a matching thumbnail called thumb-bike.jpg *************************************************** Powered by SuSE Linux 7.0 Professional KMail 1.0.29.2 Bryan S. Tyson bryantyson@earthlink.net ***************************************************
This script doesn't always work. If you just add a ! after the geometry specification it will, thusly: for image in *.jpg; do
convert $image -geometry 160x120! thumb-$image done
måndag 22 januari 2001 19:28 skrev Bryan S. Tyson:
On Mon, 22 Jan 2001, Chris wrote:
I'm looking for a command line program that will perform resizing, etc. on an image. Batch processing would be an advantage. The idea is that I want to make thumbnails for a large number of jpeg images, and I would like it to do this automatically, from within a script.
If you have ImageMagick installed (most systems do), try
for image in *.jpg; do convert -geometry 160x120 $image thumb-$image
To use this, put all your images in one directory and run the script. Change the thumbnail dimensions to whatever you want. Your thumbnail file names will all begin with thumb-, for example bike.jpg will have a matching thumbnail called thumb-bike.jpg
*************************************************** Powered by SuSE Linux 7.0 Professional KMail 1.0.29.2
Bryan S. Tyson bryantyson@earthlink.net ***************************************************
participants (5)
-
Anders Dahlqvist
-
Bryan S. Tyson
-
Chris Reeves
-
MaD dUCK
-
Nicolas Beaulieu