John Cupitt
b07cfa858a
note svg fix
2020-08-21 11:39:33 +01:00
Lovell Fuller
69ee8a32b6
Ensure SVG loader skips input with chars outside x09-x7F range
...
Add test with example valid WebP image that happens to contain
the string '<svg' within its compressed image data.
2020-08-21 11:38:40 +01:00
John Cupitt
7a8e891632
Merge pull request #1787 from lovell/svg-loader-skip-control-chars
...
Ensure SVG loader skips input with chars outside x09-x7F range
2020-08-21 11:37:10 +01:00
Lovell Fuller
489324f392
Ensure SVG loader skips input with chars outside x09-x7F range
...
Add test with example valid WebP image that happens to contain
the string '<svg' within its compressed image data.
2020-08-21 10:17:08 +01:00
John Cupitt
fa84d297dd
note how to list interpolators
2020-08-20 07:05:13 +01:00
John Cupitt
409301a200
improve C++ API
...
Make VObject inheritance public, so we can have a single set() for all
VObject-derived types.
2020-08-19 15:08:28 +01:00
John Cupitt
2188e79283
Merge branch 'master' into add-doxygen
2020-08-19 14:37:56 +01:00
John Cupitt
99313edb68
fix some unknown types
...
We were missing VipsInterpolate and guint64. Add guint64 set() as well.
see 636e265477 (commitcomment-41589463)
2020-08-19 14:36:50 +01:00
John Cupitt
f8faa5f7f7
Merge branch '8.10'
2020-08-19 11:12:18 +01:00
John Cupitt
270933c281
convert no-profile CMYK to RGB on save
...
Use the fallback cmyk profile to convert to RGB on save if the image has
no embedded profile.
Thanks augustocdias.
See https://github.com/libvips/libvips/issues/1767
2020-08-19 11:09:38 +01:00
John Cupitt
d4c20e6d1c
a few more doc comments
2020-08-18 01:28:40 +01:00
John Cupitt
5e985ad187
add doc comments for VError and VInterpolate
2020-08-17 19:16:03 +01:00
John Cupitt
636e265477
revise cpp codegen again
...
use f'' strings, polish formatting
2020-08-17 18:07:11 +01:00
John Cupitt
6cabb3e301
add doxygen to the build system
...
configure tests for it, make runs it, make install copies the generated
html
2020-08-17 17:54:42 +01:00
John Cupitt
182e88957e
prevent 0-length buffers reaching imagemagick
...
im6 seems to have added an assert for this
see https://github.com/libvips/libvips/pull/1785
2020-08-17 14:18:59 +01:00
Lovell Fuller
b73bc3a855
Ensure magick buffer+file checks use consistent min length guard
...
Prevents a zero-length buffer from crashing GetImageMagick
It looks like the fix for magick7 in #1642 is also now required
for magick6 as the assertion appears to have been backported.
2020-08-17 14:17:55 +01:00
John Cupitt
c7bab32109
add optional params to doc strings
2020-08-17 14:11:17 +01:00
John Cupitt
98fdc17d2d
Merge pull request #1785 from lovell/magick-is-a-buffer-min-len
...
Ensure magick buffer+file checks use consistent min length guard
2020-08-17 12:51:37 +01:00
Lovell Fuller
f844dbb623
Ensure magick buffer+file checks use consistent min length guard
...
Prevents a zero-length buffer from crashing GetImageMagick
It looks like the fix for magick7 in #1642 is also now required
for magick6 as the assertion appears to have been backported.
2020-08-17 12:29:19 +01:00
John Cupitt
0d9dce4326
move vips-operators.h into the header
...
doxy hates #include inside classes
2020-08-17 10:58:49 +01:00
John Cupitt
cdcf63f8e5
fix regression in thumbnail of pyr tiff
...
The new subifd pyramid thumbnail code broke the old page-based pyramid
detector.
Thanks tand826
See https://github.com/libvips/libvips/issues/1784
2020-08-17 10:10:23 +01:00
John Cupitt
dfaabfc951
experiment with doxygen for C++ docs
2020-08-17 09:35:51 +01:00
John Cupitt
e4f1210d20
update wrapper script
...
fixes "make check".
2020-08-14 14:02:55 +01:00
John Cupitt
633abe7be8
add missing funcs to public C API
...
The C API was missing vips_jpegload_source and vips_svgload_source.
Thanks to augustocdias.
See https://github.com/libvips/libvips/issues/1780
2020-08-14 13:36:12 +01:00
John Cupitt
b981911f67
remove redefinition of typedefs
...
We had this in a couple of places:
typedef struct _A A;
typedef struct _A A;
Some old gccs (eg. centos6) throw errors for this.
See https://github.com/libvips/libvips/issues/1774
2020-08-13 12:51:56 +01:00
John Cupitt
fdded88cf7
start 8.10.1
...
following the doc generation fix
2020-08-09 14:39:37 +01:00
John Cupitt
603036a315
docs fix
...
pandoc changed the name of their top-level section node
2020-08-09 14:21:26 +01:00
John Cupitt
c2d217fcb1
put minimise support back into pdfload
2020-08-07 11:15:54 +01:00
John Cupitt
b40baec28b
fix write ICC profile to webp
...
ooops, a typo broke ICC profile write to webp 18 days ago
thanks augustocdias
see https://github.com/libvips/libvips/issues/1767
2020-08-05 15:29:54 +01:00
John Cupitt
420daf892b
fix typo
...
see https://github.com/libvips/pyvips/issues/198#issuecomment-668789846
thanks Tremeschin
2020-08-05 15:15:33 +01:00
Kyle Schwarz
b372fde637
Add parameter name for unused image
2020-08-02 11:04:10 -04:00
Kyle Schwarz
292dc9da4b
Remove redundant part of comment
2020-08-02 10:20:44 -04:00
Kyle Schwarz
81920963b1
Remove cast in free() call
2020-08-02 10:19:47 -04:00
Kyle Schwarz
557bc5f6b4
Don't check g_signal_connect()'s return
2020-08-02 10:16:55 -04:00
Kyle Schwarz
fe815ff587
Add C++ bindings for new_from_memory_steal()
...
new_from_memory_steal() will create a new image with the input
buffer and will "move" the data into the image. The buffer is then
managed by the image, and will be freed when it goes out of scope.
2020-08-01 21:58:14 -04:00
John Cupitt
7a2b2f89a1
Merge pull request #1756 from libvips/heif-workaround
...
try to work around some broken heic images
2020-08-01 12:54:57 +01:00
John Cupitt
1099bd068c
revise heic thumbnail workaround
2020-08-01 11:49:01 +01:00
John Cupitt
80abdce923
try to work around some broken heic images
...
see https://github.com/libvips/libvips/issues/1574
2020-07-31 17:41:23 +01:00
John Cupitt
95a221dd6e
better dbg msg in spngload
2020-07-31 17:37:12 +01:00
John Cupitt
ba45c87b50
detect RLE overflow in radiance
...
old-style radiance RLE could overflow harmlessly
see https://oss-fuzz.com/testcase-detail/4918518961930240
2020-07-28 14:03:58 +01:00
John Cupitt
58b6d73a70
deprecate vips_popen()
...
it didn't work well on win, and we no longer use it anyway
2020-07-27 15:21:59 +01:00
John Cupitt
cb1634dd31
block fuzz data over 100kb
...
Many codecs can take a huge amount of time attempting to read large
random objects. jpeg_read_header(), for example, can take ~10s on a 1mb
of random data.
Ignore fuzz objects over 100kb.
See https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=24383
2020-07-25 14:46:44 +01:00
John Cupitt
213533e03c
better webp load sanity checking
...
see d93d9bb43b (r40846309)
2020-07-23 15:46:53 +01:00
John Cupitt
9a88b25aaa
Merge branch 'master' of github.com:libvips/libvips
2020-07-23 15:42:04 +01:00
John Cupitt
17cddc196b
improve pngload error messages too
...
see https://github.com/libvips/libvips/issues/1578
2020-07-23 15:41:20 +01:00
John Cupitt
70c0b36d4f
better pngsave error message
...
add a target name to png's "unable to write to target" message
see https://github.com/libvips/libvips/issues/1578
2020-07-23 15:26:11 +01:00
John Cupitt
7c413f8872
Merge pull request #1727 from kleisauke/oss-fuzz-24230
...
Fix undefined-shift in scanline_read_old
2020-07-21 18:05:32 +01:00
John Cupitt
d203a3fb89
small comment improvements
2020-07-21 18:03:45 +01:00
John Cupitt
c4d093b01f
Merge pull request #1735 from lovell/perf-scrgb-to-rgb
...
Performance: improve scRGB to sRGB conversion by ~8%
2020-07-21 17:58:12 +01:00
John Cupitt
a6557eb94f
Merge pull request #1733 from lovell/perf-xyz2lab-clip
...
Performance: safely improve XYZ to LAB conversion by ~12%
2020-07-21 15:16:11 +01:00