Commit Graph

6642 Commits

Author SHA1 Message Date
John Cupitt
e1835d59cd Merge remote-tracking branch 'kleis/fix-regression'
Fix regression in cast
2020-05-11 11:45:06 +01:00
John Cupitt
2265ad70a3 revise cast again
fixes saturated cast to integer
2020-05-11 11:42:12 +01:00
John Cupitt
d64385ae99 revise kernel mask calculations
We were seeing small displacements at some shrink factors because of
rounding in the mask size calcualation. This PR takes the rounding into
account when positioning the mask.

See https://github.com/libvips/libvips/pull/1592#issuecomment-626363031
2020-05-10 18:45:27 +01:00
Kleis Auke Wolthuizen
23bd5bd54c Fix regression introduced in #1619 2020-05-10 13:11:39 +02:00
John Cupitt
b9eddecca3 prevent /0 in jfif res decode 2020-05-06 20:08:36 +01:00
John Cupitt
a2cd5215f1
Merge pull request #1642 from lovell/magick7-is-a-buffer-min-len
Ensure magick7 buffer+file checks use consistent min length guard
2020-05-05 14:04:21 +01:00
Lovell Fuller
20bdc41225 Ensure magick7 buffer+file checks use consistent min length guard
Prevents a zero-length buffer from crashing GetImageMagick
2020-05-05 13:06:57 +01:00
John Cupitt
77365a8a6f better handling of JFIF res unit 0
res unit 0 sets the aspect ratio, rather than being unitless

thanks angelmixu

see https://github.com/libvips/libvips/issues/1641
2020-05-05 11:47:31 +01:00
John Cupitt
8281416ca4 fix hist_norm range
the cast change broke hist_norm
2020-05-04 17:04:37 +01:00
John Cupitt
29d9fcb0c8 update docs for --delete deprecation
see https://github.com/libvips/libvips/pull/1564
2020-05-03 16:10:59 +01:00
John Cupitt
9558563353
Merge pull request #1564 from UweOhse/master
deprecate unused option --delete
2020-05-03 16:03:32 +01:00
John Cupitt
54bfa23025 warn against thumbnail_image
see https://github.com/libvips/libvips/issues/1637#issuecomment-623094732
2020-05-03 12:31:17 +01:00
John Cupitt
10f1352f6f clean up, add benchmarks 2020-05-01 23:20:48 +01:00
John Cupitt
53101929c5 workinig! 2020-05-01 20:28:03 +01:00
John Cupitt
02327b6214 add an experimental libspng reader
it compiles, but I've not tried running it yet heh
2020-05-01 16:05:48 +01:00
John Cupitt
a5680abbd6
Merge pull request #1619 from kleisauke/compiler-warnings
Fix two compiler warnings
2020-05-01 11:30:41 +01:00
Kleis Auke Wolthuizen
7fecd79b0a Fix two compiler warnings 2020-05-01 09:46:26 +02:00
John Cupitt
383be359e8
Merge pull request #1626 from kleisauke/remove-varargs-open
Remove use of varargs in vips_*_open
2020-04-30 14:02:37 +01:00
John Cupitt
3aef92bc51
Merge pull request #1627 from kleisauke/temp-name-atomic
Ensure vips__temp_name creates unique filenames
2020-04-30 13:53:54 +01:00
John Cupitt
2ad29ed09e better error msg in magicksave 2020-04-27 17:03:18 +01:00
Kleis Auke Wolthuizen
cdf0269871 Ensure vips__temp_name creates unique filenames
There was a possible chance that vips__temp_name could generate the
same filename twice if it is called concurrently.

This commit ensures that the serial increment is an atomic operation,
similar to #1211.
2020-04-27 15:27:33 +02:00
Kleis Auke Wolthuizen
6fc2015783 Remove use of varargs in vips_*_open
This matches the declaration of g_open and helps tools (such as ASan) when
running on non-native platforms.
2020-04-27 11:56:32 +02:00
John Cupitt
489810989e Merge branch '8.9' 2020-04-24 19:32:40 +01:00
John Cupitt
efd62acccd better iiif tile naming
We were clipping edge tiles against the size of the scaled up layer.
Instead, clip against the size of the top level image.

See https://github.com/libvips/libvips/issues/1621
2020-04-24 19:29:35 +01:00
John Cupitt
c2094fcd7c relax thresh for jpegload
some lib jpegs have slightly different rounding behaviour
2020-04-24 19:26:17 +01:00
John Cupitt
93337f8eee
Merge pull request #1617 from kleisauke/travis-updates
Upgrade Python and Clang to latest version on Travis
2020-04-22 12:12:15 +01:00
John Cupitt
5229061360 fix doc error
Thanks MathemanFlo

see https://github.com/libvips/libvips/issues/1618
2020-04-22 11:32:21 +01:00
Kleis Auke Wolthuizen
5f7502ebf7 Upgrade Python and Clang to latest version on Travis
- Python 2.7 reached the end of its life on January 1st, 2020.
- The ASAN suppression parse errors seems to be fixed within Clang 10.
- Fix macOS build by updating the base 'osx_image' to 'xcode11'.
2020-04-22 09:39:23 +02:00
John Cupitt
fada5f2a44 Merge branch '8.9' 2020-04-21 10:17:57 +01:00
John Cupitt
6f0548dc5c thumbnail could fail on HEIC in some modes
in locked UP or DOWN mode, vips_thumbnail() could incorrectly select the
thumbnail from a HEIC image even when it was not large enough to
generate the output image.

Thanks ZorinArsenij

See https://github.com/libvips/libvips/issues/1614
2020-04-21 10:15:02 +01:00
John Cupitt
681271e7b1 Merge branch '8.9' 2020-04-18 12:10:29 +01:00
John Cupitt
0897a77515 update changelog 2020-04-18 11:41:43 +01:00
John Cupitt
f24a4a273a fix regression in autorot
we were writing the wrong image to the output, thanks malomalo

see https://github.com/libvips/ruby-vips/issues/226
2020-04-18 11:40:43 +01:00
John Cupitt
1ef3594be1 autorot was not removing the orientation tag
We were writing the wrong image to the output.

See https://github.com/libvips/ruby-vips/issues/226
2020-04-16 14:04:19 +01:00
John Cupitt
9ea91810bb revise docs for _inplace
We call vips_image_inplace() automatically now, so there's no need for
clients to use this.

see https://github.com/libvips/libvips/issues/1610
2020-04-16 12:09:07 +01:00
John Cupitt
168db157bf more dbg output 2020-04-15 17:21:41 +01:00
John Cupitt
8ba31844d6 fix a race in startup
We were creating a background thread before creating the semaphore that held
the thread. This could sometimes segv under a debugger.
2020-04-15 16:53:58 +01:00
John Cupitt
86bfadd101 better handling of unaligned tiff tile reads
We were not checking for alignment correctly in multi-page tiff reads.

Thanks petoor.

See: https://github.com/libvips/pyvips/issues/172
2020-04-11 14:36:44 +01:00
John Cupitt
5f6289f217 tiny reformat of CoC 2020-04-09 12:23:48 +01:00
John Cupitt
03fd516bc8 Merge branch 'master' of github.com:libvips/libvips 2020-04-09 12:21:49 +01:00
John Cupitt
051be9203f swp int -> GType in some decls
Some linkers complain about these type mismatches. Thanks kloczek.

See https://github.com/libvips/libvips/issues/1604
2020-04-09 12:20:00 +01:00
Kirk Martinez
60f5589710
Rename CODE_OC_CONDUCT.md to CODE_OF_CONDUCT.md 2020-04-06 12:26:45 +01:00
Kirk Martinez
7ea9fe7829
first version of libvips code of conduct 2020-04-06 11:22:29 +01:00
John Cupitt
471ec9bcc0 fix flood fill on some complex shapes
could fail to paint everything sometimes
2020-04-05 12:33:55 +01:00
John Cupitt
8840bc8a14 better render init stops a race
when running inside some versions of gdb
2020-04-02 14:23:06 +01:00
John Cupitt
78f927e606 revide comments in cpp binding 2020-03-27 11:42:58 +00:00
John Cupitt
0d6f987976
Merge pull request #1597 from jaubourg/master
allow null image as source for assignment and copy constructor
2020-03-27 06:01:25 +00:00
jaubourg
28b4c918b6 allow null image as source for assignment and copy constructor: fixes #1595 2020-03-27 02:46:57 +01:00
John Cupitt
df72de89d0
Merge pull request #1596 from lovell/add-gio-to-dependencies
Increase minimum glib-2.0 dependency to v2.15 (released March 2012)
2020-03-26 20:35:30 +00:00
Lovell Fuller
3ca21ee2e8 Increase minimum glib-2.0 dependency to v2.15 (released March 2012) 2020-03-26 19:13:21 +00:00