Just as an update - I think that this ExifTool command could be better suited for re-inserting the EXIF tags into TIFF:
Code: Select all
exiftool -EXIF:XResolution= -EXIF:YResolution= -EXIF:ResolutionUnit= -IPTC:All= -tagsFromFile image.jpg -EXIF:All --IFD1:All -IPTC:All image.tif
(The other profiles should already be preserved by ImageMagick. I've also added some special treatment for the density and the IPTC profile, as there could be some minor problems with that when IM converts from JPG to TIFF.)
One probably should also check the return code/errorlevel after these commands, as with some files, there might be errors that would hinder ExifTool from inserting the tags.
posterChild wrote:Using just convert, is there a way to supply the exif data as tiff attributes via a 'profile'?
You can save the EXIF profile with ImageMagick. But it won't help you. Example:
Code: Select all
convert pagoda_sm.jpg -compress zip -quality 95 pagoda_sm.tif
convert pagoda_sm.jpg exif:pagoda.exif
mogrify -set profile exif:pagoda.exif pagoda_sm.tif
The last command would work for a JPG file. But not for a TIFF file - as ImageMagick doesn't know a separate EXIF "profile" in TIFF (only some tiff: attributes). Of course, simply replacing the whole profile would be problematic, too, as part of the EXIF tags in TIFF contain the main header values.
By the way: According to the
documentation, there is a "-define tiff:exif=true" option for TIFF files ('to read the EXIF profile'). But in a current ImageMagick, it doesn't seem to make a difference.
So, maybe the handling of the EXIF tags with TIFF could be improved in ImageMagick. (Maybe, libtiff would have to be adjusted, too. Though, libtiff itself seems to be able to at least read all the EXIF tags/MakerNotes in a TIFF file.)
posterChild wrote:In any case, should this be officially requested somehow?
A request shouldn't hurt.
