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
John Cupitt
6c72ca45b7
Merge branch '8.7'
2018-12-29 22:56:58 +00:00
John Cupitt
9d66420ad5
round to nearest in log scale
...
we were doing round to nearest in linear mode, but not log
see https://github.com/libvips/build-win64-mxe/issues/3
2018-12-29 20:19:38 +00:00
John Cupitt
b9c3dcd274
fix dzsave skip_blanks default
...
the default value was not being declared correctly [felixbuenemann]
see https://github.com/libvips/libvips/issues/1185#issuecomment-450427889
2018-12-28 22:23:15 +00:00
John Cupitt
074906f670
fix test suite
...
- CMYK2XYZ and back now support extra alpha bands
- test suite tests CMYK conversions
- a small bug fixed too
2018-12-28 20:53:25 +00:00
John Cupitt
b0c66df72c
add cmyk test
...
fails right now, since CMYKA is not supported by CMYK2XYZ and XYZ2CMYK
(I think)
2018-12-28 15:26:08 +00:00
John Cupitt
fe2c8505d6
hide deprecated header fields from _map
...
just the annoying ipct-data for now
2018-12-28 15:12:37 +00:00
John Cupitt
9c73539258
remove warnings from profile compat check
...
since they can be triggered under normal circs. now when you thumbnail a
CMYK image
2018-12-28 15:06:56 +00:00
John Cupitt
c5d0ca8300
add cmyk2xyz and back
...
seems to work, still to do:
- tests
- try:
```
$ vipsthumbnail NordicsLIQUOR-SFBag_300_cmyk.JPG
(vipsthumbnail:7868): VIPS-WARNING **: 16:53:17.166: profile incompatible with image
```
see https://github.com/libvips/libvips/issues/1186
2018-12-27 17:35:35 +00:00
John Cupitt
25aed749e3
start hacking in a CMYK->XYZ import
...
plus an embedded cmyk profile as a fallback
2018-12-21 18:05:40 +00:00
John Cupitt
d35343f817
stop making tiff pyr if axis drops to 1
...
TIFF pyramids of images with a very extreme aspect raio could see layer
width or height drop to 0 before the image fitted in a single tile. This
change stops pyramid creation when width or height drop to 1.
See https://github.com/libvips/libvips/issues/1188
2018-12-21 14:47:28 +00:00
John Cupitt
74ee68fd79
use -1 for do-nothing
...
so that users can have skip-only-exact-blanks
see https://github.com/libvips/libvips/issues/1185#issuecomment-449115143
2018-12-21 14:08:54 +00:00
John Cupitt
d1989e4c94
make skip_blanks an int
...
so you can adjust the threshold
2018-12-20 17:07:07 +00:00
John Cupitt
99c0a674a4
fix typo in VIPS_ARG_POINTER
...
thanks Fingolfin1196 !
see https://github.com/libvips/libvips/issues/1187
2018-12-20 16:44:52 +00:00
John Cupitt
51dbf607dd
add skip-blanks option to dzsave
...
Skip-blanks was a feature of google layout. This patch makes it into an
option you can control which defaults on in gm mode.
See https://github.com/libvips/libvips/issues/1185
2018-12-19 14:52:33 +00:00
John Cupitt
9303e382c1
Merge branch '8.7'
2018-12-17 20:31:25 +00:00
John Cupitt
6ba4b3bfdb
fix clipping with new mapim cods
...
we had the clip in the wrong place
see https://github.com/libvips/libvips/issues/1180
2018-12-17 20:29:31 +00:00
John Cupitt
a1e2059030
Merge pull request #1183 from aried3r/patch-3
...
Use latest Xcode for macOS builds
2018-12-17 14:13:10 +00:00
Anton Rieder
4154507547
Use latest Xcode for macOS builds
...
https://docs.travis-ci.com/user/reference/osx/#os-x-version
2018-12-17 15:07:14 +01:00
John Cupitt
ae47bb593a
Merge pull request #1181 from aried3r/patch-1
...
Remove unnecessary uninstall of oclint
2018-12-17 13:52:02 +00:00
John Cupitt
a277155361
Merge pull request #1182 from aried3r/patch-2
...
Use Ubuntu 16.04 on Travis
2018-12-17 13:49:35 +00:00