We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Even though each filter is supposed to have its own radius, _gdContributionsCalc() always uses DEFAULT_BOX_RADIUS. That appears to be a bug.
_gdContributionsCalc()
DEFAULT_BOX_RADIUS
The text was updated successfully, but these errors were encountered:
According to filter.c from GGemsIII this is certainly a bug.
#include <gd.h> int main() { gdImagePtr src, dst; FILE *fp; src = gdImageCreateTrueColor(100, 100); gdImageFilledRectangle(src, 0,0, 99,99, gdTrueColorAlpha(255, 255, 255, gdAlphaOpaque)); gdImageEllipse(src, 49,49, 40, 40, gdTrueColorAlpha(0, 0, 0, gdAlphaOpaque)); gdImageSetInterpolationMethod(src, GD_CATMULLROM); dst = gdImageScale(src, 200, 200); fp = fopen("scale.png", "wb"); gdImagePng(dst, fp); fclose(fp); gdImageDestroy(src); gdImageDestroy(dst); return 0; }
Sorry, something went wrong.
Better reproducer:
#include <gd.h> int main() { gdImagePtr src, dst; FILE *fp; src = gdImageCreateTrueColor(11, 11); gdImageFilledRectangle(src, 0,0, 10,10, gdTrueColorAlpha(255, 255, 255, gdAlphaOpaque)); gdImageEllipse(src, 5,5, 8, 8, gdTrueColorAlpha(0, 0, 0, gdAlphaOpaque)); gdImageSetInterpolationMethod(src, GD_CATMULLROM); dst = gdImageScale(src, 132, 132); fp = fopen("scale-2.png", "wb"); gdImagePng(dst, fp); fclose(fp); gdImageDestroy(src); gdImageDestroy(dst); return 0; }
Master fixes this and also does a little cleanup of the gd_interpolation.
No branches or pull requests
Even though each filter is supposed to have its own radius,
_gdContributionsCalc()
always usesDEFAULT_BOX_RADIUS
. That appears to be a bug.The text was updated successfully, but these errors were encountered: