Commit Graph

6113 Commits

Author SHA1 Message Date
John Cupitt
fe4ec6d11a save int arrays to vips files
and fix a tiny memleak in loadgifns
2019-09-18 18:06:33 +01:00
John Cupitt
612789d914 remove undisplayable frames from gifnsload
and make gifload and gifnsload both build for easier testing ... though
gifnsload is given higher priority, so it handles vipsheader etc.
2019-09-18 17:34:49 +01:00
John Cupitt
a952de8626 add 'fail' handling to gifnsload 2019-09-15 17:46:36 +01:00
John Cupitt
c0aa4153e7 add close early to loadnsgif 2019-09-15 17:08:48 +01:00
John Cupitt
61408988da Merge branch 'master' into add-libnsgif 2019-09-15 14:12:40 +01:00
John Cupitt
3b0d44be51 fix ref leak in thumbnail
we were accidentally reusing a t[] with RAD images
2019-09-14 00:22:36 +01:00
John Cupitt
d8cb96581d Merge branch 'revise-svgload' 2019-09-12 13:11:17 +01:00
John Cupitt
efdf33f3de add vips_error_buffer_copy()
Add vips_error_buffer_copy() to fix a race in error buffer fetch.

See https://github.com/libvips/libvips/issues/1423

Thanks @dineshkannaa
2019-09-12 09:49:49 +01:00
John Cupitt
e505d56079 experiment with svgload as a sequential loader
see https://github.com/libvips/libvips/issues/1425
2019-09-11 16:58:20 +01:00
John Cupitt
d290c971ab reorganise vipspng a little
so we only set max malloc in one place

see https://github.com/libvips/libvips/pull/1424
2019-09-11 14:56:32 +01:00
John Cupitt
64898330e4
Merge pull request #1424 from OrderMyGear/png-max-malloc-buffer
also set png max chunk malloc when reading buffer
2019-09-11 14:22:33 +01:00
John Cupitt
0b57e2cdc2 note mozjpeg settings in docs
see https://github.com/libvips/libvips/issues/1422
2019-09-11 09:29:43 +01:00
Matt Drollette
e233698c2b also set png max chunk malloc when reading buffer 2019-09-10 12:31:11 -05:00
John Cupitt
7b2729adfa fix up nifti load/save
- use double for all floating point scalar metadata, like other loaders
- remove use of stray "n" property
2019-09-09 16:06:22 +01:00
John Cupitt
418c41fa52 Merge branch 'master' into add-libnsgif 2019-09-07 15:53:31 +01:00
John Cupitt
7987cf63c3 fix magick gif optimisation
defines were misspelt
2019-09-07 15:45:27 +01:00
John Cupitt
1a801c2838 note early close vfuncs 2019-09-07 15:44:50 +01:00
John Cupitt
28434b4e15 add delay array support to gifnsload 2019-09-07 12:13:25 +01:00
John Cupitt
cde20418bf Merge branch 'master' into add-libnsgif 2019-09-06 17:25:26 +01:00
John Cupitt
ae680a8d8c make giflib load less fussy
it was refusing to load a few GIFs
2019-09-06 17:24:55 +01:00
John Cupitt
a0086e49cd works!
but lots of TODO still
2019-09-06 16:47:35 +01:00
John Cupitt
844c35f525 getting closer 2019-09-06 12:57:03 +01:00
John Cupitt
dd9eba9e26 add @format and @interpretation to rawload 2019-09-05 16:25:55 +01:00
John Cupitt
f09bd91f69 allow vips_init(NULL)
gave an assert error before
2019-09-05 14:28:19 +01:00
John Cupitt
1ee54bfa80 Merge branch '8.8' 2019-09-05 12:45:08 +01:00
John Cupitt
f80c7a1810 add tests for xres/yres in tiffsave 2019-09-05 12:39:56 +01:00
John Cupitt
06fdc95038 xres/yres params in tiffsave were in cm
and should have been in pixels/mm

thanks f--f

see https://github.com/libvips/libvips/issues/1421
2019-09-04 17:02:24 +01:00
John Cupitt
2ab5aa7bf5 fix a used-before-set error in im_vips2dz
we were reading an uninited string in a vips7 compatibility wrapper, thanks
yifengchen-cc

see https://github.com/libvips/libvips/issues/1419
2019-09-03 13:17:18 +01:00
John Cupitt
b04299aaa2 Merge branch 'master' into add-libnsgif 2019-09-02 17:07:49 +01:00
John Cupitt
8ddbfbaf0c fix RGBA heifsave
we need to set plane bits as well

see https://github.com/libvips/libvips/issues/1411
2019-09-01 20:55:25 +01:00
John Cupitt
da8cee048f enable alpha in heifsave
Check for image alpha and enable it. There seem to be some
non-transparent tiles, curiously.

See https://github.com/libvips/libvips/issues/1411
2019-09-01 16:58:50 +01:00
John Cupitt
75b45cc2ef enable alpha handling in heic load
use RGBA decoding, when appropriate

see https://github.com/libvips/libvips/issues/1411
2019-09-01 16:37:43 +01:00
John Cupitt
0e63a410bb Merge branch 'master' of github.com:libvips/libvips 2019-09-01 13:13:46 +01:00
John Cupitt
a1ed6c7f6c improve GIF edarly close again
We were trying to keep the FILE open for gifload between header and
load, but this meant some corrupt GIFs could keep the file open longer
than they should.

Instead, make close into a vfunc and always close between header and
load.

see https://github.com/libvips/libvips/issues/1370#issuecomment-526829415
2019-09-01 12:54:47 +01:00
John Cupitt
55d283d56e
Merge pull request #1418 from omira-sch/cleanup-corpus-dirs
remove stale corpus dirs
2019-09-01 11:16:14 +01:00
John Cupitt
4e2033053e
Merge pull request #1417 from bgilbert/cpp7
configure.ac: drop --enable-cpp7 and --enable-pyvips8 options
2019-09-01 11:14:15 +01:00
Oscar Mira
37eb4c73c8 remove stale corpus dirs
After #1398 these directories are not needed anymore.
2019-09-01 12:00:08 +02:00
Benjamin Gilbert
8733743642 configure.ac: drop --enable-pyvips8 option
It doesn't do anything either.
2019-09-01 02:26:34 -04:00
Benjamin Gilbert
b3bbf47a46 configure.ac: drop --enable-cpp7 option
It's no longer connected to anything.
2019-08-31 14:29:09 -04:00
John Cupitt
a3d2544934 sharpen restores colourspace 2019-08-31 12:30:06 +01:00
John Cupitt
4b5b982711 merge 8.8 2019-08-31 12:29:50 +01:00
John Cupitt
574be4380e revert sharpen restoring the input colourspace
icc_export can make _RGB images, so the input can be outside the set of
supported colourspace transforms.

See 46212e92b1 (r34904985)

bump version too.
2019-08-31 11:29:36 +01:00
John Cupitt
23a1636015 fix build with no IM
we had a stray ImageInfo
2019-08-30 12:20:12 +01:00
John Cupitt
5d19bcf955 Merge branch '8.8' 2019-08-30 11:03:24 +01:00
John Cupitt
6ea76f9632 improve data_length handling in jpg load
libjpeg uses unsigned ints for data length, so we must use size_t
everywhere.
2019-08-30 11:00:25 +01:00
John Cupitt
57d1d86885 avoid a harmless out of bounds read
in UCS table building
2019-08-29 15:42:05 +01:00
John Cupitt
f135a6e292 add corpus for Coding verification 2019-08-29 15:30:49 +01:00
John Cupitt
349e76bb85 Merge branch '8.8' 2019-08-29 15:30:20 +01:00
John Cupitt
3161de3b52 verify bands/format for coded vips images
WHen loading a vips image with Coding set, make sure that Bands and
BandFmt are correct.
2019-08-29 15:28:55 +01:00
John Cupitt
f8bdc00866 void /0 in Yxy2XYZ
Now sets 0 rather than inf.
2019-08-29 14:20:30 +01:00