* Ed Greshko <Ed.Greshko@greshko.com> [03-03-10 13:15]:
Patrick Shanahan wrote:
But the OP was not using "convert" to change from his raw format to jpg, he was using dcraw. You are making unnecessary changes to his script.
I suppose you've never tried to solve a problem in a different way?
certainly, but not the point, in this case.
At the point where I first looked at it, I just wondered why the OP hadn't used convert to being with.
I saw that you suggested "convert", but then remarked that when changing formats the exif data was not transferred. But you then remarked that ufraw (ufraw-batch) would not.
In any event, his script didn't do as he wanted and I did provide an answer using exiftool.
a workable solution, I believe.
Maybe you can suggest what he needs to change in his script, using only the commands he had in it, to provide him with the results he desired.
I did, replacing dcraw with ufraw-batch. I did not research the different parameters necessary, but: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #!/bin/sh echo find -type f |wc -l images to convert. for x in ls *.pef | cut -d. -f1 do ## dcraw -f -c $x.pef | cjpeg -quality 90 > converted/big/$x.jpeg ufraw-batch --out-type jpeg --compression 90 --out-path \ ./converted/big/ --output=$x.jpeg $x.pef convert -scale 20% converted/big/$x.jpeg converted/small/$x.jpeg touch -r $x.pef converted/big/$x.jpeg converted/small/$x.jpeg done - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - should be close, not tested. And uses one less call and no pipe. Note the broken line, also that the script as presented works on files in the pwd.
That would seem to be time better spent than debating me. :-)
An argument of points, but debate? It's not a personal thing. -- 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