File tree 3 files changed +15
-2
lines changed
3 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 13
13
- fix for composite with many small images and some combinations of blend modes
14
14
- fix memleak in tiff pyr save to memory [scossu]
15
15
- istiff attempts to read the first directory rather than just testing the
16
- magic number [przemyslawpluta]
16
+ magic number [przemyslawpluta]
17
17
- much faster ismagick() [jcupitt]
18
18
- better behaviour for vips_region_fetch() if request lies partly ouside image
19
19
- remove 256 band limit in arithmetic.c [erdmann]
20
20
- disable Orc if building with CET [lovell]
21
21
- fix vipsthumbnail with pyr tiff [kleisauke]
22
22
- text autofit could occasionally terminate early [levmorozov]
23
23
- fewer warnings on tiffload [chregu]
24
+ - vips_resize() breaks aspect ratio and limits shrink to prevent <1px
25
+ dimensions [lovell]
24
26
25
27
21/9/18 started 8.8.0
26
28
- much faster smartcrop [lovell]
Original file line number Diff line number Diff line change 31
31
* 3/12/18 [edwjusti]
32
32
* - disable the centre sampling offset for nearest upscale, since the
33
33
* affine nearest interpolator is always centre
34
+ * 7/7/19 [lovell]
35
+ * - don't let either axis drop below 1px
34
36
*/
35
37
36
38
/*
@@ -213,6 +215,11 @@ vips_resize_build( VipsObject *object )
213
215
hscale *= int_hshrink ;
214
216
}
215
217
218
+ /* Don't let either axis drop below 1 px.
219
+ */
220
+ hscale = VIPS_MAX ( hscale , 1.0 / in -> Xsize );
221
+ vscale = VIPS_MAX ( vscale , 1.0 / in -> Ysize );
222
+
216
223
/* Any residual downsizing.
217
224
*/
218
225
if ( vscale < 1.0 ) {
@@ -424,6 +431,10 @@ vips_resize_init( VipsResize *resize )
424
431
* @vscale, that factor is used for the vertical scale and @scale for the
425
432
* horizontal.
426
433
*
434
+ * If either axis would drop below 1px in size, the shrink in that dimension
435
+ * is limited. This breaks the image aspect ratio, but prevents errors due to
436
+ * fractional pixel sizes.
437
+ *
427
438
* This operation does not change xres or yres. The image resolution needs to
428
439
* be updated by the application.
429
440
*
Original file line number Diff line number Diff line change @@ -186,7 +186,7 @@ libvips/foreign/gifload.c
186
186
libvips/foreign/magick7load.c
187
187
libvips/foreign/openslide2vips.c
188
188
libvips/foreign/exif.c
189
- libvips/foreign/pdfload_pdfium .c
189
+ libvips/foreign/pdfiumload .c
190
190
libvips/foreign/fitssave.c
191
191
libvips/foreign/pdfload.c
192
192
libvips/foreign/magick2vips.c
You can’t perform that action at this time.
0 commit comments