Cannot write to Portable Pixel/Bit/Gray Map images (PPM / PBM / PGM)

Started by Huayi, November 19, 2020, 09:41:36 AM

Previous topic - Next topic

Huayi

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.

StarGeek

If you check on the main page under Supported File Types, 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.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

Phil Harvey

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