No error message writing invalid values to PNG:PixelsPerUnitX/Y

Started by StarGeek, December 15, 2024, 03:06:10 PM

Previous topic - Next topic

StarGeek

Writing invalid values to the PNG PixelsPerUnitX/Y tags does return an error message, where other numeric tags will return a message of Not a integer/floating point number for

Example
C:\>exiftool -P -overwrite_original -PNG:PixelsPerUnitX=junk -PNG:PixelsPerUnitY=junk Y:\!temp\Test4.png
    0 image files updated
    1 image files unchanged

I thought I should bring this up, though it's probably not high priority.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

Phil Harvey

Great, thanks.  An easy fix that will appear in 13.09.  I also added an automated test for a missing check like this and found another table in the Jpeg2000 code with this issue.

- 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 ($).