Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0028e80

Browse files
committed
subsample should not change xres/yres
No other resize operations change the resolution.
1 parent 5e3fc24 commit 0028e80

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

libvips/conversion/subsample.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,6 @@ vips_subsample_build(VipsObject *object)
222222
*/
223223
conversion->out->Xsize = subsample->in->Xsize / subsample->xfac;
224224
conversion->out->Ysize = subsample->in->Ysize / subsample->yfac;
225-
conversion->out->Xres = subsample->in->Xres / subsample->xfac;
226-
conversion->out->Yres = subsample->in->Yres / subsample->yfac;
227225
if (conversion->out->Xsize <= 0 ||
228226
conversion->out->Ysize <= 0) {
229227
vips_error(class->nickname,

0 commit comments

Comments
 (0)