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.
"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

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.
"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

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/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

lorents