Commits

Pierre Joye committed de7acbf Merge

Merged in suetanvil/gd-libgd (pull request #11)

Fix #86: gdImageScale segfaults with most interpolation types

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);