News:

2023-08-10 - ExifTool version 12.65 released

Main Menu

PNG Chunks

Started by lorents, March 16, 2014, 10:41:06 AM

Previous topic - Next topic

lorents

Good afternoon!

Prompt how to remove certain Chunks in PNG?

StarGeek

If you wanted to remove the ICC_Profile, for example, you would use:

ExifTool -ICC_Profile= <DIR/FILE>

Here's the list of PNG tags.
* 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).

lorents

Frankly speaking, I don't understand as me to attribute what to remove certain Chunks?
Prompt how to me is admissible to remove zTXt, tEXt?

StarGeek

If the chunk you want to remove is list on the left on the page I linked, you would take the tag name in the next column and set that equal to nothing.  Though I don't know if it would work if the third column says "N" for that chunk.

So, for "zTXt", that tag name is "CompressedText" and the command would be
ExifTool -CompressedText= <DIR/FILE>

for "tEXt", the tag name is "TextualData" and the command would be
ExifTool -TextualData= <DIR/FILE>

You could remove both with one command
ExifTool -CompressedText= -TextualData= <DIR/FILE>

Replace "<DIR/FILE>" with the directory or files you want to process.
* 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

The CompressedText isn't a tag as such.  It is treated as a directory of many TextualData tags, which may be deleted individually.  Or, use -png:all= to delete all writable PNG tags.

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

lorents