Commit Graph

6553 Commits

Author SHA1 Message Date
John Cupitt
bcdaeca578 fix anim webp load for some sizes
rounding on resize for each frame needs to match resize for whole image
2019-05-01 16:34:58 +01:00
John Cupitt
b1c995b2d9 more animated webp load fixes
webpload scale on load works for animated images
2019-05-01 16:25:13 +01:00
John Cupitt
37865e34f8 oop silly webp jpg mixup in last commit 2019-04-30 20:07:08 +01:00
John Cupitt
394f9baa5e deprecate webpload @shrink, use @scale instead
We need a fractional scale for thumbnail on webp to work well. @shrink
still works, but @scale overrides it.
2019-04-30 18:29:16 +01:00
John Cupitt
ec0b7e7bdf fix pdf test
for new sizing rules
2019-04-30 16:24:36 +01:00
John Cupitt
29d29533d4 better pdfload page size rounding
We were doing simple round down for page size with @scale param. But
this makes it very sensitive to rounding errors, so do rint() instead.

vips-resize() does rint() on the output size as well for the same
reason.

See https://github.com/libvips/libvips/issues/1297#issuecomment-487682785
2019-04-30 16:08:26 +01:00
John Cupitt
7326a409c6 reenable webp shrink-on-load in thumbnail
the breakage is in animated webp load with preshrink rather than
thumbnail
2019-04-29 17:30:34 +01:00
John Cupitt
ea9e477ad3 better gif-loop handling (again)
setting loops to 0 was broken
2019-04-29 17:12:20 +01:00
John Cupitt
522ddc1430 better thumbnailing of multipage docs
shrink-on-load should now work for multipage PDF thumbnailing

see https://github.com/libvips/libvips/issues/1297
2019-04-29 17:05:19 +01:00
John Cupitt
8482aa3ff1 tiny cleanup
some left-over pyramid detection code in tiff2vips
2019-04-29 12:52:47 +01:00
John Cupitt
53b43e0497 fix setting of iterations in magicksave
ImageMagick uses 0 to mean unset, so we must always add 1. See
coders/gif.c.

See https://github.com/libvips/libvips/issues/1302
2019-04-29 08:43:39 +01:00
John Cupitt
b100f5a025 start revising composite again
we can get ugly sparkles in transparent areas in some cases ... start
reworking some modes

see https://github.com/libvips/libvips/issues/1301
2019-04-29 07:43:14 +01:00
John Cupitt
efadb5dc42 fix thumbnail shrink-on-load
we had the alignment check in the wrong place
2019-04-27 22:33:20 +01:00
John Cupitt
120c3b62d9 more cmyk jpg tweaks
passes tes_formats.sh now
2019-04-27 13:27:18 +01:00
John Cupitt
5d907bdd17 final update for 8.8.0-rc1 2019-04-27 11:41:26 +01:00
John Cupitt
536c76f966 Merge branch 'master' into improve-cmyk-jpg 2019-04-27 11:02:26 +01:00
John Cupitt
4132623024 add test for PNG interlace handling
see https://github.com/libvips/libvips/pull/1296
2019-04-27 09:34:49 +01:00
John Cupitt
ce8aff8dd8
Merge pull request #1296 from lovell/png-interlace-handling-ordering
master: fix interlaced PNG input handling with newer libpng versions
2019-04-27 09:16:50 +01:00
Lovell Fuller
aff0c4cde5 Ensure png_set_interlace_handling before png_read_update_info 2019-04-26 22:29:16 +01:00
John Cupitt
3245dd301b Merge branch 'master' into szi-associated 2019-04-25 17:25:32 +01:00
John Cupitt
4a9db0e83f fix animated webp background handling
We were using WEBP_FF_BACKGROUND_COLOR as the background colour, but
that's not correct, it should always be zero (transparent).
WEBP_FF_BACKGROUND_COLOR is there just as a hint when flattening down to
plain RGB.
2019-04-24 18:18:21 +01:00
John Cupitt
0102a10b49 seems to work 2019-04-24 17:04:31 +01:00
John Cupitt
0df3f0268c Merge branch 'master' into revise-thumbnail 2019-04-24 16:11:25 +01:00
John Cupitt
bb22f66453 oop remove git markup 2019-04-24 16:11:08 +01:00
John Cupitt
b5b7e75b66
Merge pull request #1294 from kleisauke/cpp-const-char
Change 'char *' to 'const char *' in the C++ binding
2019-04-24 15:27:05 +01:00
Kleis Auke Wolthuizen
8ac6574560 Change 'char *' to 'const char *' in the C++ binding
+ some documentation improvements.
2019-04-24 16:02:52 +02:00
John Cupitt
8b71d0179c Merge branch 'master' into revise-thumbnail 2019-04-23 20:27:30 +01:00
John Cupitt
d2a9a20a78 fix thumbnail regression with cmyk in and out
56d98f3ef0 broke cmyk->cymk thumbnails
2019-04-23 17:09:20 +01:00
John Cupitt
56d98f3ef0 thumbnail no longer needs to import cmyk
since colourspace knows about cmyk now
2019-04-23 11:35:13 +01:00
John Cupitt
12bc5fbbe3 revise set_stacksize() once more
so we g_info() if we change it
2019-04-23 10:12:08 +01:00
John Cupitt
76aca0370f revise set_stacksize() again 2019-04-23 10:01:35 +01:00
John Cupitt
90e1b1cc49
Merge pull request #1293 from abdollar/fix_stack_size
fixes set_stacksize which broke during merge
2019-04-22 17:29:19 +01:00
Abdul Chaudhry
c6b9015799
fixes set_stacksize 2019-04-22 09:09:05 -07:00
John Cupitt
27aae32ff6 oops 2019-04-22 11:34:45 +01:00
John Cupitt
23955c8511 Merge branch '8.7' 2019-04-21 11:41:26 +01:00
John Cupitt
4a7b80cc26 ban chroma subsample in non-jpg tiffs
tiffcp barfs on these too
2019-04-21 11:39:31 +01:00
John Cupitt
27d8cd40fe Merge branch '8.7' 2019-04-20 17:35:39 +01:00
John Cupitt
472293c8ed rationalize member names in tiff read
they were rather confusing
2019-04-20 17:34:59 +01:00
John Cupitt
b26b2105dc oop dbg code committed by mistake 2019-04-20 12:14:27 +01:00
John Cupitt
7e4ebb3a94 fix stacksize on glibc
- need to define _GNU_SOURCE for glibc to get pthread_setattr_default_np()
- don't warn if we already have enough stack
- reformat to libvips standard
- add note to docs

see: https://github.com/libvips/libvips/pull/1291
2019-04-20 12:07:27 +01:00
John Cupitt
36bd9dfe4a
Merge pull request #1291 from abdollar/set_stack_size_linux
provide an option to set the default stack size on linux
2019-04-20 11:29:05 +01:00
John Cupitt
8fbbfd752f set png chunk limit to 50mb
we did have it unlimited, which could perhaps leave us open to DOS
attacks
2019-04-20 10:29:24 +01:00
John Cupitt
ee854d43c4 add configure test for png_set_chunk_malloc_max 2019-04-20 06:07:18 +01:00
John Cupitt
8d7e03237a allow huge png metadata chunks
By default, libpng refuses to open files with a metadata chunk larger than
8mb. Disable this sanity check.

See: https://github.com/lovell/sharp/issues/1664
2019-04-20 05:54:37 +01:00
Abdul Chaudhry
25bfad1306
provide an option to set the default stack size on linux 2019-04-19 08:59:45 -07:00
John Cupitt
5301df3d6b Merge branch '8.7' 2019-04-19 16:47:51 +01:00
John Cupitt
6acfcb0506 don't attempt to read YCBCR tiffs in scanlines
scanline read of YCBCR images will crash libtiff
2019-04-19 16:46:53 +01:00
John Cupitt
56e5e3c714 fix memleak on read error in webp
webp read could leak under some error conditions
2019-04-19 15:17:27 +01:00
John Cupitt
3a940e7080 note leak fix 2019-04-19 15:10:56 +01:00
John Cupitt
da2773000a oop remove dbg code 2019-04-19 15:03:33 +01:00