Commit Graph

6892 Commits

Author SHA1 Message Date
John Cupitt
9585feb5a8 allow thumbnail colourspace export with no import
allow this case:

	vipsthumbnail k2.jpg --export-profile cmyk

for an image with no embedded profile
2021-03-05 11:11:49 +00:00
John Cupitt
c4d56fd475 Merge branch 'revise-premultiply' of github.com:libvips/libvips into revise-premultiply 2021-03-05 10:46:21 +00:00
John Cupitt
ef4f95cddc cleanup for Kleis comments 2021-03-05 10:46:06 +00:00
John Cupitt
ea2264ea2e
Update libvips/resample/thumbnail.c
Co-authored-by: Kleis Auke Wolthuizen <github@kleisauke.nl>
2021-03-05 10:44:31 +00:00
John Cupitt
0407c365d1 better again 2021-02-27 20:47:29 +00:00
John Cupitt
e1fc576252 back to srgb/b-w processing space
for compat in thumbnail behaviour
2021-02-27 16:34:50 +00:00
John Cupitt
303513e52d small comment polish 2021-02-27 16:00:33 +00:00
John Cupitt
0b74acf7ba add a test for unpremultiply
we actually test vipsthumbnail --linear on an RGBA image, which should
catch everything, hopefully
2021-02-27 15:48:02 +00:00
John Cupitt
d3ccadf212 revise unpremultiply, again
We were not detecting division by zero carefully enough, nor clipping
the alpha range sufficiently in unpremultiply.

see https://github.com/libvips/libvips/issues/1941

also see https://github.com/libvips/libvips/pull/1675 for another
difficult test case
2021-02-27 15:16:25 +00:00
John Cupitt
3c60e9de60 start tinkering 2021-02-24 14:48:50 +00:00
John Cupitt
ec67002493 update changelog 2021-02-22 10:06:14 +00:00
John Cupitt
44688e2702 fix int overflow in vips_region_copy
this could cause crashes with very wide images, see:

https://github.com/libvips/libvips/issues/1989
2021-02-22 10:03:10 +00:00
John Cupitt
75959ece6a note librsvg change 2021-02-09 16:23:13 +00:00
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