Commit Graph

7423 Commits

Author SHA1 Message Date
John Cupitt
4483a2edbc Merge branch 'master' into add-jxl 2021-04-14 15:08:46 +01:00
John Cupitt
f4046a95f1 more dbg output for jxlsave 2021-04-14 12:50:09 +01:00
John Cupitt
633d35f4ae add Q param to jxl save
for convenience
2021-04-14 12:29:38 +01:00
John Cupitt
21c565d5d6 improve comment 2021-04-14 11:32:08 +01:00
John Cupitt
da6fe210b4
Merge pull request #2195 from libvips/text-colour-rendering
Text colour rendering
2021-04-13 08:42:14 +01:00
John Cupitt
cc04449dc5 remove extraeous "brew upgrade" 2021-04-12 20:40:00 +01:00
John Cupitt
31fe274626 fix mono rendering
always render RGBA, then in mono mode just use the alpha
2021-04-12 17:29:54 +01:00
John Cupitt
b27a10c547 ask brew to update/upgrade
might help CI failures on macOS
2021-04-12 16:55:01 +01:00
John Cupitt
b4fe2c7b8b Note pagocairo dep in README 2021-04-12 16:52:14 +01:00
John Cupitt
985a3e2282 reenable fontfile 2021-04-12 15:46:56 +01:00
John Cupitt
f53959b824 switch font rendering to pangocairo
to make colour font rendering work
2021-04-12 15:11:18 +01:00
John Cupitt
8412b8233c start adding colour text rendering
try eg.

	vips text x.png 😀 --rgba --dpi 300

But it's not working :( need to tyweak something else?
2021-04-12 10:59:50 +01:00
John Cupitt
db22eb4d4f add p3.icm to makefile.am
and fix make dist
2021-04-08 10:53:15 +01:00
John Cupitt
a2147d64be
Merge pull request #2190 from lovell/add-icc-profile-p3
colour: add a fallback for the increasingly-common P3 profile
2021-04-08 09:42:37 +01:00
Lovell Fuller
d56a47829b colour: add a fallback for the increasingly-common P3 profile
Uses the CC0-licensed 'magic' compatibility profile from
https://github.com/saucecontrol/Compact-ICC-Profiles#display-p3
2021-04-07 21:44:33 +01:00
John Cupitt
930078a6f9 note jp2k support in README 2021-04-03 18:50:18 +01:00
John Cupitt
209f2c5144 tidy up 2021-04-03 18:40:21 +01:00
John Cupitt
70078e3774 add jxl encoder options
though they don't seem to affect file size, curiously
2021-04-03 18:11:38 +01:00
John Cupitt
55e634a0d2 add support for native jxl decode
map jxl native formats to libvips iamge formats
2021-04-03 17:50:47 +01:00
John Cupitt
234c468489 comment fix 2021-04-03 16:32:23 +01:00
John Cupitt
b82ca537e7 set basic jxl image metadata from vips 2021-04-03 16:32:02 +01:00
John Cupitt
e93d0ab83c jxlsave works
at a basic level, anyway
2021-04-03 15:03:43 +01:00
John Cupitt
f726edb7f7 remove stray bitmap_create call
missed this one in the delay gif alloc patch
2021-04-03 12:28:41 +01:00
John Cupitt
10a0c5a4bb start adding jxlsave 2021-04-03 11:57:11 +01:00
John Cupitt
9b8f308d9e jxl load sort-of works 2021-04-02 18:35:35 +01:00
John Cupitt
07e73475c1 make a patch for the libnsgif alloc delay 2021-04-02 12:00:50 +01:00
John Cupitt
9e10f4bf0f Merge branch 'libnsgif-delay-alloc' 2021-04-02 11:59:44 +01:00
John Cupitt
c8363d4e61
Merge pull request #2179 from lovell/nsgifload-limit-dimensions
nsgifload: enforce maximum GIF dimensions of 16383
2021-04-02 11:44:30 +01:00
Lovell Fuller
701dcc7500 nsgifload: enforce maximum GIF dimensions of 16383
The GIF spec allows dimensions up to 65535 (16-bit unsigned),
but this equates to 17GB/frame.

A common task is to convert animated GIF to animated WebP,
and the latter supports dimensions up to 16383 (14-bit unsigned),
so that seems like a sensible limit and equates to 1GB/frame.

Also makes the error message consistent with other loaders.
2021-04-01 19:26:32 +01:00
John Cupitt
8734eb3c8a header works 2021-04-01 17:06:51 +01:00
John Cupitt
950606406f compiles 2021-04-01 16:54:42 +01:00
John Cupitt
9bdf5e8cda try delaying libnsgif alloc until read frame
gives the caller a chance to detect memory bombs
2021-04-01 12:53:57 +01:00
John Cupitt
2a249a3049 load header done 2021-04-01 12:33:36 +01:00
John Cupitt
c7f69718da start adding jxl 2021-04-01 09:21:41 +01:00
John Cupitt
005360dba7 add support for lcms black point compensation
Add a --black-point-compensation flag.

See https://github.com/libvips/libvips/discussions/2169
2021-03-29 12:41:02 +01:00
John Cupitt
e4453f8b18 update libnsgif
pick up a couple of patches
2021-03-29 11:56:58 +01:00
John Cupitt
9f15567f2c fix fuzzer error
see https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=32638
2021-03-29 09:19:14 +01:00
John Cupitt
77ccd04cbe
Merge pull request #2168 from lovell/nsgifload-sanity-check-dimensions
nsgifload: check dimensions before memory allocation
2021-03-28 22:42:29 +01:00
Lovell Fuller
744e42edd1 nsgifload: check dimensions before memory allocation
GIF dimensions are 16-bit unsigned
Initialise memory to zero as image may be truncated
2021-03-28 19:59:21 +01:00
John Cupitt
0054c7dafa add some more gifload tests 2021-03-28 13:49:34 +01:00
John Cupitt
b2cfe6a0a0 nsgifload was not setting filename 2021-03-28 13:38:41 +01:00
John Cupitt
89c12b0e62 fix nsgifload metadata
various issues pointed out by @lovell
2021-03-28 13:33:16 +01:00
John Cupitt
cb660b32fe
Merge pull request #2156 from libvips/add-openjpeg
Add JPEG2000 support
2021-03-27 17:10:42 +00:00
John Cupitt
09c6074014 ... and quantise 2021-03-27 16:18:56 +00:00
John Cupitt
32fca6f21b ... and two pdfloads 2021-03-27 16:09:41 +00:00
John Cupitt
fd56067f54 oop, left gifload.c in the merge 2021-03-27 15:39:29 +00:00
John Cupitt
69fcf1b9e9
Merge branch 'master' into add-openjpeg 2021-03-27 15:22:13 +00:00
John Cupitt
595f5a1b71 make autosubsample more consistent
always disable subsample for Q>=90, and update docs too
2021-03-27 15:16:38 +00:00
John Cupitt
9cbb4c2cd1
Merge pull request #1709 from libvips/add-libnsgif
Add libnsgif support
2021-03-27 15:10:30 +00:00
John Cupitt
9589a51f09 fix a compiler warning 2021-03-27 11:35:07 +00:00