John Cupitt
e8660a7426
Merge branch '8.10'
2020-11-20 13:46:59 +00:00
John Cupitt
1e5ac06f84
fix a possible read loop for truncated gifs
2020-11-20 13:46:24 +00:00
John Cupitt
b5aa045ee9
oops typo in magick7 load
2020-11-20 13:14:57 +00:00
John Cupitt
d7e988d16f
Merge branch '8.10'
2020-11-20 12:19:01 +00:00
John Cupitt
d971c75d6f
block 0 width or height images from imagemagick
...
IM could return 0 width and/or height for some crafted images. Block
these.
Thanks @Koen1999.
See https://github.com/libvips/libvips/issues/1890
2020-11-20 12:17:42 +00:00
John Cupitt
2772ecbb9e
add "seed" param to perlin, worley and gaussnoise
...
see https://github.com/libvips/libvips/issues/1884
2020-11-16 09:14:06 +00:00
John Cupitt
a43e9d3982
Merge branch '8.10'
2020-11-12 13:22:30 +00:00
John Cupitt
98641ba153
add read loops to gifload
...
and check for error in ppnmload.
2020-11-12 13:21:33 +00:00
John Cupitt
a09027b2a5
forgot to advance the buffer pointers
...
thanks kleis
see https://github.com/kleisauke/net-vips/issues/101#issuecomment-726046152
2020-11-12 12:32:51 +00:00
John Cupitt
09e0d5bff6
Merge branch '8.10'
2020-11-12 12:16:07 +00:00
John Cupitt
ff450497ff
add read loops to heif and ppm as well
...
We were not looping on vips_source_read() in these loaders, so they
could fail when reading from very slow pipes.
See https://github.com/kleisauke/net-vips/issues/101
2020-11-12 12:11:35 +00:00
John Cupitt
c0102c5814
better GraphicsMagick image write
...
We were not setting matte or depth correctly, thanks bfriesen.
2020-11-12 12:00:11 +00:00
Kleis Auke Wolthuizen
0a91e2d8c7
Ensure that streams are properly read in spngload
2020-11-11 21:17:07 +00:00
John Cupitt
013e8beba7
Merge branch '8.10'
2020-11-11 10:06:22 +00:00
John Cupitt
6894159ad5
fix icc-profiles and dzsave --no-strip
...
We were not copying metadata down pyramid layers in dzsave, so
--no-strip didn't allow icc profiles on tiles.
Thanks altert
See https://github.com/libvips/libvips/issues/1879
2020-11-11 10:02:46 +00:00
John Cupitt
3e40f19efc
Merge branch '8.10'
2020-11-10 11:07:41 +00:00
John Cupitt
1686725117
block annoying INFO messages on some older glibs
...
Some old glibs can display INFO messages by default. Block these
ourselves.
See https://github.com/libvips/libvips/issues/1876
2020-11-10 11:03:18 +00:00
John Cupitt
630270095d
fix compiler warning
2020-11-10 11:00:21 +00:00
John Cupitt
af6b419542
missing include
2020-11-06 10:29:30 +00:00
John Cupitt
b86c9c52e1
Merge branch '8.10'
2020-11-04 09:31:01 +00:00
John Cupitt
4de9b56725
flush target at end of write
...
we were missing end-of-write flushes on four save operations
thanks harukizaemon
see https://github.com/libvips/ruby-vips/issues/256
2020-11-04 09:28:25 +00:00
John Cupitt
20988977ab
Merge branch '8.10'
2020-11-03 23:45:17 +00:00
John Cupitt
85f3ac6d8f
fix tiff pyramid save region-shrink
...
we'd forgotton to connect it up
thanks imgifty
see https://github.com/libvips/libvips/issues/1875
2020-11-03 23:14:44 +00:00
John Cupitt
076e7e3a92
Merge branch '8.10'
2020-11-03 11:52:05 +00:00
John Cupitt
91d9610a55
fix out of bounds read in tiffload
...
libtiff can change the value of some fields while scanning a corrupt
TIFF file and this could trigger an out of bounds read.
This patch makes tiffload more cautious about rescanning a TIFF
directory before reading out header fields.
2020-11-03 11:48:21 +00:00
Kleis Auke Wolthuizen
4533375f63
Fix centre convention
2020-11-02 13:51:27 +01:00
Kleis Auke Wolthuizen
fdc140e8e9
Round sum values to the nearest integer in *_notab
2020-11-02 13:51:27 +01:00
Kleis Auke Wolthuizen
49d8051e22
Revert "Remove round-to-nearest behaviour"
...
This reverts commit ac30bad6
2020-11-02 13:51:27 +01:00
John Cupitt
b42a542858
only remove main image (ifd0) orientation tag
...
we were stripping all orientation tags on autorot
see https://github.com/libvips/libvips/issues/1865
2020-10-24 12:42:50 +01:00
John Cupitt
c07cadd915
Merge branch '8.10'
2020-10-20 08:56:49 +01:00
John Cupitt
ae82bcc3e8
fix out of bounds exif read in heifload
...
We were subtracting 4 from the length of the exif data block without
checking that there were 4 or more bytes there.
2020-10-20 08:54:54 +01:00
John Cupitt
774b7fcf6f
Merge branch '8.10'
2020-10-19 14:41:51 +01:00
John Cupitt
0131d4d3eb
fix vips7 webp load
...
webp load using the vips7 interface was crashing, thanks barryspearce
see https://github.com/libvips/libvips/issues/1860
2020-10-19 14:34:02 +01:00
John Cupitt
b3481f5baa
Merge branch '8.10'
2020-10-18 22:37:57 +01:00
John Cupitt
b1e636346a
relax is_a heic test rules
...
32 was a little too small, see https://github.com/libvips/libvips/issues/1861
2020-10-18 22:36:15 +01:00
John Cupitt
a1ae0d1d68
revise BGRA->RGBA
2020-10-17 13:42:57 +01:00
John Cupitt
93f67a2bdf
improve BGRA -> RGBA conversion
2020-10-16 18:53:45 +01:00
John Cupitt
50288c5f18
add pdfium load from source
2020-10-16 16:57:13 +01:00
John Cupitt
1590d418b9
fix pdfium mutex init
...
We need to make the mutex in _class_init, not _build, since we can lock
even if _build is not called.
2020-10-16 15:38:36 +01:00
John Cupitt
47b04c9da6
get pdium load working again
...
It had bitrotted a bit. Thanks @Projkt-James.
See https://github.com/libvips/libvips/issues/1400
2020-10-16 15:13:25 +01:00
John Cupitt
d1f84b0985
better GraphicsMagick image write
...
We were not setting matte or depth correctly, thanks bfriesen.
2020-10-16 00:05:17 +01:00
John Cupitt
5556f1ec65
move the pdfium lock init
...
move it inside the existing ONCE
see https://github.com/libvips/libvips/pull/1857
2020-10-13 15:00:13 +01:00
DarthSim
6fd8f20844
Separate lock for PDFium
2020-10-13 17:25:49 +06:00
John Cupitt
888b5654a0
fix heifload with libheif 1.6
...
heif_avif wasn't added until libheif 1.7
2020-10-11 19:54:36 +01:00
Kleis Auke Wolthuizen
e0b3e53c0e
Speed up VIPS_ARGUMENT_COLLECT_SET
...
By using G_VALUE_COLLECT_INIT, see:
https://bugzilla.gnome.org/show_bug.cgi?id=603590
2020-10-10 19:48:52 +02:00
Lovell Fuller
1177bd1dae
heifload: expose heif-compression metadata
2020-10-09 15:54:17 +01:00
John Cupitt
f1d2d4030e
fix build with libheif save buit not load
...
We had some definitions inside the #ifdef HEIFLOAD.
Thanks estepnv
https://github.com/libvips/libvips/issues/1844
2020-10-09 14:02:53 +01:00
John Cupitt
29b6ba1294
Merge branch '8.10'
2020-10-07 15:27:27 +01:00
John Cupitt
678b6d5c95
fix a regression in the C path for dilate/erode
...
A ++ had been dropped in the recent refactoring. Credit to kleisauke.
See https://github.com/libvips/libvips/issues/1846
2020-10-07 15:23:40 +01:00
Lovell Fuller
fc1e609f44
libheif: expose speed parameter (currently AV1 compression only)
...
Supports both aom and rav1e encoders by limiting to a 0-8 range.
(The rav1e encoder accepts speed values of 9 and 10 but these
use 64x64 blocks more suited to video than images.)
2020-10-06 10:48:54 +01:00