Commit Graph

5218 Commits

Author SHA1 Message Date
John Cupitt
3c0a2e4837 fix window cycling
we were repeatedly free-ing and new-ing input mmap windows ... this made
things like zoom out on large images in nip2 much slower than they
needed to be
2017-12-10 17:37:07 +00:00
John Cupitt
e9b7231ac0 add "extend" option to affine
so for upsizing with displacement (like resize) we can prevent dark
edges on bright images

see

https://github.com/jcupitt/php-vips/issues/61
2017-12-07 14:51:07 +00:00
John Cupitt
bc6fa2452b layout tweak 2017-12-07 08:00:19 +00:00
John Cupitt
b90f5852c9
Merge pull request #824 from lovell/debug-build
Allow compilation of debug build
2017-12-07 07:58:36 +00:00
Lovell Fuller
f0949fbfcb Allow -DDEBUG build to compile 2017-12-06 22:04:11 +00:00
John Cupitt
0ade2e972f reenable png interlace test
reenable png interlace test after the fix in

https://github.com/jcupitt/libvips/pull/821
2017-12-05 08:38:52 +00:00
John Cupitt
baab520c9c
Merge pull request #821 from lovell/png-start-read
libvips v8.6.0-beta: ensure interlaced PNG input works with libpng16
2017-12-05 08:26:29 +00:00
Lovell Fuller
8a34ba6e14 Ensure interlaced PNG input works with libpng16
Manually calling png_set_interlace_handling results in the internal
num_rows member of the opaque png_structp not being correctly set.

This appears to be a limitation of libpng so probably needs fixing
upstream before the png_set_interlace_handling call can be re-added.
2017-12-04 21:47:52 +00:00
John Cupitt
697c174bcd more doc fixes 2017-12-04 15:34:31 +00:00
John Cupitt
dcf8588b97 notes for blend mode members 2017-12-04 14:26:55 +00:00
John Cupitt
c5139a0e50 doc fixups
various small things; fix the docs for composite, reduceh and reducev
2017-12-04 13:42:31 +00:00
John Cupitt
0702a01e60 Merge branch 'master' of github.com:jcupitt/libvips 2017-12-04 12:01:08 +00:00
John Cupitt
b876f1d904 try to fix composite docs 2017-12-04 10:40:43 +00:00
John Cupitt
7182276c4d cite was in there twice 2017-12-02 13:06:17 +00:00
John Cupitt
c8abaf4f80 update py notes in README 2017-12-01 15:57:26 +00:00
John Cupitt
60bd5f6512 add composite2 to notes 2017-12-01 13:37:15 +00:00
John Cupitt
0fb6e5a711 Merge branch 'add-extra-dzsave-tiles' 2017-12-01 13:36:12 +00:00
John Cupitt
13a693c8bc Merge branch 'master' into add-extra-dzsave-tiles 2017-12-01 13:33:54 +00:00
John Cupitt
14fd2af396 add composite2 class
so we have a nice CLI interface to the new operator
2017-11-30 12:47:56 +00:00
John Cupitt
df28948b9d typo 2017-11-29 12:51:07 +00:00
John Cupitt
9c8790b40a setting EXIF data blocks sets other tags too
calling vips_image_set() to set the EXIF data block VIPS_META_EXIF_NAME
will automaticaly set other tags, like orientation etc.
2017-11-27 15:15:21 +00:00
John Cupitt
6013962288 better exif write
only remove exif fields not on the image if we made the exif from the saved exif data on the image
2017-11-27 05:54:10 +00:00
John Cupitt
de7636c66b remove "throw" from c++ autogen tools
and output
2017-11-26 17:55:50 +00:00
John Cupitt
10eef89a7f update c++ bindings 2017-11-26 17:45:04 +00:00
John Cupitt
955a5a97cc sRGB2scRGB uses the colour luts directly
rather than going via a function that clips ... about 2x faster
2017-11-26 16:47:24 +00:00
John Cupitt
406e228c9b vips_resize() is always centre convention
it was corner for downsize, but should be centre to match imagemagick
2017-11-26 15:24:40 +00:00
John Cupitt
3754ddb947 remove centre from resize in thumbnail
thanks kleis
2017-11-26 12:01:30 +00:00
John Cupitt
0363ac6ab9 fix indexed hist combine mode
it now tracks which bins have been inited, so min works
2017-11-25 21:23:10 +00:00
John Cupitt
ee4186ae8f revise resize docs 2017-11-25 15:13:20 +00:00
John Cupitt
7db13412e5 deprecate centre option to resize
it's now centre on upsize, corner on downsize

see https://github.com/jcupitt/libvips/issues/705
2017-11-25 14:22:20 +00:00
John Cupitt
cb128eb258 apply --centre to upsize as well as down
we were just using the --centre flag in resize to influence downsize
behaviour -- use it to set upsize as well

see https://github.com/jcupitt/libvips/issues/705
2017-11-25 12:09:01 +00:00
John Cupitt
bb81113312 add credits 2017-11-24 22:12:41 +00:00
John Cupitt
bb0772da51
Merge pull request #815 from lovell/premultiply-match-types
(Un)premultiply: ~10-15% speedup by matching clipped alpha type with IN/OUT
2017-11-24 22:08:50 +00:00
John Cupitt
bbc2f4e1f8
Merge pull request #816 from lovell/srgb2scrgb-optimise-3-4-band
Colour: ~20% sRGB to scRGB speedup for 3/4 channel images
2017-11-24 21:52:37 +00:00
Lovell Fuller
cac1b5b9c6 ~20% sRGB to scRGB speedup for common 3 and 4 band images 2017-11-24 21:45:00 +00:00
Lovell Fuller
7e23a140c4 ~10% speedup by matching clipped alpha type with IN/OUT
Improves unpremultiply precision for float/double input
2017-11-24 19:20:29 +00:00
John Cupitt
5664a0d9b1 dzsave outputs extra tiles along right and bottom
the deepzoom spec wants tiles to be written along the right and bottom,
even of those tiles contain no new pixels

this patch seems to work, but needs testing

see: https://github.com/jcupitt/libvips/issues/795
2017-11-24 15:54:22 +00:00
John Cupitt
f9f717a843 add VIPS_ONCE and use it everywhere
Lovell's idea: save the function call in the most common case
2017-11-23 08:43:08 +00:00
John Cupitt
8806e7039e
Merge pull request #813 from lovell/sRGB2scRGB-once-unlikely
Colour: ~20% speedup for sRGB to scRGB pixel conversion
2017-11-23 08:10:42 +00:00
Lovell Fuller
cef897ece8 ~20% speedup for sRGB to scRGB pixel conversion
by checking GOnce status with branch expectation
2017-11-23 07:36:19 +00:00
John Cupitt
72a493d2e6 fix build against giflib4 2017-11-22 19:52:40 +00:00
John Cupitt
6a4b249445 add dispose handling
see https://github.com/jcupitt/php-vips/issues/59
2017-11-22 17:37:31 +00:00
John Cupitt
27621733f2 add gif-comment 2017-11-22 13:10:06 +00:00
John Cupitt
c008bdddca gifload reports first delay, not last
many GIFs have a long delay on the final frame
2017-11-22 11:12:11 +00:00
John Cupitt
7aed4c04e7 fix gif-loop metadata
thanks Christian Stocker
2017-11-21 18:06:49 +00:00
John Cupitt
5361903fae make gif delay default to 4
should match imagemagick
2017-11-21 16:08:26 +00:00
John Cupitt
e56282e1fd add gif-loop metadata
see https://github.com/rokka-io/imagine-vips/issues/3
2017-11-21 16:04:18 +00:00
John Cupitt
b611f46d5a better gif delay decode 2017-11-21 15:09:44 +00:00
John Cupitt
d0c7f9d040 fix page-height in gifload
and add support for "gif-delay" metadata item
2017-11-21 11:21:27 +00:00
John Cupitt
8497840d97
Merge pull request #811 from lovell/smartcrop-luminance
Smartcrop: ~19% speedup by getting luminance from LAB instead of LCH
2017-11-21 08:31:53 +00:00