Announcement

Collapse
No announcement yet.

Incorrect rendering of PNG in 2 bit color depth

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

    Fixed Incorrect rendering of PNG in 2 bit color depth

    I've found an error, which might be some kind of overflow/underflow condition, so I think it should be fixed.

    When opening a PNG file with 2 bits per pixel, there are a few pixels of wrong color at the and of the first line. In paletted pictures it's a color of palette index 0, in grayscale pictures it's black.

    This problem occurs in 64 bit version in Windows 10 as well as 32 bit version in Windows XP.

    I've attached an example file. The picture shows 4 red pixels in the top right corner when viewed in IrfanView. These pixels are not present in other programs. The file was created using PNGOUT.

    Testing version IrfanView 4.54
    Attached Files
    My system: IrfanView 4.62 64bit, Windows 10 22H2, Intel Core i5-3570, 16GB RAM, NVidia GTX 1050Ti 4GB

    #2
    Yes, i see them too: http://s01.geekpic.net/di-GCTEZN.png
    IV 4.56 32-bit

    Comment


      #3
      I've reported the error via email, waiting for the answer.
      My system: IrfanView 4.62 64bit, Windows 10 22H2, Intel Core i5-3570, 16GB RAM, NVidia GTX 1050Ti 4GB

      Comment


        #4
        OK. Irfan will try to fix that.
        My system: IrfanView 4.62 64bit, Windows 10 22H2, Intel Core i5-3570, 16GB RAM, NVidia GTX 1050Ti 4GB

        Comment


          #5
          I've received a test version, where the problem is fixed. This issue can be closed now.
          My system: IrfanView 4.62 64bit, Windows 10 22H2, Intel Core i5-3570, 16GB RAM, NVidia GTX 1050Ti 4GB

          Comment


            #6
            Please attach the test version zip file in case others encounter the same problem.
            Before you post ... Edit your profile • IrfanView 4.62 • Windows 10 Home 19045.2486

            Irfan PaintIrfan View HelpIrfanPaint HelpRiot.dllMore SkinsFastStone CaptureUploads

            Comment


              #7
              No problem.

              My system: IrfanView 4.62 64bit, Windows 10 22H2, Intel Core i5-3570, 16GB RAM, NVidia GTX 1050Ti 4GB

              Comment


                #8
                Thank you for sharing!

                Comment

                Working...
                X