gdImageScale() with floating-point interpolation method looses top row and left column

Issue #93 new
Chris Reuter
created an issue

The resulting image is shifted left and up, with the right and bottom rows filled with apparently correct data.

I'll look into it sometime next week and try to have a reproduction and fix available then.

Comments (3)

  1. Chris Reuter reporter

    This bug seems to be a quirk in the algorithm. Basically, it's resampling from the left edge of the pixel rather than the center (pixels have a width and height when you're using continuous functions) which causes the shift. Fixing it is non-trivial, so I'm going to put it off for now.

  2. Log in to comment