John Cupitt
d70ab8f5b7
Merge branch '8.10' of github.com:libvips/libvips into 8.10
2021-02-09 16:22:30 +00:00
John Cupitt
b30a90e3bc
fix includes of glib headers in C++
...
see https://github.com/libvips/libvips/issues/1987
2021-02-09 16:21:56 +00:00
John Cupitt
e1f22095a0
don't put glib includes inside extern "C" blocks
...
see https://github.com/libvips/libvips/issues/1987
2021-02-09 16:21:25 +00:00
John Cupitt
85f7cb6ded
Merge pull request #1985 from lovell/svgload-remove-deprecated-librsvg-include
...
svgload: remove was-deprecated, now-removed librsvg-features.h include
2021-02-09 15:47:28 +00:00
Lovell Fuller
a8dd8379ac
svgload: remove deprecated librsvg include
...
librsvg >= 2.40.3 includes it for you
librsvg >= 2.51.0 removes it entirely
2021-02-08 20:22:12 +00:00
John Cupitt
a0663ddce7
fix build with spng
2021-01-05 15:45:28 +00:00
John Cupitt
e1a9397c15
better error detection in spngload
...
Do a speculative spng_get_trns() in header read to force all chunks to
be parsed.
Thanks randy408
See https://github.com/randy408/libspng/issues/145#issuecomment-744495084
2021-01-05 03:54:48 +00:00
John Cupitt
7a33be716b
Merge pull request #1947 from kleisauke/clip-scrgb
...
Switch VIPS_FCLIP to VIPS_CLIP in vips_scRGB2{BW,sRGB}
2020-12-29 14:36:41 +00:00
John Cupitt
762d581f72
Merge pull request #1949 from kleisauke/disable-libpng-read
...
Exclude libpng load when building with libspng
2020-12-29 14:12:35 +00:00
John Cupitt
0d01324205
Merge pull request #1950 from kleisauke/remove-stdc++-check
...
Remove redundant -lstdc++ configure check
2020-12-29 13:30:59 +00:00
John Cupitt
7a1fb2a627
slight formatting improvement
2020-12-29 13:29:27 +00:00
Kleis Auke Wolthuizen
7e9c7059be
Remove redundant -lstdc++ configure check
...
This became unused after commit 346a9e7
.
2020-12-29 13:40:36 +01:00
Kleis Auke Wolthuizen
9b9843f698
Exclude libpng load when building with libspng
...
Similar to ce63fc1
, but allowing libpng to be configured with
-DPNG_NO_READ (i.e reading functionally disabled).
2020-12-29 13:34:22 +01:00
Kleis Auke Wolthuizen
7cda6e5957
Switch VIPS_FCLIP to VIPS_CLIP in vips_scRGB2{BW,sRGB}
2020-12-29 13:02:08 +01:00
John Cupitt
0982d0efbb
signal error on EOF in jpegload more reliably
...
we were only warning on EOF in the read stub, even if fail was set
thanks bozaro
see https://github.com/libvips/libvips/issues/1946
2020-12-28 22:46:33 +00:00
John Cupitt
158e9e153a
add some more ppm tests
2020-12-26 18:35:11 +00:00
John Cupitt
b2fa1f89e8
revise ppmload, fixing a couple of bugs
...
- ppmload was not setting interpretation, filename, etc. for files read via
mmap
- files not read via mmap were never byteswapped
- some cleanups
see https://github.com/libvips/libvips/issues/1916
2020-12-26 17:02:07 +00:00
John Cupitt
86fa9277e7
note PDFium build in README
2020-12-24 05:44:07 +00:00
John Cupitt
94ecb8d38d
version bump
...
and fix changelog dates
2020-12-22 14:28:55 +00:00
John Cupitt
c3159e209d
note in changelog
...
see https://github.com/libvips/libvips/pull/1938
2020-12-22 12:55:44 +00:00
John Cupitt
782c0b2f7e
Merge pull request #1938 from kleisauke/ensure-memory-source
...
Avoid seeking on bad file descriptors
2020-12-22 12:52:20 +00:00
Kleis Auke Wolthuizen
e437805fc1
Move descriptor test to vips_source_seek_real
...
Since subclasses could override the seek method without setting the file descriptor.
2020-12-22 13:34:14 +01:00
Kleis Auke Wolthuizen
2eeeedc957
Avoid seeking on bad file descriptors
2020-12-22 11:20:03 +01:00
Kleis Auke Wolthuizen
cc8f93a3ff
Ensure memory source is non-null
2020-12-22 11:19:52 +01:00
John Cupitt
230f5924cf
duplicate "svgload" operation
2020-12-18 11:30:03 +00:00
John Cupitt
460efa73fa
bump version for animated webp load fix
2020-12-18 10:12:26 +00:00
John Cupitt
787c4ebd88
Merge pull request #1935 from lovell/webpload-blend-pixel-prevent-div-zero
...
webpload: prevent divide-by-zero when blending pixels
2020-12-18 10:08:07 +00:00
Lovell Fuller
45fd740130
webpload: prevent divide-by-zero when blending pixels
...
Adds a test case to prevent regression - see commit 6eaf1ed
2020-12-17 20:23:06 +00:00
John Cupitt
ff3c4acbb2
allow spng.pc and libspng.ps for libspng discovery
2020-12-14 10:24:25 +00:00
John Cupitt
1b19e6f832
start 8.10.4
...
with a dropped patch from 8.10.3
2020-12-14 09:20:44 +00:00
John Cupitt
31a4d1419c
fix spng detection
...
This patch was dropped from 8.10.3 release 1, annoyingly.
2020-12-14 09:17:38 +00:00
John Cupitt
5e26f1ec16
improve website link in docs
...
it was being rewritten by the export script
see https://github.com/libvips/libvips/issues/1928
2020-12-14 09:08:27 +00:00
John Cupitt
c12730748d
forgot changelog update
2020-12-13 03:43:03 +00:00
John Cupitt
cb9b0a4318
note HEIC fix in changelog
...
see https://github.com/libvips/libvips/pull/1921
2020-12-12 15:10:42 +00:00
Daniel Dennedy
21f37037fa
fix heif load fails with 0 length metadata
...
fixes #1901
2020-12-12 15:09:33 +00:00
John Cupitt
a54cec93ac
Merge pull request #1872 from kleisauke/fix-rounding-reduce
...
Resolve rounding issues in reduce
2020-12-12 14:51:15 +00:00
John Cupitt
1d2864cc41
note HEIC fix in changelog
...
see https://github.com/libvips/libvips/pull/1921
2020-12-10 17:54:58 +00:00
John Cupitt
3996f3279b
fix range clips for casts to and from int
...
Fix two bugs:
- clip in casts from int32 and uint32 could overflow -- do these as gint64 now
- clip in casts from float to int could overflow since float32 can't
represent the full range of int32 without losing precision -- do these
as double
And add some more tests.
Thanks ewelot.
see https://github.com/libvips/libvips/issues/1922
2020-12-09 15:14:59 +00:00
John Cupitt
6eaf1eda30
make webp frame blend do doround to nearest
...
see https://github.com/libvips/libvips/pull/1918
2020-12-04 13:53:24 +00:00
John Cupitt
aa9906184a
Merge pull request #1918 from lovell/webpload-single-frame-noblend
...
webpload: ensure first frame is not blended
2020-12-04 13:14:29 +00:00
Lovell Fuller
f9dc3177c7
webpload: ensure first frame is not blended
2020-12-04 11:50:58 +00:00
John Cupitt
1f71c7ae07
n comment
2020-12-03 13:34:21 +00:00
John Cupitt
587a7c2d63
note ppmload fix
2020-12-02 21:03:44 +00:00
John Cupitt
4c1aeaacd9
add is_a_source to ppmload
...
ppmload_source was missing an ia_a test
see https://github.com/libvips/libvips/issues/1915
2020-12-02 21:02:05 +00:00
John Cupitt
f99da5f3e1
docs clarification
...
https://github.com/libvips/libvips/issues/1912
2020-12-01 18:33:40 +00:00
John Cupitt
2585565b3e
better test for output to target
...
We used to enable write to stdout if the first character of an output filename
was ".", eg.:
vips copy x.jpg .png
But this will also enable write to stdout for things like:
vips copy x.jpg ./y.png
This patch also tests that the rightmost "." in a filename is also the
first character.
Thanks barryspearce
See https://github.com/libvips/libvips/issues/1906
2020-11-29 13:59:30 +00:00
John Cupitt
acc579cc9d
force binary mode for connections on win
...
stdin / stdout (for example) are created in text mode by default on
win. We need to flip them to binary mode for connection read and write.
See https://stackoverflow.com/questions/65014352/pipe-libvips-cli-output-to-stdout-in-windows
2020-11-26 10:15:48 +00:00
John Cupitt
eddc99e6d8
Merge pull request #1899 from kleisauke/byteswap-vipsload
...
Ensure vipsload only byte swaps if necessary
2020-11-23 14:07:23 +00:00
Kleis Auke Wolthuizen
ea53660a6b
Port Ruby test case to Python
2020-11-23 14:40:59 +01:00
Kleis Auke Wolthuizen
77de1c473a
Determine endianness at compile time
2020-11-23 14:39:06 +01:00