From 39abd7238cea2ba8baa4bcac1d6fc01c6cb8afab Mon Sep 17 00:00:00 2001 From: Cyprien Nicolas Date: Thu, 27 Oct 2022 14:36:33 +0200 Subject: Fix #847: enable back GD_BICUBIC* interpolation methods --- src/gd_interpolation.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/gd_interpolation.c') diff --git a/src/gd_interpolation.c b/src/gd_interpolation.c index 1f625dd..cf77da7 100644 --- a/src/gd_interpolation.c +++ b/src/gd_interpolation.c @@ -2257,6 +2257,11 @@ BGD_DECLARE(int) gdImageSetInterpolationMethod(gdImagePtr im, gdInterpolationMet case GD_BESSEL: im->interpolation = filter_bessel; break; + case GD_BICUBIC_FIXED: + case GD_BICUBIC: + /* no interpolation as gdImageScale calls a dedicated function */ + im->interpolation = NULL; + break; case GD_BLACKMAN: im->interpolation = filter_blackman; break; -- cgit v1.2.1