@@ -1065,13 +1065,15 @@ gdImagePtr gdImageScaleTwoPass(const gdImagePtr src, const unsigned int src_widt
1065
1065
if (tmp_im == NULL ) {
1066
1066
return NULL ;
1067
1067
}
1068
+ gdImageSetInterpolationMethod (tmp_im , src -> interpolation_id );
1068
1069
_gdScaleHoriz (src , src_width , src_height , tmp_im , new_width , src_height );
1069
1070
1070
1071
dst = gdImageCreateTrueColor (new_width , new_height );
1071
1072
if (dst == NULL ) {
1072
1073
gdFree (tmp_im );
1073
1074
return NULL ;
1074
1075
}
1076
+ gdImageSetInterpolationMethod (dst , src -> interpolation_id );
1075
1077
_gdScaleVert (tmp_im , new_width , src_height , dst , new_width , new_height );
1076
1078
gdFree (tmp_im );
1077
1079
@@ -1086,8 +1088,9 @@ gdImagePtr Scale(const gdImagePtr src, const unsigned int src_width, const unsig
1086
1088
if (tmp_im == NULL ) {
1087
1089
return NULL ;
1088
1090
}
1089
- _gdScaleHoriz ( src , src_width , src_height , tmp_im , new_width , src_height );
1091
+ gdImageSetInterpolationMethod ( tmp_im , src -> interpolation_id );
1090
1092
1093
+ _gdScaleHoriz (src , src_width , src_height , tmp_im , new_width , src_height );
1091
1094
_gdScaleVert (tmp_im , new_width , src_height , dst , new_width , new_height );
1092
1095
1093
1096
gdFree (tmp_im );
0 commit comments