> I created a batch file with mogrify x160 <path>*.jpg to resize them

Hmm, 160 pixels... Ever think of just extracting the embedded thumbnail 
from the image instead?

I use a program called 'jhead' (mentioned MANY times on this list) to 
extract the thumbnails.  MUCH faster then running convert/mogrify on 
your images.

I just ran a little speed test and on a 7200rpm IDE drive, AMD XP 2600+, 
it took 1.8 seconds to extract the embedded 120x160 thumbnail from 203 
1DmkII images.

Now these images do have a little black border on one side, so I then 
run mogrify -shave x7 on the output from 'jhead'.  A little under 7 
seconds to shave off the black part from 1000 images.

I did to this in 1 shot, but if you have 10's of thousands of photos all 
in the same directory...(I won't even ask why they aren't in 
subdirectories), I would get a list of images and split that list into 
much smaller chunks, say 2500 images and then run mogrify on those 
smaller chunks, or you can just loop over every image, your call, but I 
think the split will be faster as you will be sending more images into 
mogrify at a time

example:
jhead -st "thumbs/&i" *jpg
ls|split -l 2500
for i in x*; do 
        mogrify -shave x7 $(cat $i)
done


If that doesn't work for you, you might also want to give IM a hint when 
resizing the images with the '-size' operator.  I found when resizing 
larger images (e.g. 2464x1648, 3304x2336, etc) in to smaller images 
(e.g. 408x272) if I give "-size 408x272" or "-size 1000x1000" before 
the "-geometry" option, then it ran A LOT faster.

good luck,
brian
-- 
Brian Jackson
Action Athletics Sports Photography
[EMAIL PROTECTED]
http://www.ActionAthletics.com/
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to