Announcement

Collapse
No announcement yet.

gamma errors when scaling

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

    Reported gamma errors when scaling

    I was wondering whether Irfanview did its scaling correctly?




    #2
    Been using IV for years, wonderful software. I saw the page speculatrix linked above on reddit today & came here to inquire about the same thing. I took that first image in speculatrix's first link and resized it to 50% in IV 4.25 and got:
    Last edited by Edogy; 24.02.2010, 09:52 PM.

    Comment


      #3
      I don't have IV at hand now, but which resize mode did you use?
      IrfanPaint developer
      The latest stable IrfanPaint version is the 0.4.13.70.
      IrfanPaint is now open-source (released under BSD license).

      Comment


        #4
        Correction: The solid gray image I linked above is the result of a IV resample operation. If I resize instead of resample I get this:

        Which suggests the way IV handles gamma may be incorrect, as stated by the original links. In both cases the image I am resize/resampling is this one, specifically crafted to highlight gamma errors in resize/resample algorithms:

        Comment


          #5
          Not only scaling, but perhaps every filter with averaging colors of neighbour pixels is affected with this bug. Complementary colors makes the most dramatic effect. Let's take a picture:

          then apply "zoom blur":

          whereas the right effect should look like:

          Both are done with IrfanView, but in the last case I've done what IV "forget" to do: flatten gamma curve before applying filter and restore it after.
          Last edited by jbw; 08.03.2010, 01:33 PM. Reason: typo correcting

          Comment


            #6
            This simple trick works, of course, with scaling of DL picture, too: apply gamma 0.45, scale image to 50%, apply gamma 2.2, and... tada!

            It would be very nice if IV could make it itself on behalf of us ;-)

            Comment


              #7
              Do you know if this bug apply only to downscaling or also to upscaling?

              Comment

              Working...
              X