Hi Paul,
With exiftool you should almost never have to loop through files
yourself. You can change the -o option to something
like -o %d%f_new.jpg to add "_new.jpg" to all of the file
names, then instead of "original_file.jpg", use a directory name.
Then all images in the directory will be rewritten. Or, a different
way to do this is to use something like -o publish_dir/%f.jpg
to write the new images with the original names to a different
directory.
Your command doesn't work with CR2 images because you are
effectively destroying all proprietary Canon information with
-all=. Unfortunately some of this information is
necessary for converting the image. In general, you have to
be very careful about deleting information from RAW images.
Also, you should never change the Make and Model tags in
a RAW image because without this information the converters
will not be able to properly parse the file.
- Phil
(6)
]
