Commit Graph

5759 Commits

Author SHA1 Message Date
John Cupitt
d2a9a20a78 fix thumbnail regression with cmyk in and out
56d98f3ef0 broke cmyk->cymk thumbnails
2019-04-23 17:09:20 +01:00
John Cupitt
56d98f3ef0 thumbnail no longer needs to import cmyk
since colourspace knows about cmyk now
2019-04-23 11:35:13 +01:00
John Cupitt
12bc5fbbe3 revise set_stacksize() once more
so we g_info() if we change it
2019-04-23 10:12:08 +01:00
John Cupitt
76aca0370f revise set_stacksize() again 2019-04-23 10:01:35 +01:00
John Cupitt
90e1b1cc49
Merge pull request #1293 from abdollar/fix_stack_size
fixes set_stacksize which broke during merge
2019-04-22 17:29:19 +01:00
Abdul Chaudhry
c6b9015799
fixes set_stacksize 2019-04-22 09:09:05 -07:00
John Cupitt
27aae32ff6 oops 2019-04-22 11:34:45 +01:00
John Cupitt
23955c8511 Merge branch '8.7' 2019-04-21 11:41:26 +01:00
John Cupitt
4a7b80cc26 ban chroma subsample in non-jpg tiffs
tiffcp barfs on these too
2019-04-21 11:39:31 +01:00
John Cupitt
27d8cd40fe Merge branch '8.7' 2019-04-20 17:35:39 +01:00
John Cupitt
472293c8ed rationalize member names in tiff read
they were rather confusing
2019-04-20 17:34:59 +01:00
John Cupitt
b26b2105dc oop dbg code committed by mistake 2019-04-20 12:14:27 +01:00
John Cupitt
7e4ebb3a94 fix stacksize on glibc
- need to define _GNU_SOURCE for glibc to get pthread_setattr_default_np()
- don't warn if we already have enough stack
- reformat to libvips standard
- add note to docs

see: https://github.com/libvips/libvips/pull/1291
2019-04-20 12:07:27 +01:00
John Cupitt
36bd9dfe4a
Merge pull request #1291 from abdollar/set_stack_size_linux
provide an option to set the default stack size on linux
2019-04-20 11:29:05 +01:00
John Cupitt
8fbbfd752f set png chunk limit to 50mb
we did have it unlimited, which could perhaps leave us open to DOS
attacks
2019-04-20 10:29:24 +01:00
John Cupitt
ee854d43c4 add configure test for png_set_chunk_malloc_max 2019-04-20 06:07:18 +01:00
John Cupitt
8d7e03237a allow huge png metadata chunks
By default, libpng refuses to open files with a metadata chunk larger than
8mb. Disable this sanity check.

See: https://github.com/lovell/sharp/issues/1664
2019-04-20 05:54:37 +01:00
Abdul Chaudhry
25bfad1306
provide an option to set the default stack size on linux 2019-04-19 08:59:45 -07:00
John Cupitt
5301df3d6b Merge branch '8.7' 2019-04-19 16:47:51 +01:00
John Cupitt
6acfcb0506 don't attempt to read YCBCR tiffs in scanlines
scanline read of YCBCR images will crash libtiff
2019-04-19 16:46:53 +01:00
John Cupitt
56e5e3c714 fix memleak on read error in webp
webp read could leak under some error conditions
2019-04-19 15:17:27 +01:00
John Cupitt
3a940e7080 note leak fix 2019-04-19 15:10:56 +01:00
John Cupitt
da2773000a oop remove dbg code 2019-04-19 15:03:33 +01:00
John Cupitt
7aa46b258a fix memleak in jpegsave_buffer with some errors
under some error conditions, jpegsave_buffer could forget to release a
half-built image
2019-04-19 15:01:20 +01:00
John Cupitt
c98da89ac9 Merge branch '8.7' 2019-04-19 12:47:35 +01:00
John Cupitt
691383c2b8 better rejection of broken embedded profiles
icc_import and _transform now test the embedded profile more carefully.
It must now be a valid profile and must be compatible with the image.

see https://github.com/libvips/libvips/issues/1286
2019-04-17 16:19:38 +01:00
John Cupitt
c8ba6fcae5 tiny cleanups 2019-04-16 18:11:37 +01:00
John Cupitt
ce24917d4a only read webp bg in anim
non-anim webp does not use the background property

see https://github.com/libvips/libvips/issues/1261
2019-04-16 17:52:09 +01:00
John Cupitt
bafc5775f0 fix ms/cs mixup in webp load/save
there was a mixup between milliseconds (what webp uses for timestamps)
and centiseconds (what gif uses for delay times)
2019-04-16 17:12:57 +01:00
John Cupitt
670d109a67 fix webp anim load
we were dropping the first frame and duplicating the last frame, thanks
to a < / <= mixup

see https://github.com/libvips/libvips/issues/1261
2019-04-16 16:54:47 +01:00
John Cupitt
c351c665a1 more fixups from the vips7 removal 2019-04-14 12:48:02 +01:00
John Cupitt
6a3b197f31 smoother aniamted webp write
set the timestamp for the fake final frame equal to the last actual
frame ... removes the anim hitch

we are still mysteriously dropping a frame though

see https://github.com/libvips/libvips/issues/1261
2019-04-12 17:06:42 +01:00
John Cupitt
bae484ba2c remove old c++ and py interfaces
Instead, use the new(er) vips8 C++ interface, and the new(er) python
interface in pypi.

https://pypi.org/project/pyvips
2019-04-12 16:27:28 +01:00
John Cupitt
91d0e7e3d0 move kill mechanism to public API
the vips_image_set_kill() system was internal. Move it to the public
API.

See eg.:

https://github.com/kleisauke/net-vips/issues/31
2019-04-06 16:53:42 +01:00
John Cupitt
66f1b4408c never use tiff memcpy mode for ycbcr images
We were still using memcpy mode for some strip YCbCr images. Clean up
read var naming to make the logic easier to follow.
2019-04-01 17:10:10 +01:00
John Cupitt
1f100c0c42 better buffer sizing in tiff reader
We were not setting JPEGCOLORMODE_RGB early enough, so buffers could be
undersized in some circumstances.

Thanks omira-sch.
2019-03-31 12:55:30 +01:00
John Cupitt
8e55732bcd
Merge pull request #1265 from crashoz/master
Fixed vips_rect function
2019-03-22 15:02:53 +00:00
Crashoz
9967ed2455
Fixed vips_rect
Fixed typo that broke function vips_rect
2019-03-22 15:43:10 +01:00
John Cupitt
57ce5a3343 set interlace flag for interlaced pngs
if libpng is recent enough
2019-03-20 21:50:56 +00:00
John Cupitt
640994b64a fix a possible segv writing images to buffers
if write failed, vips_image_write_to_buffer() could segv

thanks @dbouron !

see https://github.com/libvips/libvips/issues/1248
2019-03-20 17:32:44 +00:00
John Cupitt
18c12fd66d remove some old sanity-checks
regions can have null generate now
2019-03-20 16:28:22 +00:00
John Cupitt
71a90997ab
Merge pull request #1262 from hroncok/vipsprofile_py3
Convert tools/vipsprofile to Python 3+2
2019-03-20 16:11:03 +00:00
Miro Hrončok
8685f977ec Convert tools/vipsprofile to Python 3+2 2019-03-20 16:06:36 +01:00
John Cupitt
af0dc5265f use glib's b64 encode/decode, if available
see https://github.com/libvips/libvips/issues/1263
2019-03-20 13:51:41 +00:00
John Cupitt
d7f9ad8b41 improve base64 encode
- better data source too large check
- could write up to three bytes too far in worst case
- remove dead base64.h
- add an assert for overflow

see https://github.com/libvips/libvips/issues/1263
2019-03-20 12:50:44 +00:00
John Cupitt
16d6e995a3 update assert in png read
Strip height in PNG read assert was out of date, casuing errors when
built with debug enabled.

see https://github.com/libvips/libvips/issues/1260
2019-03-19 14:04:32 +00:00
John Cupitt
8db4373be0 revert debugging change committed by mistake 2019-03-18 17:08:30 +00:00
Kirk Martinez
86cfbc221d
removed broken links and updated 2019-03-18 11:53:27 +00:00
John Cupitt
8c2fff0a44 Merge branch 'master' of github.com:libvips/libvips 2019-03-16 11:53:53 +00:00
John Cupitt
da15285bf9 add support for justified text
And set xoffset/yoffset to the top line of text output.

https://github.com/libvips/libvips/issues/1258
2019-03-16 11:53:09 +00:00