Main Menu

Long UserComment

Started by tadej, September 17, 2015, 07:28:51 PM

Previous topic - Next topic

tadej

Hi,
I am wondering how long can UserComment be. Instead  try and catch I'd rather ask  :).
What happens if it is too long during write and what does too long actually mean?
What happens when long UserComment is read?
I will use UserComment to exchange Picture Info beetween different programs. As a sort of a container.
I have experienced that not all characters can be used.
BR Tadej

Phil Harvey

UserComment may be up to about 2 GB in a TIFF image, or 64 kB in a JPEG image, but it generally uses a character encoding, so valid characters should be used probably (limited to the UCS-2 character set).

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).