Commit Graph

5599 Commits

Author SHA1 Message Date
John Cupitt a67f92b8d9 reformat in vips style 2019-01-16 20:18:09 +00:00
John Cupitt d3c73b4d39
Merge pull request #1196 from dbouron/cmyk2srgb
Add cmyk <-> srgb colourspace conversion
2019-01-16 20:08:35 +00:00
Dimitri Bouron 5f61727253 Fix black channel overwrite in XZY2CMYK.c 2019-01-16 19:06:36 +01:00
John Cupitt f90de3c25d fix some links in docs 2019-01-16 17:45:02 +00:00
John Cupitt 10290c3dd6 fix function name error on old glibs
see https://github.com/libvips/libvips/pull/1211#discussion_r248280743
2019-01-16 13:37:50 +00:00
John Cupitt 00982f6297 add changelog notes
and small formatting issues
2019-01-15 09:36:31 +00:00
John Cupitt 39d17f6249
Merge pull request #1211 from lhecker/master
vips_image_temp_name: Fixed race condition / heap-buffer-overflow
2019-01-15 08:43:25 +00:00
Leonard Hecker ab6126d55d Addressed review comments 2019-01-14 21:54:50 +01:00
John Cupitt 962f677e13
Merge pull request #1212 from lovell/webp-reduction-effort
Expose libwebp reduction_effort parameter
2019-01-14 20:44:24 +00:00
Lovell Fuller d134e05395 Expose libwebp reduction_effort parameter 2019-01-14 19:55:52 +00:00
Leonard Hecker 3dd4ddddc8 vips_image_temp_name: Fixed race condition / heap-buffer-overflow
vips_image_temp_name can be called concurrently and thus
the usage of the static "name" array is not thread safe.
-fsanitize=address complains about heap-buffer-overflow due to this.
2019-01-14 19:38:18 +01:00
John Cupitt 11fcd21b8a fix build without lcms 2019-01-14 11:25:50 +00:00
John Cupitt 66557867fa
Merge pull request #1200 from kleisauke/travis-test-suite
Travis fixes
2019-01-12 23:02:38 +00:00
John Cupitt bcc76c6edb Merge branch 'master' into tiff-pyr-stop-at-1-pixel 2019-01-12 15:48:17 +00:00
John Cupitt 8ded32ac20
Merge branch 'master' into cmyk2srgb 2019-01-12 14:39:20 +00:00
John Cupitt 75ebb162f9 Merge branch 'master' into add-icc-fallbacks 2019-01-12 13:58:30 +00:00
John Cupitt d2f48a8875 remove a stray floor() from cast
thanks lovell
2019-01-12 13:51:35 +00:00
John Cupitt 98def52715
Merge pull request #1210 from lovell/cast-remove-float-floor
Avoid artefacts when casting from float to int (master)
2019-01-12 13:48:25 +00:00
Lovell Fuller f815ec6801 Truncate rather than floor when casting from float to int 2019-01-11 18:09:20 +00:00
John Cupitt f0439fbb65
Merge pull request #1209 from kleisauke/add-missing-cpp-functions
Add missing C++ functions
2019-01-11 14:21:45 +00:00
Kleis Auke Wolthuizen c397543c8e Add a std::string overload function for new_from_buffer 2019-01-11 13:53:09 +01:00
Dimitri Bouron d87bf01fdc Add cmyk <-> xyz default colourspace conversion
If no lcms2 library has been found, fallback to default
cmyk <-> xyz conversion.
Please note that it is an approximative conversion.
2019-01-11 11:48:25 +01:00
John Cupitt 0dcb2d1ef2 Merge branch 'master' into add-icc-fallbacks 2019-01-11 09:20:13 +00:00
John Cupitt f768029298 make the savers use profile_load
tiff, jpeg and png save all use profile_load to attach profiles
2019-01-11 06:30:06 +00:00
John Cupitt 28999aa5b6 add vips_profile_load()
and use it in icc_transform
2019-01-10 22:48:21 +00:00
Kleis Auke Wolthuizen bd5711ef8e Add remove function to the C++ binding
To remove an item of metadata.
2019-01-10 17:39:45 +01:00
John Cupitt 960324b08a Merge branch 'master' into add-icc-fallbacks 2019-01-10 15:48:37 +00:00
Kleis Auke Wolthuizen cd340d0ace Add missing C++ functions
The functions has_alpha() and copy_memory() were missing from the C++ binding.
2019-01-10 14:56:04 +01:00
John Cupitt 3de9f896ac
Merge pull request #1207 from lovell/png-strip-xmp
PNG writer: ensure XMP metadata is ignored when strip=TRUE
2019-01-10 10:43:18 +00:00
Lovell Fuller d66c1cae45 PNG: ensure XMP metadata is ignored when strip=TRUE 2019-01-09 20:21:45 +00:00
John Cupitt 5bc342b9b2 revise changelog in magickload fix 2019-01-08 09:05:39 +00:00
Kleis Auke Wolthuizen 5e75dc0518 Use a PPA with the latest version of magick 2019-01-07 19:10:21 +01:00
John Cupitt a293da4b5a Merge branch '8.7' 2019-01-04 10:36:59 +00:00
John Cupitt 63c6c7ae30 fix small magicksave error
copy-paste fail meant that IM exceptions were not inherited correctly

see 1619c8b1a1 (commitcomment-31838043)
2019-01-04 10:34:30 +00:00
John Cupitt 87062c4a4f Merge branch '8.7' 2019-01-04 09:19:04 +00:00
John Cupitt 1619c8b1a1 fix memleak in magick6load
IM ExceptionInfo were not being freed correctly. This patch
adds a small wrapper function and uses it to allocate and free all IM
exception objects.

Tested with im 6.9 and gm 1.3.

See:

https://github.com/libvips/lua-vips/issues/24

https://github.com/libvips/libvips/issues/1203
2019-01-04 08:38:58 +00:00
John Cupitt 7073b8fb17 start adding fallbacks for savers
not finished though
2019-01-04 07:30:47 +00:00
John Cupitt b8a158b69b seems to work
added some more consts as well
2019-01-03 13:34:13 +00:00
John Cupitt 105760be0a seems to work
though the srgb fallback is not working

```
$ vips icc_import k2.jpg x.v --input-profile=srgb
vips__file_open_read: unable to open file "srgb" for reading
unix error: No such file or directory
icc_import: no input profile
```

perhaps padding issues?
2019-01-02 18:22:52 +00:00
John Cupitt a93deb8201 Merge branch 'master' into add-icc-fallbacks 2019-01-02 15:32:32 +00:00
John Cupitt 7547464f08 Merge branch 'dzsave-skip-blanks' 2019-01-02 11:01:08 +00:00
John Cupitt 020ff88f6a Merge branch 'master' into dzsave-skip-blanks 2019-01-02 11:00:42 +00:00
John Cupitt 7d1ec90894 make fallback profiles available to icc_import etc.
almost there, not working yet
2019-01-02 10:59:16 +00:00
Kleis Auke Wolthuizen dc143fa4f5 Installing packages with the APT addon 2019-01-02 11:42:17 +01:00
Kleis Auke Wolthuizen db18dcfa30 Run the libvips test suite on Travis
Instead of the pyvips test suite.
2019-01-02 11:28:41 +01:00
John Cupitt 2b8db2e594
Merge pull request #1199 from lovell/png-header-palette-bit-depth
PNG loader: attach palette bit depth, if any, as metadata
2019-01-01 19:02:22 +00:00
John Cupitt 218005bae7
Merge pull request #1198 from dbouron/master
Fix compilation error when lcms has not been found
2019-01-01 18:57:28 +00:00
Lovell Fuller 7854ead877 PNG loader: attach palette bit depth, if any, as metadata 2019-01-01 15:26:35 +00:00
Dimitri Bouron 21bceb5c38 Fix compilation error when lcms has not been found
If HAVE_LCMS2 is not defined, VipsImage is not declared in both
CMYK2XYZ and XYZ2CMYK source files.
2018-12-31 17:03:47 +01:00
John Cupitt f611845698 Merge branch 'master' into add-CMYK2XYZ 2018-12-31 14:02:51 +00:00