Commit Graph

5522 Commits

Author SHA1 Message Date
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
John Cupitt
0669cf2a23 Merge branch 'master' into add-webp-animated 2018-11-23 17:41:09 +00:00
John Cupitt
01a5bfa27e notes 2018-11-23 17:22:06 +00:00
John Cupitt
b2325697c3 revise xmp in png
back to blob again
2018-11-23 17:20:05 +00:00
John Cupitt
cff4af34ca add vips_image_set_blob_copy()
and use it where we can
2018-11-23 16:27:39 +00:00
John Cupitt
8fa3b0aa1c start trying to fix up blob/string mixups
we often set strings as blobs (eg. libtiff uses pointer/length for
XML and does not null-terminate) ... when do we validate stringiness,
and add the missing null?
2018-11-22 09:15:57 +00:00
John Cupitt
d4815e8b7e more info output for tmpfile open
to help diagnose problems
2018-11-21 14:26:52 +00:00
John Cupitt
572e37a314
Merge pull request #1159 from lovell/tiffread-premultiplied-alpha
Unpremultiply TIFF with associated alpha channel
2018-11-17 10:59:39 +00:00
John Cupitt
6b9d89b103 add pyr tiff shrink-on-load for thumbnail 2018-11-16 18:00:25 +00:00
John Cupitt
26d0e312c6 add bandand/or/eor to the cpp binding
oops, they had been dropped

thanks clcaalu

see https://github.com/libvips/libvips/issues/1165
2018-11-16 13:10:22 +00:00
John Cupitt
07d58f81b3 fix cast on uint images
we could get sign and overflow mixed up for casts on uint images

see https://github.com/libvips/nip2/issues/74
2018-11-14 17:07:49 +00:00
Lovell Fuller
0d6c29f772 Unpremultiply TIFF with associated alpha channel 2018-11-13 19:47:36 +00:00
John Cupitt
b84bf6d4f4 check read order for strip tiffs
double-check seq is working, related to https://github.com/libvips/libvips/issues/1158
2018-11-13 17:29:36 +00:00
John Cupitt
8edc2c3f22 add webp anim write options 2018-11-06 17:20:35 +00:00
John Cupitt
3e070cbcdf Merge branch 'master' into add-webp-animated 2018-11-05 16:26:45 +00:00
John Cupitt
17c9856e38 add n/page support for webp read 2018-11-05 16:21:21 +00:00
John Cupitt
d6c7d86e12 Merge branch '8.7' 2018-11-05 10:41:46 +00:00
John Cupitt
0bea76d364 fix temp file open
was not auto-deleteing on windows, needs a fallback on linux

see https://github.com/libvips/libvips/pull/1155
2018-11-05 10:40:51 +00:00
John Cupitt
89c6d29079 add comments re. temp file open bug 2018-11-05 10:38:15 +00:00
John Cupitt
e5234287da
Merge pull request #1155 from lovell/open-tmpfile-fallback
Fallback to standard temp file if O_TMPFILE fails
2018-11-05 10:17:00 +00:00
John Cupitt
b161f4b982 clear to background on init 2018-11-04 19:58:06 +00:00
Lovell Fuller
90ca64668d Fallback to standard temp file if O_TMPFILE fails #1151 2018-11-04 19:51:36 +00:00
John Cupitt
e81e7f96eb add blending to webp load 2018-11-04 18:28:36 +00:00
John Cupitt
5e071a783f rework webp for progressive read
should be faster and need a lot less memory for long animations
2018-11-04 12:04:21 +00:00
John Cupitt
d317961378 check frame durations 2018-11-03 14:03:16 +00:00
John Cupitt
7071ad79a8 fix non-animated read 2018-11-03 12:39:08 +00:00
John Cupitt
d7e8688c35 loads an animation as a set of frames
still need to add dispose and blend, plus page/n
2018-11-02 16:47:34 +00:00
John Cupitt
3194083af2 reads animation headers
decode animation frames next
2018-11-02 10:22:03 +00:00
John Cupitt
5dadc03ce0 start animation decode for webp
switch to demux API, start extended header read
2018-11-02 09:06:05 +00:00