John Cupitt
5623bb1330
add a nifti wrapper for vips7
...
so nip2 can now load nifti images
2018-09-10 14:35:49 +01:00
Lovell Fuller
bc6639e08d
Smartcrop (attention): resize at start of pipeline
2018-09-05 21:02:48 +01:00
John Cupitt
3f8c04c38b
add docs for mosaic output
...
note the extra params that let you read out the transform
2018-09-05 09:02:39 +01:00
John Cupitt
f9cbc7263d
Merge pull request #1081 from lovell/composite-cpp-sentinel
...
Silence 'missing sentinel' warnings in GCC v6+
2018-09-04 11:06:16 +01:00
Lovell Fuller
ec2ad85279
Silence 'missing sentinel' warnings in GCC v6+
2018-09-04 11:00:39 +01:00
John Cupitt
870610af4e
reduce stack usage to help musl
...
don't allocate a pointer array on the stack in arithmetic.c
see f3ef6e52ea
2018-09-04 08:46:37 +01:00
John Cupitt
1702529be0
add a compat stub for vips_region_shrink()
...
to keep ABI compat with 8.6
2018-08-29 09:50:35 +01:00
John Cupitt
bb23a1fe6c
fix openexr alpha test
2018-08-28 11:18:21 +01:00
John Cupitt
8891d6dc29
exif strings were not trimmed correctly
...
drop_tail() missed the final "()"
2018-08-28 11:08:49 +01:00
John Cupitt
f725d7efab
Merge pull request #1074 from lovell/vips_icc_is_compatible_profile-leak
...
Fix 72 byte leak when ICC profile is compatible
2018-08-23 22:17:02 +01:00
Lovell Fuller
814af7e832
Fix 72 byte leak when ICC profile is compatible
2018-08-23 22:04:28 +01:00
John Cupitt
fec2f5f869
make vips_object_get_args() return an int
...
since malloc can fail
2018-08-20 08:45:46 +01:00
John Cupitt
30cb95e6e7
Merge pull request #1068 from kleisauke/add-vips_object_get_args
...
Add vips_object_get_args
2018-08-20 08:24:31 +01:00
Kleis Auke Wolthuizen
b5b756b817
Add vips_object_get_args
...
Handy for language bindings.
2018-08-19 22:42:26 +02:00
John Cupitt
96770a49b1
add -lznz to the nifti test to help win
...
see https://github.com/jcupitt/libvips/pull/1066
2018-08-19 21:17:32 +01:00
John Cupitt
3d249924a5
another early close for openexr read
2018-08-19 19:30:11 +01:00
John Cupitt
f4250ab7ab
scale openexr alpha up
...
scale alpha up to 0 - 255 to match the rest of libvips
2018-08-19 10:53:54 +01:00
John Cupitt
b92c55770f
openexr shut down early
...
for non-tiled images anyway
2018-08-19 05:30:49 +01:00
John Cupitt
a0c8417109
Merge branch 'master' into close-input-early
2018-08-19 05:24:28 +01:00
John Cupitt
93e3ffb0bb
note on tiled tiff read
...
I had a quick go at making tiffload shut down early for tiled tiff read,
but it's not really possible because tiled read is not guaranteed to be
ordered.
Add a note for future reference.
2018-08-19 05:19:11 +01:00
John Cupitt
fdafb4de5f
oop fix tiff2vips change
...
y is relative
2018-08-19 04:26:24 +01:00
John Cupitt
79cafbd604
regen some docs
2018-08-17 18:04:47 +01:00
John Cupitt
cfeef85677
revise README for 8.7
2018-08-17 17:52:45 +01:00
John Cupitt
10d1aeb6f2
make pdf load close early
...
but only in seq mode
2018-08-17 11:14:06 +01:00
John Cupitt
0b4cef06b7
close early for tiffload
2018-08-16 16:00:14 +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
f3ef6e52ea
bump max input images for sum
...
was only 64
2018-08-16 15:23:24 +01:00
John Cupitt
d48f80130b
switch to g_open()/g_fopen()
...
Might help with files being left open, perhaps. It's certainly neater.
See https://github.com/kleisauke/net-vips/issues/12
2018-08-15 14:58:12 +01:00
John Cupitt
68fd9c8de6
Merge pull request #1061 from criteo-forks/master
...
Fix missing area unref in getpoint()
2018-08-14 18:00:39 +01:00
Dimitri Bouron
1c1aeb2262
Merge pull request #1 from dbouron/master
...
Fix missing area unref in getpoint()
2018-08-14 14:32:59 +02:00
Dimitri Bouron
725d39e691
Fix missing area unref in getpoint()
...
Signed-off-by: Dimitri Bouron <d.bouron@criteo.com>
2018-08-14 14:19:01 +02:00
John Cupitt
01b66f5ccd
clear gif pages before load
...
some gifs may not clear the background, so we must init pages as 0
see https://github.com/lovell/sharp/issues/1331
2018-08-13 17:30:54 +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
643e7c0ea2
mapim fix for strange float values
...
mapim could fail for float index images outside the int range
minor speedup too
2018-08-12 17:10:23 +01:00
John Cupitt
c1dcb0c535
Merge branch 'master' of github.com:jcupitt/libvips
2018-08-07 15:07:46 +01:00
John Cupitt
0ccde9e0f7
README tweaks
2018-08-07 15:07:38 +01:00
John Cupitt
fc7fde194c
Merge pull request #1054 from radarhere/patch-1
...
Fixed typo
2018-08-07 10:50:20 +01:00
Andrew Murray
e64351de28
Fixed typo
2018-08-07 19:47:28 +10:00
John Cupitt
0b3565c04d
update radiance load from upstream
...
thanks Greg Ward
2018-08-03 18:31:31 +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
2bfb471a20
don't escape \n\t\r in xml
...
\n especially happens rather a lot heh
2018-07-25 15:29:42 +01:00
John Cupitt
9147bb64c4
notes
2018-07-24 17:44:41 +01:00
John Cupitt
e89dac20bb
add sniffing framework to magickload
...
though it only spots ICO for now
see https://github.com/jcupitt/pyvips/issues/39
2018-07-24 17:38:36 +01:00
John Cupitt
72f589764a
remove the @format param to magickload
2018-07-24 17:03:38 +01:00
John Cupitt
b7bac0d88d
fix vips7 split on empty filename
...
a "" filename in vips7 compat mode could trigger a read beyond the end of
the string
see https://github.com/jcupitt/libvips/issues/1040
2018-07-23 18:50:53 +01:00
John Cupitt
479610ff30
better handling of ASCII control chars in xml
...
represent ASCII control chars as their unicode glyphs in XML
see http://www.shacknews.com/chatty?id=37738911#item_37738911
2018-07-23 18:21:15 +01:00
John Cupitt
19b27c846e
fix possible used-before-set in radiance.c
...
some versions of glib might not zero some parts of the Read struct
see https://github.com/jcupitt/libvips/issues/1040
2018-07-23 15:55:32 +01:00
John Cupitt
2d94fe732a
escape ASCII control chars in xml
...
stops some XML parse errors on corrupt metadata
see https://github.com/jcupitt/libvips/issues/1039
2018-07-23 14:55:37 +01:00