6.8.3-8: Error writing zero-length TIFF tags
Posted: 2013-03-12T14:44:22-07:00
libtiff doesn't seem to like zero-length custom tags such as Photoshop or Microscope:
convert: ./123770.tif: Null count for "Photoshop" (type 1, writecount -3, passcount 1). `_TIFFVSetField' @ error/tiff.c/TIFFErrors/562.
Since this is a TIFFError, convert exits with a nonzero return code, although the file is written (maybe incomplete).
A zero-length tag doesn't make much sense here anyway, so could you please test whether the profile is empty before writing a 37724 or 34118 tag in TIFFSetProfiles?
Currently, I don't know whether this also applies to "standard" tags such as TIFFTAG_ICCPROFILE.
convert: ./123770.tif: Null count for "Photoshop" (type 1, writecount -3, passcount 1). `_TIFFVSetField' @ error/tiff.c/TIFFErrors/562.
Since this is a TIFFError, convert exits with a nonzero return code, although the file is written (maybe incomplete).
A zero-length tag doesn't make much sense here anyway, so could you please test whether the profile is empty before writing a 37724 or 34118 tag in TIFFSetProfiles?
Currently, I don't know whether this also applies to "standard" tags such as TIFFTAG_ICCPROFILE.