Commit Graph

5600 Commits

Author SHA1 Message Date
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
Anton Rieder
2f8f7dd394
Use newer libtiff5-dev on Ubuntu 16.04
https://packages.ubuntu.com/xenial/libtiff5-dev
2018-12-17 14:31:24 +01:00
Anton Rieder
3a7ec80b65
Use Ubuntu 16.04 on Travis
https://blog.travis-ci.com/2018-11-08-xenial-release

Puts us a bit closer to building Debian/Ubuntu packages:
https://github.com/libvips/libvips/issues/987#issuecomment-426619628
2018-12-17 14:25:13 +01:00
Anton Rieder
45543af564
Remove unnecessary uninstall of oclint
See https://changelog.travis-ci.com/oclint-is-removed-from-mac-builds-79270
2018-12-17 14:21:52 +01:00
John Cupitt
1ee5b13205 Merge branch '8.7' 2018-12-17 13:21:28 +00:00
John Cupitt
582b224125 oops revert version bump 2018-12-17 13:20:14 +00:00
John Cupitt
962cab2d0f Merge branch '8.7' 2018-12-17 13:18:58 +00:00
John Cupitt
db4fe60405 fix mapim offsets
pixels were not being offset by the stencil origin, so interpolators
like bicubic could fail

thanks @erdmann

https://github.com/libvips/libvips/issues/1180
2018-12-17 12:42:34 +00:00
John Cupitt
596794c05a improve pdfium linking 2018-12-12 17:24:49 +00:00
John Cupitt
b4afd75757 fix pdfium finder for git master pdfium
and our new pdfium builder
2018-12-12 16:49:20 +00:00
John Cupitt
6bc564a1e1 turn on smalltile
2D locality helps a lot with many subimages
2018-12-07 16:43:44 +00:00
John Cupitt
2a32a95be9 new subimage code for composite done!
seems to work, passes all tests
2018-12-07 16:11:58 +00:00
John Cupitt
58776970ec Merge branch 'master' into revise-composite 2018-12-07 14:31:56 +00:00
John Cupitt
0dccfc87b6 Merge branch '8.7' 2018-12-07 14:30:00 +00:00
John Cupitt
0d5eced964 break on dpi too high as well 2018-12-07 13:09:22 +00:00
John Cupitt
da31d0f31a fix autofit loop on non-scaleable fonts
see https://github.com/libvips/libvips/issues/1178
2018-12-07 12:57:44 +00:00
John Cupitt
7b19ad8dc1 composite subimage positioning almost done
--x fails though? odd

vips composite2 Gugg_coloured.jpg PNG_transparency.png x.jpg over --x 600 --y 100

--x causes the dice to clip, but not translate
2018-12-06 18:28:55 +00:00
John Cupitt
d550016610 Merge branch 'master' into revise-composite 2018-12-06 16:05:25 +00:00
John Cupitt
5fa4ae08da Merge branch '8.7' 2018-12-05 17:37:25 +00:00
John Cupitt
ac4897abee Fix up vips_text()
Fixes two issues:

1. vips_text() in autofit mode could set the wrong DPI, since it set the
DPI in its own copy of the variable, but did not do a final update on
the DPI setting that FT uses for rendering.

2. vips_text() in autofit mode allocated a new context each time, rather
than reusing the context for that call. This caused a small memory leak.

See https://github.com/libvips/libvips/issues/1174
2018-12-05 14:24:26 +00:00
John Cupitt
f5d76b42fc fix centre sampling for non-int nearest upscale
we were not disabling the input offset for NEAREST, whcih is always
centre

thanks edwjusti

see https://github.com/lovell/sharp/issues/1479
2018-12-03 17:13:57 +00:00
John Cupitt
ee4d1d7c22 try to fix pdfium linking
still not quite there
2018-11-29 13:32:15 +00:00
John Cupitt
e7cf88cf99 note delay and loop in webpsave docs 2018-11-28 07:17:02 +00:00
John Cupitt
2c26c23163 composite in scanlines, not pixels
try compositing a scanline at a time, should improve cache locality for
deep image stacks

seems to work, needs benchmarking
2018-11-27 18:27:38 +00:00
John Cupitt
e6f271df10 remove stop-at-solid feature
We used to stop compositing when we reached the first solid image, but
that only works for modes like OVER.

Instead, composite all images, regardless of transparency.

See https://github.com/libvips/libvips/issues/928
2018-11-27 14:51:56 +00:00
John Cupitt
24abbb83ab add animated webp tests 2018-11-27 13:36:28 +00:00
John Cupitt
4e182440ef fix non-animated webp read 2018-11-26 17:14:57 +00:00
John Cupitt
1d64321649 Merge branch 'master' into add-webp-animated 2018-11-26 13:20:34 +00:00
John Cupitt
3887d8a6e5 fix out of order read for some tiff
Make sure we always have min of two strips in a linecache. Plane
separate tiffs with large rows-per-strip could shrink the cache to a
single block of pixels, which would then fail if the output straddled a
tile boundary.

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

Thanks @chregu for the report.
2018-11-25 19:03:35 +00:00
John Cupitt
2b70333d7e fix string truncation regression
buf_append was dropping the final byte
2018-11-25 11:19:36 +00:00