Commit Graph

91 Commits

Author SHA1 Message Date
John Cupitt f12fef4aa9 fix compile 2016-03-13 11:35:35 +00:00
John Cupitt dc7902b12f Merge branch 'master' into add-lanczos3 2016-03-13 11:23:03 +00:00
John Cupitt 6368ab0649 add switches to disable rad, analyze and ppm
vips has built-in support for rad, analyze and ppm ... add configure
switches to disable these readers

useful to reduce the attack surface in some applications
2016-03-12 16:48:27 +00:00
John Cupitt 4974a1ed9c better rounding for vips_resize()
we were getting off by one size errors
2016-03-10 19:53:05 +00:00
John Cupitt 9201248623 Merge branch '8.2' 2016-03-06 18:05:12 +00:00
John Cupitt acf5f5169a fix hist_entropy
there was a copy-paste error in the call to vips_log(), thanks Lovell

see https://github.com/lovell/sharp/issues/295
2016-03-06 18:02:59 +00:00
John Cupitt 2ea5c5f7e5 make python bandrank() work like bandjoin()
we had a custom wrapper for bandjoin(), but bandrank(), a function with
an almost identical interface, did not ... this was confusing

bandrank() now has a custom wrapper too ... this breaks API
unfortunately, but hopefully very few people were using this thing and
it's better to make this change as soon as possible
2016-03-01 12:12:51 +00:00
John Cupitt d33306836f better rgb16 -> scrgb handling
helps new sharpen tests
2016-02-26 09:08:42 +00:00
John Cupitt c1f1a7c1b3 improve sharpen for screen work
it was a bit granular (since it was designed for offset work), make sharpen
easier to adjust for smaller effects

- new 'sigma' parameter
- greater parameter range
- more self-tests
2016-02-25 11:16:24 +00:00
John Cupitt f131aaa082 fix up magickload test again 2016-02-13 14:27:41 +00:00
John Cupitt c2be771342 fix load from buffer, update APIs 2016-02-12 20:04:46 +00:00
John Cupitt 0081f5e4ef another test file
cmyk pdf test file, though it's not actually used yet
2016-02-10 14:40:52 +00:00
John Cupitt 56e45545d3 fix load from buffer 2016-02-09 11:58:43 +00:00
John Cupitt 153886d2eb add svgload
load from bubffer is not working though, strange ... it seems to be
generating a 16-biit image?
2016-02-09 11:01:12 +00:00
John Cupitt 676d35ed74 add pdfload tests 2016-02-08 20:39:39 +00:00
John Cupitt 8cffd136e9 finish reduce
and fix up bicubic a bit, it works better on int32 images now
2016-02-07 17:41:39 +00:00
John Cupitt 39e6963033 start tests 2016-01-29 17:55:54 +00:00
John Cupitt f3e3514b03 test embed profile in tiff
test embed from file
2016-01-22 22:06:20 +00:00
John Cupitt af8b43b16d fix to make check in non-C locales
"make check" uses bc, which needs '.' as a decimal sep.

https://github.com/jcupitt/libvips/issues/367
2016-01-17 09:29:25 +00:00
John Cupitt e81900b187 bandjoin is just an instance function
we had both a class member bandjoin, and an instance member

Vips.Image.bandjoin([i1, i2, i3..])
i1.ibandjoin([i2, i3..])

this was confusing and annoying ... get rid of the class one and just
use bandjoin everywhere, so this is now the way to do it:

i1.bandjoin([i2, i3..])
2016-01-04 14:18:10 +00:00
John Cupitt dbf9a5ed1c fix dzsave tile-width default
was wrong for google / zoomify layouts

revise tests too
2015-12-30 11:23:33 +00:00
John Cupitt 7267ca4a28 lower max threads in make check
seems to annoy travis
2015-12-18 09:11:15 +00:00
John Cupitt 253cb8e2e3 fix up dzsave overlap handling
There was a mixup with the previous fix to dzsave overlap handling,
correct it and update the test suite.

In the previous revision, dzsave overlapped tiles by overlap and sized
them by tile_size. In fact, tiles should be sized as (tile_size + overlap
* 2), ie. tile_size refers to the number of unique pixels per tile.

See https://github.com/jcupitt/libvips/issues/357
2015-12-17 11:54:38 +00:00
John Cupitt ff1dd39432 more tests for arrayjoin 2015-12-12 12:38:29 +00:00
John Cupitt 5916e25c31 rename python bandjoin as ibandjoin
oh argh class and instance methods are in the same namespace, so we have
to rename the instance one as ibandjoin

also, start adding a test for arrayjoin
2015-12-12 12:29:20 +00:00
John Cupitt d27bbd6803 add mapim test
and a python mapim example
2015-11-19 11:44:58 +00:00
John Cupitt 295b18585a python uses bandjoin_const when possible
added a test case, speedup seems worthwhile
2015-11-07 20:34:56 +00:00
John Cupitt 30a3d2f7fa fix shrink with non-int args
fix a silly bug, add a test
2015-11-04 12:00:49 +00:00
John Cupitt 9a4d82653c ignore ':' in col 1 of vips7 paths
oh argh, we were mangling windows paths

see https://github.com/jcupitt/build-win32/issues/11
2015-10-13 14:21:17 +01:00
John Cupitt 368a74abcd better vips7 filename splitting
helps windows, see https://github.com/jcupitt/build-win32/issues/11

also add some tests
2015-10-13 10:29:53 +01:00
John Cupitt db291daf81 two small fixes for dzsave
fix a tiny leak, fix coloured @background
2015-10-06 13:30:25 +01:00
John Cupitt 82b4f2037b add some dzsave tests
does not test all options yet though
2015-09-10 14:07:48 +01:00
John Cupitt 677a7db0db fix the exif mod test 2015-07-17 10:59:42 +01:00
John Cupitt 83cd265e7d one strange issue left 2015-07-16 15:40:11 +01:00
John Cupitt 17bace3483 fix corrupt test image 2015-06-22 06:52:02 +01:00
John Cupitt 24611b9ec5 add HSV test to test suite 2015-06-21 19:40:45 +01:00
JonDeen 38c44abc6d Merge branch 'master' into add-hsv 2015-06-20 00:14:51 +02:00
John Cupitt e107dd11c0 test band fold/unfold factors 2015-06-11 12:49:11 +01:00
JonDeen ff70185dda weird fits 2015-06-10 11:29:37 +02:00
John Cupitt e83a3bbfd1 add a test for byteswap() 2015-06-07 16:24:52 +01:00
John Cupitt e9720afb18 add vips_bandfold()/vips_bandunfold()
was part of vips_copy(), but it was very ugly there
2015-06-05 14:52:05 +01:00
John Cupitt e84b97038f add mono image -> many band column
or row ... handy for loading LUT images from CSV files
2015-06-04 16:02:41 +01:00
John Cupitt baf78fc04a oops, fix base64 encode/decode padding
we were adding up to two bytes of null to the end of base64-encoded
binary data due to a signed/unsigned mixup

add a test for this, plus a test for vips file format
2015-05-31 18:17:26 +01:00
John Cupitt 98e80903e0 metadata was not being saved to vips files
broken by the rewind changes a few weeks ago

added a test too
2015-05-28 16:19:32 +01:00
John Cupitt 36331739ab add bandand() bandor() bandeor() to py
convenience funcs
2015-05-26 10:32:15 +01:00
John Cupitt ec52d1b922 change vips_flatten() alpha rules
now match vips_premultiply()

add tests

foreign knows about new logic
2015-05-09 12:10:42 +01:00
John Cupitt 8ba680605a soname bump, test suite improvements
test suite now tests load from buffer and save to buffer

test suite adapts for differences in newer libMagick

bump soname for safety
2015-05-05 09:40:29 +01:00
John Cupitt 599bc0d75c fix missing lib detect in tests 2015-04-24 10:51:01 +01:00
John Cupitt c3cc4f73a9 more travis poking
and fix a float comparison in test_threading
2015-04-14 11:14:25 +01:00
John Cupitt dde0eda74e add a test for tiff squash & miniswhite 2015-04-11 22:06:13 +01:00