Commit Graph

6915 Commits

Author SHA1 Message Date
John Cupitt
a560d7df50 better vips7 compat
revise the vips7 PNG wrapper to work with libspng, though performance
may be poor

thanks SkyDiverCool

https://github.com/libvips/libvips/issues/2233
2021-04-30 08:20:19 +01:00
John Cupitt
2df5768d99 note vector fix in changelog 2021-03-23 20:53:06 +00:00
John Cupitt
0f86453f76
Merge pull request #2144 from kleisauke/ensure-composite-alignment
Ensure max_band vector is aligned on a 16-byte boundary
2021-03-23 16:15:02 +00:00
Kleis Auke Wolthuizen
305714c978 Move max_band_vec to first position 2021-03-23 16:47:53 +01:00
Kleis Auke Wolthuizen
e7faebf6af Tell the compiler that v4f is aligned
It's guaranteed that this is now aligned on a 16-byte boundary.
2021-03-20 11:33:37 +01:00
Kleis Auke Wolthuizen
5ef9c84f97 Use cross-platform functions for allocating aligned memory
A malloc library is expected to provide a better implementation.
2021-03-15 11:10:16 +01:00
John Cupitt
3dad98952c
Merge pull request #2145 from kleisauke/force-100ms
vips2webp: force low duration frames to 100ms
2021-03-14 10:37:44 +00:00
Kleis Auke Wolthuizen
62b0939c4b vips2webp: force low duration frames to 100ms 2021-03-13 22:04:37 +01:00
Kleis Auke Wolthuizen
a55513a194 Ensure max_band vector is aligned on a 16-byte boundary
See https://github.com/mstorsjo/llvm-mingw/issues/190
2021-03-12 14:27:19 +01:00
John Cupitt
6666b941bf fix a ref leak in vipsthumbnail
from the previous refactoring
2021-03-06 13:33:00 +00:00
John Cupitt
ec16c761df revise changelog for clarity 2021-03-06 12:56:35 +00:00
John Cupitt
94503c1aca update for newer pandoc
"smart" extension is no longer supported for docbook
2021-03-06 12:47:31 +00:00
John Cupitt
81dffdd571
Merge pull request #2120 from libvips/revise-premultiply
Revise premultiply
2021-03-06 10:25:20 +00:00
John Cupitt
0623a05f48 remove vips_recip()
it wasn't really necessary, and it was rather slow
2021-03-05 20:19:05 +00:00
John Cupitt
a4d89b852a Merge branch '8.10' into revise-premultiply 2021-03-05 12:17:20 +00:00
John Cupitt
b14bac53a3 guard refs to ZSTD
so we work on older libtiffs
2021-03-05 12:16:38 +00:00
John Cupitt
6db234fae8 Merge branch 'revise-premultiply' of github.com:libvips/libvips into revise-premultiply 2021-03-05 11:24:14 +00:00
John Cupitt
726fded66c formatting 2021-03-05 11:24:00 +00:00
John Cupitt
1f18963cb4
Merge branch '8.10' into revise-premultiply 2021-03-05 11:17:40 +00:00
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
495b54dfcf grou predictor settings 2021-03-04 17:31:08 +00:00
John Cupitt
4eb3c86045
Merge pull request #2129 from Adios/8.10-add-tiff-zstd-predictor
Add tiff zstd predictor support
2021-03-04 17:27:42 +00:00
AdiosF6F
4d0252f31c
add tiff zstd predictor support 2021-03-04 22:38:47 +08:00
John Cupitt
86a6fd9d18 fix tiff deflate predictor setting
the enums were mixed up, thanks Adios

see https://github.com/libvips/libvips/issues/2128
2021-03-04 09:39:50 +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