convert uncompressed -> compressed tif loses metadata
Posted: 2013-11-27T12:12:15-07:00
I use Silkypix to convert the raw files from my Fuji X-E1 to tif (in spite of it's abominable interface, it seems to produce the best raw conversion, but it will only save tif as uncompressed), and I then use convert to change the uncompressed tif files that Silkypix outputs to LZW compressed tif, which reduces the image sizes by about 50%. However, the conversion to compressed loses most of the image metadata - compared to the uncompressed file, the compressed tif is missing information for aperture, focal length, exposure, ISO setting, camera mode, program mode.
The command I'm using is:
and for each image it converts, I get the following series of warning/error messages:
OS is Ubuntu 13.10, and ImageMagick version information shows as:
Is it possible to prevent the metadata being lost when converting to compressed tif?
The command I'm using is:
Code: Select all
find . -maxdepth 1 -iname '*tif' -exec convert -compress lzw {} {} \;
Code: Select all
convert.im6: Incompatible type for "FileSource"; tag ignored. `TIFFFetchNormalTag' @ warning/tiff.c/TIFFWarnings/768.
convert.im6: Incompatible type for "SceneType"; tag ignored. `TIFFFetchNormalTag' @ warning/tiff.c/TIFFWarnings/768.
convert.im6: Unknown field with tag 42034 (0xa432) encountered. `TIFFReadCustomDirectory' @ warning/tiff.c/TIFFWarnings/768.
convert.im6: Unknown field with tag 42035 (0xa433) encountered. `TIFFReadCustomDirectory' @ warning/tiff.c/TIFFWarnings/768.
convert.im6: Unknown field with tag 42036 (0xa434) encountered. `TIFFReadCustomDirectory' @ warning/tiff.c/TIFFWarnings/768.
convert.im6: Unknown field with tag 42037 (0xa435) encountered. `TIFFReadCustomDirectory' @ warning/tiff.c/TIFFWarnings/768.
convert.im6: Unknown field with tag 42240 (0xa500) encountered. `TIFFReadCustomDirectory' @ warning/tiff.c/TIFFWarnings/768.
Code: Select all
nick@nick-desktop:~$ convert --version
Version: ImageMagick 6.7.7-10 2013-09-10 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC
Features: OpenMP