* Rikard Johnels <rikard.j@rikjoh.com> [03-03-10 14:43]:
convert -scale 20% converted/big/$x.jpeg converted/small/$x.jpeg touch -r $x.pef converted/big/$x.jpeg converted/small/$x.jpeg done
/Rikard Johnels
After reading through some of the helpful tips i got, i mangled my script to look like this:
#!/bin/sh
echo `find -type f |wc -l` images to convert. for x in `ls *.pef | cut -d. -f1` do ufraw-batch --out-type jpeg --compression=95 --exif \ --out-path=./converted/big $x.pef
convert -scale 20% converted/big/$x.jpeg converted/small/$x.jpeg ## ufraw-batch --out-type jpeg --compression=95 --exif \ --out-path=./converted/small --shrink=5 $x.pef
touch -r $x.pef converted/big/$x.jpg converted/small/$x.jpg done
It may not be elegant, and it aint all that fast especially when i convert some 90 images in a row, but it gets the work done. As stated before; I am (sadly) NOT fluent in any script writing, so i wing it...
Anyone have a nicer, faster way to convert please feel free to show us how you did it.
** Should be faster as it takes less time to resize a jpeg than to convert from raw to jpeg, *and* should (you need to check) retain the exif information. Glad you have something workable. -- Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://counter.li.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org