Announcement

Collapse
No announcement yet.

IV remove tEXt chunk from PNG files, how to preserve it?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    IV remove tEXt chunk from PNG files, how to preserve it?

    Is there any setting which allow to preserve the tEXt chunk in PNG file?
    I often use the comment in .jpg files. I do not understand why IV does not offer the same possibility with .png files. But even worse, when I open .png with tEXt chunk and save it again, the chunk is removed.
    Is there a way how to preserve it? Microsoft Paint keeps this chunk, even repair wrong CRC of it. IV plugin PNGOUT offer to keep chunks, but it does not work, so I suppose that IV does not even read it to memory, so the PNGOUT plugin has nothing to save even when I have checked "Keep chunks" option.
    (I use IV 4.57, because I need the PNGOUT plugin, which does not work with newer versions. So I did not test if newer IV versions keep the tEXt chunk)

    #2
    I think you will have to use another program better suited to editing PNG files.

    What is wrong the the OptiPNG plugin?
    Last edited by Bhikkhu Pesala; 15.11.2023, 02:18 PM.
    Before you post ... Edit your profile • IrfanView 4.67 • Windows 10 Home 19045.2486

    Irfan PaintIrfan View HelpIrfanPaint HelpMore SkinsFastStone CaptureUploads

    Comment


      #3
      Originally posted by Bhikkhu Pesala View Post
      I think you will have to use another program better suited to editing PNG files.
      Such as ?
      (Yes, it's half a year since you replied. But the issue has come up for me too.)

      My major use-case for IV is batch-commenting the day's collection of photos when travelling. I'd also do something similar at work, but Work.Inc refused to buy a license, so I only used it when I was on-site and told my colleagues they needed to buy their own license. Several asked me for more info, so I assume they did. I don't work there any more.)
      - Take day's photos.
      - D/L camera to laptop.
      - Select first batch of photos ; set comment on them to be (say) "Germany".
      - Select first subset and ADD comment "Munuch" (So, total comment is "Germany, Munich").
      - Select second sub-set, add comment "Augsberg" (total comment = "Germany, Augsberg".
      - Lather, rinse, repeat for whatever we did that day.
      - Even a thousand photos can be relatively easily, but meaningfully, commented.
      - Use a batch script to rename all the files with a code like date{YYYY-MM-DD HH-mm-ss]-$comment-$original_file_name" (I asked Irfan to institute memory for "rename parameters" etc ; he did. Not sure which millennium that was. So I didn't have to re-enter it every time.)
      . The purpose of the final "rename" step is so people with less sophistication about images than me can still find my "Munich" photos, or my "Augsberg" photos WITHOUT my "Munich" photos. Or at least - have no excuse for not finding the appropriate photos ; it's more important with "Sample12345", "Sample12346", "Sample12347" ... at Work.)

      Anyway, I was just using IV to read an old web comic, and wanted to add a comment ... to a PNG file.

      No Go.
      OK, Irfan, we have a problem here. JPEG has at least three places you can sensibly insert comments. A choice for the programmer.
      PNG has at least one place.
      ISTR that GIF has a place too (I stopped using GIF in the Unisys (?) crisis of about 1995).
      I'm sure many other image formats have places for "comments".
      But in how many image formats can IV actually save a comment.

      This is attached to your message because you're the only hit on searching for "PNG comment".
      Why is the server throwing errors about every 2 minutes?
      Ah, that's where the .SIG file lives.
      User of IV since the ... 1990s, probably.
      User of IV on portable storage since about 2002.
      User under WINE on various Linuxen since about 2012.
      Ich kann ein paar Deutsche gesprachen.

      Comment


        #4
        This is a user-to-user forum. Irfan Skiljan does not visit here. Send him an email to see if he has any plans for adding comments to PNG images.
        Before you post ... Edit your profile • IrfanView 4.67 • Windows 10 Home 19045.2486

        Irfan PaintIrfan View HelpIrfanPaint HelpMore SkinsFastStone CaptureUploads

        Comment

        Working...
        X