Commit Graph

7482 Commits

Author SHA1 Message Date
John Cupitt 6444bfb5bb note coding fix in changelog 2021-08-30 12:43:43 +01:00
Lovell Fuller bd8093ab71 Handle error values when guessing interpretation (#2421) 2021-08-30 12:30:55 +01:00
Lovell Fuller 4aaed60573 Ensure VIPS_CODING_ERROR is handled for vips images (#2420) 2021-08-30 12:30:43 +01:00
John Cupitt 451cfcd282 small cleanups from "unlimited" option 2021-08-29 19:08:51 +01:00
Joshua Sager bb88490a17 Introduce unlimited flag, enabling unlimited text chunks in PNGs (#2419)
* Introduce unlimited flag, enabling unlimited text chunks

* remove extraneous optional flag causing GLib-GObject-CRITICAL **: 17:10:34.095: validate_and_install_class_property

* Address feedback from @jcupitt

* various compilation error fixes

* Interlace detection uses unlimited=false

* attempt to fix tests

* documentation changes, introduced MAX_PNG_TEXT_CHUNKS and bumped max to 20 (was 10)
2021-08-29 18:41:49 +01:00
Kleis Auke Wolthuizen b978ed8e8f
Adapt `TestForeign.test_heifsave` test (#2402)
- `heifsave` defaults to AV1 compression for .avif suffix since commit 8c44863.
- Test lossless compression mode.
2021-08-16 22:25:14 +01:00
John Cupitt e60f11eb45 fix rank fast path
there was an off-by-one error which could cause an out of bounds read

see https://github.com/libvips/libvips/issues/2401
2021-08-16 17:46:25 +01:00
John Cupitt 3ccf1761dd Merge branch '8.11' of github.com:libvips/libvips into 8.11 2021-08-07 18:47:41 +01:00
John Cupitt 57d8dd3ece better jp2k save behaviour
- don't enable mct if subsampling is on
- don't make such deep pyramids
2021-08-07 18:46:50 +01:00
Kleis Auke Wolthuizen 1611afee7e
Fix a few -Wstrict-aliasing=1 warnings (#2380) 2021-08-07 18:11:36 +01:00
John Cupitt fd1a036cd8 limit number of PNG chunks
reduces the threat of PNG decompression bombs
2021-08-06 10:55:08 +01:00
John Cupitt 5263686511 limit the number of text chunks in PNGs
very large numbers of text chunks can cause high memory use
2021-08-05 12:28:22 +01:00
John Cupitt 3d77c6abaa tiny layout fix 2021-08-05 11:24:29 +01:00
John Cupitt d43b3ff0f8
Merge pull request #2362 from lovell/heifload-verify-dimensions
heifload: verify page dimensions are non-zero
2021-07-26 11:03:56 +01:00
Lovell Fuller 81009d3e4c heifload: verify page dimensions are non-zero 2021-07-25 21:47:55 +01:00
John Cupitt 08d3c32868 Note jxlsave protos 2021-07-19 07:57:48 +01:00
Adil Benameur 37c82c8e2a added the jxl save functions to foreign.h 2021-07-19 07:54:03 +01:00
John Cupitt 6946c3b9d9 start up threadpool later
might help php and ruby web frameworks

see eg. https://github.com/libvips/php-vips-ext/issues/42
2021-07-14 20:21:38 +01:00
John Cupitt ee865253a6 not jp2k pyr fix in changelog 2021-07-03 11:17:33 +01:00
John Cupitt 70182e4eac don't load modules if they are built in
Only load modules if libvips has been built as a set of modules.
Otherwise can can end up loading operations twice.
2021-07-03 11:14:58 +01:00
John Cupitt 75a3b08c91 Merge branch '8.11' of github.com:libvips/libvips into 8.11 2021-07-02 17:19:55 +01:00
John Cupitt d4c5556c83 fix jp2k pyramid generation
8.11.1 broke it, unfortunately
2021-07-02 17:19:27 +01:00
John Cupitt 951e900a32 fix libdir directory guessing on windows 2021-07-02 17:18:46 +01:00
John Cupitt 16f32d2967
Merge pull request #2335 from kleisauke/autoconf-pkgconf-macros
Use autoconf macros for pkgconf where possible
2021-07-02 15:33:18 +01:00
Kleis Auke Wolthuizen ab5f437259 Use autoconf macros for pkgconf where possible 2021-07-02 15:57:25 +02:00
John Cupitt d07dee8b0c better libdir guessing
take the lib directory name (eg. "lib64" etc.) from the configure
time libdir
2021-07-02 11:50:34 +01:00
John Cupitt ad40d881dd remi's libdir patch, plus version bump to 8.11.2 2021-06-29 17:41:08 +01:00
Remi Collet c7f7fc52e8 use /lib64 instead of /lib when needed 2021-06-29 17:35:33 +01:00
John Cupitt 2ca96a3fef add another test for tiff ifd pyramids
test loading from a lower layer
2021-06-29 08:34:42 +01:00
John Cupitt 8851150375 fix some tabs 2021-06-28 20:32:56 +01:00
John Cupitt 4ee12e5675 trim some dead code 2021-06-28 20:31:09 +01:00
John Cupitt 95bf1367ba fix jpeg tiff pyramid save
we were not copying the quant tables on lower pyr levels correctly

add a test too
2021-06-28 20:24:00 +01:00
John Cupitt fc9e7ad2b3 Note static patch in changelog 2021-06-28 18:31:14 +01:00
John Cupitt f8479e4667
Merge pull request #2323 from kleisauke/disable-modules-static
Disable modules by default when building static libraries
2021-06-28 18:30:24 +01:00
Kleis Auke Wolthuizen 1727f2c6ae Disable modules by default when building static libraries
Might help: https://github.com/libvips/libvips/issues/2317
2021-06-28 18:28:19 +02:00
John Cupitt b7e723fcc7 Merge branch '8.11' of github.com:libvips/libvips into 8.11 2021-06-28 16:48:41 +01:00
John Cupitt a8c45be816 fix arg type for TIFFTAG_SUBIFD
We were passing int* when TIFFGetField wanted unit16, so subifd counts
could sometimes be wrong.
2021-06-28 16:43:55 +01:00
John Cupitt 5539e7951a
Merge pull request #2318 from lovell/svgload-check-dimensions
svgload: skip images with invalid dimensions
2021-06-28 15:32:19 +01:00
Lovell Fuller d1c038c22d svgload: skip images with invalid dimensions 2021-06-28 14:21:40 +01:00
John Cupitt 1b3dda5b24 enable strip chopping on TIFF load
see https://github.com/libvips/libvips/discussions/2322

thanks DavidStorm
2021-06-28 12:30:04 +01:00
John Cupitt 067d603182 oop typo 2021-06-23 12:26:21 +01:00
John Cupitt 40a04fdbc1 improve startup info 2021-06-22 18:39:41 +01:00
John Cupitt eeb64b6968 change init prefix fallback order
Use the configure time prefix second rather than going straight to
search. This should help ruby-vips on homebrew.
2021-06-22 18:09:57 +01:00
John Cupitt 1cd4b848e7 enable info output earlier 2021-06-22 15:38:54 +01:00
John Cupitt b9034bf731 more startup debug output
if VIPS_INFO is set
2021-06-22 15:28:21 +01:00
John Cupitt 336ee9420a Merge branch '8.11' of github.com:libvips/libvips into 8.11 2021-06-22 14:18:22 +01:00
John Cupitt 5f28f67d4c fix build with jp2k debug enabled 2021-06-22 14:15:05 +01:00
John Cupitt 78c08650d3 revise win32 support in configure
update LT_INIT with new dll option
2021-06-22 11:48:06 +01:00
John Cupitt 4ee19edd46 add another C example
see https://github.com/libvips/libvips/issues/1167
2021-06-18 11:39:00 +01:00
John Cupitt 06b429955a Merge branch 'master' into 8.11 2021-06-09 13:23:20 +01:00