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