Commit Graph

6157 Commits

Author SHA1 Message Date
John Cupitt
933f8150f8
Merge pull request #1459 from lovell/svgload-scale-rounding
Ensure SVG dimensions are rounded correctly when scaling or setting density via cairo
2019-11-20 15:49:53 +00:00
John Cupitt
712157cd16 better support for TIFFs with many alphas
The premultiplied alpha can be in any position, and it checks if there
is more than one ASSOCALPHA.

See https://github.com/libvips/libvips/issues/1471
2019-11-18 16:48:34 +00:00
John Cupitt
cb7bc24b2a note in changelog 2019-11-12 18:05:17 +00:00
Angel Sánchez
6df26bfc9b load lab 8bit with alpha to labS 2019-11-12 18:02:52 +00:00
Angel Sánchez
c7b286ff8e Revert "improve labpack processing"
This reverts commit c4dd47aa99ea32acacc55fa793d7a5764b3a4aa8.
2019-11-12 17:35:16 +00:00
Angel Sánchez
4b7bd0810b Revert "correctly parse labQ with extra channels"
This reverts commit a817b3874e695bacc2f38d351d93e917373631e5.
2019-11-12 17:35:16 +00:00
Angel Sánchez
64f1b60b14 Revert "fix tiff writer for labQ with more bands"
This reverts commit bb3955193daa98b35e4fc69f8ad39cbb3d0d2fa8.
2019-11-12 17:35:16 +00:00
Angel Sánchez
cce739bed9 fix tiff writer for labQ with more bands 2019-11-12 17:35:16 +00:00
Angel Sánchez
4ba6373357 correctly parse labQ with extra channels 2019-11-12 17:35:16 +00:00
Angel Sánchez
415af7a10c improve labpack processing 2019-11-12 17:35:16 +00:00
John Cupitt
ceb2db513d Merge branch '8.8' 2019-11-11 18:05:57 +00:00
John Cupitt
1018320043 fix make dist in master 2019-11-11 16:20:18 +00:00
John Cupitt
3ba0b285d4 switch to GDateTime 2019-11-11 15:14:04 +00:00
John Cupitt
144a9c48f9 set name in info.json 2019-11-11 15:05:51 +00:00
John Cupitt
74519a230b clean up iiif output a bit
better info.json, but still not support for the full/ directory

see https://github.com/libvips/libvips/issues/1465
2019-11-11 13:38:58 +00:00
John Cupitt
b65a9d7328 oop, missing ! on tiff save
resolution-unit metadata was not being checked correctly on tiff save,
thanks @kayarre

see https://github.com/libvips/pyvips/issues/133
2019-11-10 10:26:13 +00:00
John Cupitt
f499cefb0e add iiif layout to dzsave 2019-11-09 20:40:39 +00:00
John Cupitt
4cf8246312 remove some dbg code 2019-11-07 07:29:44 +00:00
John Cupitt
04280fd837 test for orc 0.4.31
the version that should start working again, hopefully
2019-11-06 23:22:17 +00:00
Lovell Fuller
894ec7db84 Ensure SVG dimensions are rounded correctly
when scaling or setting density via cairo
2019-11-01 18:26:53 +00:00
John Cupitt
7c5971392c tighten fuzz size limits
we are still seeing timeouts
2019-10-30 08:57:46 +00:00
John Cupitt
acb68c867a remove broken link
thanks JelF

see https://github.com/libvips/libvips/issues/1458
2019-10-30 08:43:02 +00:00
John Cupitt
ab5641b4d8
Merge pull request #1455 from larskanis/fix-mingw
Fix dependency to introspect program on Windows MINGW
2019-10-28 11:03:25 +00:00
Lars Kanis
3341bbd762 Fix dependency to introspect program on Windows MINGW 2019-10-27 18:07:13 +01:00
John Cupitt
c7582c79d2 remove lib wrapper from repo 2019-10-24 04:33:04 +01:00
John Cupitt
d9ab536a52 tiny formatting fix 2019-10-24 04:07:28 +01:00
John Cupitt
2eed3ea45f add more types to optional args
thanks augustocdias

see https://github.com/libvips/libvips/issues/1449#issue-509081179
2019-10-21 20:58:59 +01:00
John Cupitt
8337e17428 add no_strip option to dzsave
it's sometimes useful to have pyramid tiles with ICC profiles

see https://github.com/libvips/libvips/issues/1451
2019-10-21 16:46:20 +01:00
John Cupitt
be7c1404c3 add a note about pdfium minimise 2019-10-07 17:19:12 +01:00
John Cupitt
f98adc1a0a strange fuzzer failure
possible fix
2019-10-07 15:57:00 +01:00
John Cupitt
71b557cfc1 remove "minimise" handler from tiffload
We need to be able to disconnect the underlying fd and we can't do that
without making our own input handler for files. Implement this when we add
input objects.
2019-10-07 15:42:29 +01:00
John Cupitt
c92a71cb98 fix pngload segv on header error 2019-10-07 14:58:49 +01:00
John Cupitt
3510c515f2 oop deleted one png init too many 2019-10-07 13:30:19 +01:00
John Cupitt
fef3dae892 Revert "fix up png restart"
This reverts commit 120ba3289c.
2019-10-07 13:15:29 +01:00
John Cupitt
120ba3289c fix up png restart
hopefully ... we needed a png_init_io() as well
2019-10-07 12:11:45 +01:00
John Cupitt
2d374c3114 pngload supports restart after minimise
plus a test
2019-10-07 10:01:15 +01:00
John Cupitt
3eca1ff3ee heifload passes the new descriptor tests 2019-10-06 19:29:10 +01:00
John Cupitt
3f1eb2c7dd test pdfload in te new desc tester
and fix a couple of small issues
2019-10-06 18:27:40 +01:00
John Cupitt
09b4ce6d9b test gifload for fd leaks 2019-10-06 10:55:19 +01:00
John Cupitt
efcd31b498 add something to test the new restart system
do multiple renders from one seq iage, check fds are opened and closed
as expected

see https://github.com/libvips/libvips/issues/1370
2019-10-06 07:25:09 +01:00
John Cupitt
c1921b0ad1 add a test for file descriptors
verify new loader behaviour with minimise
2019-10-04 17:44:25 +01:00
John Cupitt
c328b089b1 jpegload restart after minimise
after minimise, we need to reopen the underlying file

passes pytest but a proper test is still to come

https://github.com/libvips/libvips/issues/1370
2019-10-03 16:40:52 +01:00
John Cupitt
0830875917 add restart to heifload
heifload will restart read if necessary after minimise

see https://github.com/libvips/libvips/issues/1370
2019-10-03 13:16:37 +01:00
John Cupitt
1ef1b2d987 much faster handling of missing heif thumbnails
Fetching the thumbnail from a heif image without a thumbnail used to
reselect the image for each scanline, which was horribly slow.

Thanks Kleis!
2019-09-30 14:58:43 +01:00
John Cupitt
a92f0ed504 smarter heif thumbnail selection in thumbnail
We were checking for thumbnail width and height > target width and
height, but of course we can have one of target width or height very
large if we are leaving that axis to float in size.

Instead, calculate a shrink from the heif thumbnail size and see if that is
>= 1.0, ie. we can generate output without upsizing.
2019-09-30 14:34:11 +01:00
John Cupitt
4f1e57c040 add restart after minimise support to gifload
see https://github.com/libvips/libvips/issues/1370#issuecomment-533169856
2019-09-26 18:07:18 +01:00
John Cupitt
5df173dd15
Merge pull request #1433 from lovell/silence-gcc-warnings
Silence a couple of GCC compiler warnings
2019-09-20 17:38:10 +01:00
Lovell Fuller
02c42fdeba Silence a couple of GCC compiler warnings 2019-09-20 17:08:25 +01:00
John Cupitt
e16e4abeda make pdfload header a proper vfunc
_buffer was not inheriting it correctly
2019-09-19 18:09:19 +01:00
John Cupitt
0323b77666 pdfload reopens after minimise if necessary
We were using "minimise" to close pdf input early, but this will break
programs which make several output images from one sequential input
image. For example, loading all pages of a PDF as a toilet-roll image,
then saving pages as a set of PNGs.

This patch adds vfuncs for open and close, and makes _generate reopen
the input if necessary.

We will need similar patches for pdfiumload, gifload, gifnsload,
tiffload etc.

see https://github.com/libvips/libvips/issues/1370#issuecomment-533169856
2019-09-19 17:04:42 +01:00