Commits

Chris Reuter committed 4c70f57

Fix #86: gdImageScale segfaults with most interpolation types

Code fails to propagate the interpolation type to an intermediate
temp image. This change fixes that.

Comments (0)

Files changed (1)

src/gd_interpolation.c

 	if (tmp_im == NULL) {
 		return NULL;
 	}
+	gdImageSetInterpolationMethod(tmp_im, src->interpolation_id);
 	_gdScaleHoriz(src, src_width, src_height, tmp_im, new_width, src_height);
 
 	dst = gdImageCreateTrueColor(new_width, new_height);