st2205: Only sharpen the picture when it was actually resampled

git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@12785 67ed7778-7388-44ab-90cf-0a291f65f57c
This commit is contained in:
Hans de Goede
2010-03-18 22:40:31 +00:00
parent b7037b9d59
commit 81156b8fca

View File

@@ -263,7 +263,9 @@ put_file_func (CameraFilesystem *fs, const char *folder, const char *name,
im_out->sx, im_out->sy,
im_in->sx, im_in->sy);
gdImageSharpen(im_out, 100);
if (im_in->sx != im_out->sx ||
im_in->sy != im_out->sy)
gdImageSharpen(im_out, 100);
ret = st2205_write_file (camera, out_name, im_out->tpixels);
if (ret >= 0) {