editing of PNG comments

Ask for help and post your question on how to use XnView Classic.

Moderators: helmut, XnTriq, xnview

Post Reply
Guest

editing of PNG comments

Post by Guest »

hi,
maybe this has already been discussed or i'm just not able to find the solution... however i didn't find such a topic in the forum so here is my problem:

- you have a PNG-file with a comment.
- in view mode you can edit the comment but it also changes the picture itself (not lossless?)
- in browser mode i can't even find an option to edit the comment!

so i want to be able to edit the comment without touching the picture itself (depending on the xnview 'write' options).

hopefully someone can help me. thanks.
User avatar
XnTriq
Moderator & Librarian
Posts: 6512
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: editing of PNG comments

Post by XnTriq »

As you already mentioned comments can only be added/edited in View mode.
However, when saving the comment to a PNG file you don't lose image data. The picture is just being recompressed (depending on the Compression level settings). This can have an impact on a file's size, but this does not hurt the quality of the image.

There's a small utility called TweakPNG that lets you insert and edit comments without recompressing the image data portion of the file.
You could add it to Open With in XnView's context menu.

See also:
Guest

Post by Guest »

hi XnTriq,

just tried TweakPNG and it works very well.

thanks for your help!
User avatar
Drahken
Posts: 884
Joined: Sun Apr 10, 2005 4:29 pm

Post by Drahken »

PNGs are lossless. Period.
As Xntriq said, the new PNG may be smaller than the original if your compression settings are higher than what was originally used, but PNGs never throw away info. The only way any info is ever lost in a PNG is if you choose to decrease it to 256 colors or less before saving. This color reduction is the only time data is ever thrown away with a PNG, and it only occurs that one time. From then on, you can open/save the image as many times as you want and no further data will be lost.
Oh the feuhrer, oh the feuhrer, oh the feuhrer's nipples bonk!
Post Reply