Commit Graph

305 Commits

Author SHA1 Message Date
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
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
24abbb83ab add animated webp tests 2018-11-27 13:36:28 +00:00
John Cupitt
b2325697c3 revise xmp in png
back to blob again
2018-11-23 17:20:05 +00:00
John Cupitt
6be70e6799 add xmp load/save for png
plus a test
2018-10-06 11:54:27 +01:00
Yazan Medanat
90f578a05f Change jcupitt references to libvips. 2018-09-21 09:05:47 -07:00
John Cupitt
bb23a1fe6c fix openexr alpha test 2018-08-28 11:18:21 +01:00
John Cupitt
b836749b75 close jpeg read early
The current behaviour (close input handles on unref) works for languages
like C / C++ / Python / Rust / etc. where things get unreffed automatically
when they go out of scope.

On languages like Ruby / C# / node / etc. where things are unreffed on GC,
files can stay open for a long time after you've finished with them. This
interacts in an unfortunate way with the Windows default of refusing to
remove open files.

This change closes file handles as soon as the scan of the input file
finishes, and therefore produces something closer to expected behaviour
for GCd languages on Windows.

see https://github.com/kleisauke/net-vips/issues/12
2018-08-16 15:47:48 +01:00
John Cupitt
9a5249ca20 tag unicode strings as unicode
seems to help with py2.7 anyway
2018-08-12 18:25:19 +01:00
John Cupitt
0beb5e9165 make test-suite survive make dist 2018-07-25 17:17:13 +01:00
John Cupitt
96d5008501 fix make dist 2018-07-25 16:28:23 +01:00
John Cupitt
f005e4a188 add test for new ICO sniffer 2018-07-25 15:34:31 +01:00
John Cupitt
e72ad7045d add a nifti test 2018-07-20 17:23:06 +01:00
John Cupitt
3201b4373d Merge branch 'master' into add-nifti-support 2018-07-20 13:57:51 +01:00
John Cupitt
2695916afb test region_shrink
just sets the option, does not verify accuracy :(
2018-07-07 17:07:35 +01:00
John Cupitt
43199e7b27 add tests for exif string fields
test exif string tag set/save/load
2018-07-06 17:01:38 +01:00
John Cupitt
51e7645859 fix "make check"
eited the wrong file :(
2018-07-06 16:11:02 +01:00
John Cupitt
d510807e90 vmoe the test suite back into libvips 2018-07-06 15:43:20 +01:00
Felix Bünemann
1abc5f901a Add palette flag to trigger pngsave quantisation
and tweak docstrings.
2018-06-19 22:41:40 +02:00
Felix Bünemann
1e68b3a486 Rename pngsave colors/colours, quantize/quantise 2018-06-19 21:32:44 +02:00
Felix Bünemann
d9d2f7b89a Add 8bpp PNG quantization support
This adds support for saving 8-Bit one band palette based PNG images
with palette based alpha channel (often called PNG8+Alpha).

The image is first converted to sRGBA and then quantized using
libimagequant controlled by the colors, Q and dither params.
2018-06-18 02:22:46 +02:00
John Cupitt
424b359d33 bump wrapper script version
and add a test too

see https://github.com/jcupitt/libvips/issues/834
2017-12-17 10:50:57 +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
48680dccc4 remove python test suite
it's in pyvips now
2017-09-13 17:45:29 +01:00
John Cupitt
3cf33d7f32 Merge branch '8.5' 2017-08-18 12:32:12 +01:00
John Cupitt
279c1ef55f make test text pass if text is missing 2017-08-11 09:31:01 +01:00
John Cupitt
7134c64836 notes 2017-08-11 09:23:59 +01:00
John Cupitt
18595ca0dd find_trim works for all bg images
width/height == 0 if whole image is bg
2017-07-26 15:13:12 +01:00
John Cupitt
6359c92c01 polish, add test for find_trim 2017-07-26 10:43:28 +01:00
John Cupitt
a8fb38fb6a Merge branch '8.5' 2017-07-08 16:06:18 +01:00
John Cupitt
060bdd2cf0 fix svgload resolution again
use rsvg_handle_set_dpi() rather than cairo_scale() to avoid int
truncation on dimensions

see https://github.com/jcupitt/libvips/issues/688
2017-07-08 16:03:56 +01:00
John Cupitt
f3393fb89b try to fix cli format test
add a threshold for svgload, librsvg seems to vary a bit between
platforms
2017-07-08 15:26:48 +01:00
John Cupitt
7408c6c9b2 fix sh part of test suite 2017-07-08 15:09:35 +01:00
John Cupitt
dad4e5b709 fix svgload test 2017-07-08 12:43:03 +01:00
John Cupitt
cbd9fad040 fix a few more problems with input args
a few other operators were modifying input args and messing up caching
2017-05-29 18:58:24 +01:00
John Cupitt
8c8b71d935 Merge branch '8.5' 2017-05-15 11:35:47 +01:00
John Cupitt
2b0ebb0de2 fix test suite thresholds
changes in jpg encode/decode mean we must adjust test suite thresholds
2017-05-15 11:21:13 +01:00
John Cupitt
620e9ebf27 missing backslash in makefile 2017-05-15 10:48:09 +01:00
John Cupitt
2f6f2b93ef add more thumbnail tests
esp. the new force mode
2017-05-05 14:13:49 +01:00
John Cupitt
04353f8915 added new_from_image() to python
and tests
2017-04-28 18:27:15 +01:00
John Cupitt
4c502fcbf3 add more seq tests 2017-04-23 09:43:01 +01:00
John Cupitt
0a5375b6cd Merge branch 'master' into remove-seq-stalling 2017-03-15 12:26:44 +00:00
John Cupitt
e6bbfe4672 more centos5 fixes
can't use GRegexp if we need to support centos5 ... vipsthumbnail was
using it to parse geometry strings

new geo parser, plus some tests

see https://github.com/jcupitt/libvips/issues/622
2017-03-15 12:08:52 +00:00
John Cupitt
362c7efdfc argh reapply seq removal 2017-03-06 11:55:38 +00:00
John Cupitt
d40773515c add smartcrop 2017-03-01 15:41:26 +00:00
John Cupitt
90d9145d3c Revert "notes on out of order errors"
This reverts commit 67101e48be.
2017-02-27 10:22:36 +00:00
John Cupitt
67101e48be notes on out of order errors 2017-02-25 15:21:48 +00:00
John Cupitt
c963678549 more hist_local fixups
add tests, add restrict
2017-01-22 10:36:07 +00:00
John Cupitt
5d61bd4982 Merge branch 'master' into add-webp-metadata 2017-01-04 16:13:39 +00:00
John Cupitt
0d9bf6a81e gifload supports n and page-height 2016-11-26 15:07:12 +00:00
John Cupitt
6e26e317e0 update magick6 loader
now supports page/n/page-height
2016-11-25 14:46:46 +00:00
John Cupitt
25dd60c781 add tests
all done, I think
2016-11-23 17:20:04 +00:00
John Cupitt
5cc9229882 bump min libwebpmux version
0.3 can't read 0.5 libwebp files argh
2016-11-10 09:20:54 +00:00
John Cupitt
bf7f1cd9a4 add some tests 2016-11-10 07:24:04 +00:00
John Cupitt
d5934d606a polishing 2016-11-08 14:42:54 +00:00
John Cupitt
6bff578fd9 remove old thumbnail code
and test thumbnail_buffer
2016-11-02 14:24:18 +00:00
John Cupitt
7d0c821a6e add tests for thumbnail 2016-11-02 13:51:09 +00:00
John Cupitt
e715c62e27 Merge branch '8.4' 2016-10-28 16:51:43 +01:00
John Cupitt
c0ab8b0ab1 fix a warning from the test suite
we were trying to save greyscale PNGs with an RGB profile
2016-10-28 16:49:02 +01:00
John Cupitt
156b0433d5 add dzsave_buffer
zip only ... see https://github.com/jcupitt/libvips/issues/415
2016-10-15 19:01:34 +01:00
John Cupitt
c90b8be0b8 add tiffsave_buffer
add tests

also some cleanups to foreign include files

see https://github.com/jcupitt/libvips/issues/417
2016-10-15 12:29:14 +01:00
John Cupitt
a99b4cc23e argh stupid unicode 2016-09-14 14:31:38 +01:00
John Cupitt
4958adfb66 strange 2016-09-14 14:06:13 +01:00
John Cupitt
d54df515b8 add some tests 2016-09-08 10:41:01 +01:00
John Cupitt
57e1423d57 Merge branch 'master' into windows-unicode 2016-09-05 13:12:06 +01:00
John Cupitt
c4a1ac6310 fix ROUND_UP, add a test for felix's corner case 2016-08-20 13:18:25 +01:00
John Cupitt
fe3262f719 test unicode filename support 2016-08-19 09:15:34 +01:00
John Cupitt
1f403a4add first attempt
seems to all work, test it a bit more

see https://github.com/jcupitt/libvips/issues/491
2016-08-15 15:45:26 +01:00
John Cupitt
91e31cb830 more tweaks for travis 2016-08-14 21:44:55 +01:00
John Cupitt
762c655a5c try to help travis 2016-08-14 21:33:33 +01:00
John Cupitt
5df5793457 done!
all tests done, all pass with magick6 and magick7
2016-08-14 18:39:40 +01:00
John Cupitt
9143bda915 Merge branch 'master' into add-magick7 2016-08-14 10:25:03 +01:00
John Cupitt
d2effba8f6 float output from worley 2016-08-11 21:58:53 +01:00
John Cupitt
b75a533493 done as much as we can
abandon our current conva system, use a cumulative image instead
2016-08-11 21:39:04 +01:00
John Cupitt
8c05a2bbe8 argh all_frames doesn't work for gif 2016-08-04 15:55:06 +01:00
John Cupitt
40f01fdb2b Merge branch 'master' into add-magick7 2016-08-04 14:15:46 +01:00
John Cupitt
e6bf970911 hit a snag 2016-08-04 10:11:21 +01:00
John Cupitt
e439c5f78f add .svg.gz suffix
allow .x.y suffixes
2016-08-01 14:57:33 +01:00
John Cupitt
fe615af233 Merge branch 'add-svgload-svgz-detection' of https://github.com/felixbuenemann/libvips into felixbuenemann-add-svgload-svgz-detection 2016-08-01 12:09:35 +01:00
John Cupitt
9535128a93 stuck on dicom now 2016-07-29 13:24:13 +01:00
John Cupitt
71fb52afa0 Merge branch 'master' into add-magick7 2016-07-27 08:49:39 +01:00
John Cupitt
d388f666cb fix tests 2016-07-26 17:28:54 +01:00
John Cupitt
12a32b23f1 Merge branch 'master' into add-magick7 2016-07-25 12:40:43 +01:00
John Cupitt
2dc43198e4 final fixups 2016-07-24 14:47:22 +01:00
John Cupitt
43395d4e7b tests pass 2016-07-09 12:19:56 +01:00
Felix Bünemann
14953c19e7 Add support for .svgz files to svgload 2016-06-27 01:54:53 +02:00
John Cupitt
a5bef08d4a better reducev multiplication
more accurate, no slower

add more tests too
2016-06-15 13:56:19 +01:00
John Cupitt
88acc23e2b Merge pull request #461 from felixbuenemann/dzsave-zip-compression
Vips dzsave zip compression support
2016-06-08 13:51:35 +01:00
Felix Bünemann
1f9e81309e Add dzsave zip compression support 2016-06-04 02:14:46 +02:00
Felix Bünemann
e71c247764 Make sure test_formats.sh exits on errors
This is required to make sure we fail if a vips command fails, eg. due
to a missing fixture.
2016-06-02 23:10:14 +02:00
John Cupitt
1bf8e0847f run py tests from "make check"
though they fail on ubuntu 16.04 due to giflib dumbness

magickload is also failing, investigate
2016-06-02 23:10:14 +02:00
Felix Bünemann
8b598d5b77 Run python tests without make install
In order to do this, we need to add some stub gi module init files which
allow us to extend the gi overrides path.
2016-06-02 23:10:14 +02:00
John Cupitt
93d0d15f88 Merge branch 'master' into add-tiff-orientation 2016-05-27 20:25:41 +01:00
John Cupitt
cefc4ce64d all done
seems to all work and pass tests
2016-05-27 20:24:48 +01:00
John Cupitt
2590559e56 basic tests 2016-05-27 20:18:25 +01:00
John Cupitt
0b646ffcc7 oops, filename 2016-05-27 16:59:21 +01:00
John Cupitt
f0521d4b5d all done!
a few more tests though
2016-05-27 16:53:25 +01:00
Felix Bünemann
fdeb1b3b12 Test gifload in make check and on Travis CI 2016-05-27 01:26:45 +02:00
Felix Bünemann
f9dc33c8f2 Test svgload in make check and on Travis CI 2016-05-27 01:26:45 +02:00
Henri Chain
701f4aaf6e close right after write 2016-05-24 11:42:23 +02:00
Henri Chain
957c4cbb43 fix hdr-specific typo 2016-05-24 11:40:40 +02:00
Henri Chain
6c1aa2b63f add unit test for radiance buffer save 2016-05-24 11:15:54 +02:00
John Cupitt
6e94df7214 set version before import pyvips8
stops some warnings
2016-05-18 13:41:41 +01:00
John Cupitt
92a6ff19a1 add some more webp tests 2016-05-17 14:08:46 +01:00
Felix Bünemann
4640aab388 Test against system libwebp on Travis CI
* Dropped custom ppa used only for libwebp backport
* Dropped lossless test from `make check` (not supported in 0.1.3)
2016-05-09 12:29:23 +02:00
John Cupitt
8ed8515c49 Merge pull request #439 from felixbuenemann/fix-minimum-required-poppler-version
Fix poppler version requirement, add loader check
2016-05-09 10:17:16 +01:00
Felix Bünemann
8b3bb10b00 Fix test_{threading,thumbnail}.sh without install
Both scripts were not using the $vips variables required to use vips
from the source directory instead of from the system.
2016-05-09 00:48:37 +02:00
Felix Bünemann
bec6b174c9 Fix poppler version requirement, add loader check
This fixes the poppler-glib version requirement to version 0.16, which
is the lowest version that compiles and works properly with pdfload.

Also added a check for pdfload and enabled testing on Travis CI.
2016-05-09 00:16:48 +02:00
Felix Bünemann
27e3198833 Add webp save/load format tests for "make check" 2016-04-24 18:28:53 +02:00
John Cupitt
1a25c7a083 better rounding in vipsthumbnail 2016-03-25 10:42:21 +00:00
John Cupitt
2996947b0d start fixing up test_thumbnail
since --interpolator no longer does anything
2016-03-25 06:11:01 +00:00
John Cupitt
82cecf3d9f bilinear interp. supports complex types
in line with cubic etc.
2016-03-14 10:06:45 +00:00
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