ExifTool Forum

ExifTool => Bug Reports / Feature Requests => Topic started by: Huayi on November 19, 2020, 09:41:36 AM

Title: Cannot write to Portable Pixel/Bit/Gray Map images (PPM / PBM / PGM)
Post by: Huayi on November 19, 2020, 09:41:36 AM
When trying to write to PPM, PBM or PGM, exiftool does not throw an error but outputs this message:

exiftool -XMP:Author=Huayi sample_1280×853.ppm
    0 image files updated
    1 image files unchanged


I tested with several tags from XMP and EXIF (writable ones).
This happens with exiftool versions 11.59 and 12.05, I haven't tested others.
You can find ppms to test here : https://filesamples.com/formats/ppm
pbm here : http://netghost.narod.ru/gff/sample/images/pbm/index.htm
pgm here : https://filesamples.com/formats/pgm

Thank you very much for your support on this great tool.
Title: Re: Cannot write to Portable Pixel/Bit/Gray Map images (PPM / PBM / PGM)
Post by: StarGeek on November 19, 2020, 10:39:44 AM
If you check on the main page under Supported File Types (https://exiftool.org/#supported), you'll see that exiftool doesn't support either reading or writing of EXIF, IPTC, or XMP data to PPM, PBM, PGM files.  The fact that exiftool does not even support reading such metadata suggests to me that the format simply doesn't support such metadata, though Phil would have to verify this.
Title: Re: Cannot write to Portable Pixel/Bit/Gray Map images (PPM / PBM / PGM)
Post by: Phil Harvey on November 20, 2020, 08:51:52 AM
Quote from: StarGeek on November 19, 2020, 10:39:44 AM
the format simply doesn't support such metadata

I think this is correct.

- Phil