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
John Cupitt
e14ae48a67
fix heifsave on ubuntu 18.04
2019-03-14 13:33:11 +00:00
John Cupitt
928fff5168
try to fix heifload for ubuntu 18.04
2019-03-14 13:04:26 +00:00
John Cupitt
c4ce5f0084
Merge branch 'master' of github.com:libvips/libvips
2019-03-14 12:54:59 +00:00
John Cupitt
40733d4482
openslide tile cache was too small
...
we were reloading tiles when fetching areas that crossed tile boundaries
2019-03-14 12:05:15 +00:00
John Cupitt
681565f1e3
fix anim webp delay check
...
only test frame duration for animated webp images
thanks Kleis
see https://github.com/libvips/libvips/pull/1257
2019-03-13 19:09:26 +00:00
John Cupitt
ca7d91450e
Merge pull request #1257 from kleisauke/fix-webp-thumbnail
...
Fix thumbnailing of a WebP image (master)
2019-03-13 18:58:39 +00:00
kleisauke
f40eb5ec13
Fix thumbnailing of a WebP image
2019-03-13 17:33:07 +01:00
John Cupitt
a663a1bb1c
add vips_region_fetch() etc.
...
to help ML applications ... they let us generate lots of small rectangular
areas of images very quickly
2019-03-12 16:00:24 +00:00
John Cupitt
4f2112a4e9
fix memleak in canny
2019-03-11 11:35:25 +00:00
John Cupitt
3d889d9395
docs for heifload autorotate
2019-03-07 08:12:14 +00:00
John Cupitt
533ddbc8b3
libheif autorotate is back
...
Using the new heif_image_handle_get_ispe_width() to fetch the untransformed
dimensions.
See:
https://github.com/strukturag/libheif/issues/106#issuecomment-459766087
https://github.com/libvips/libvips/issues/1247
2019-03-06 20:32:34 +00:00
John Cupitt
3010a4a865
remove autorotate from libheif
...
not possible to support this properly with current libheif
2019-03-05 17:26:08 +00:00
John Cupitt
f209870e7b
start trying to fix autorotate for heif images
2019-03-05 15:35:58 +00:00
John Cupitt
27f1d28b61
fix heif autorotate
...
we were not flipping width/height if the image was rotated
thanks leslie-wang
2019-03-04 15:55:41 +00:00
John Cupitt
7ede9de631
fix heifload with debug on older libheif
...
and adjust line size for some loaders
2019-03-04 10:43:13 +00:00
John Cupitt
f06a01ccbe
better toilet-roll detection
2019-03-04 09:55:53 +00:00
John Cupitt
29d33b2753
start work on toilet-roll thumbnails again
2019-03-02 22:13:55 +00:00
John Cupitt
15ee957ea9
Merge branch 'master' into revise-thumbnail
2019-03-02 22:06:23 +00:00
John Cupitt
64c7165759
fix some clang warnings
2019-03-02 16:23:19 +00:00
John Cupitt
33d90b5e26
only enable sanity checks in debug mode
...
We had a couple of sanity checks always on. As a result, libvips could
get slow for large pipelines.
Move them into g_assert().
2019-03-01 13:01:08 +00:00
John Cupitt
b565f2fc68
more accurate bilinear
...
use double, not float, for coefficient calculation, or we get overshoots
in some cases
see https://github.com/libvips/libvips/issues/1239
2019-02-27 20:33:31 +00:00
John Cupitt
90ca1d8038
tiny format polish
2019-02-27 18:23:11 +00:00
John Cupitt
e27c290856
glib version change
2019-02-27 14:24:17 +00:00
John Cupitt
a05a2cb52d
mild refactoring of threadpool
...
clean up and simplify after https://github.com/libvips/libvips/pull/1240
2019-02-27 14:23:43 +00:00
John Cupitt
3324ed8a2f
Merge pull request #1240 from jtorresfabra/fix_hidden_threapool_leak
...
Fix for hidden leaks in ThreadPool
2019-02-27 13:41:17 +00:00
jtorresfabra
8c8affab7f
ThreadPool was allocating memory for threads and pools locally to the image object. As that image could not be freed from cache, for each sink operation done for that image the code was creating new pools and threads without freeing the previous one. SO the more number of threads and the more operations the bigger the hidden leak was. The fix just creates the objects not locally to that image, and also free them in its destroy functions
2019-02-27 13:01:45 +01:00
John Cupitt
793cbeeaa7
add note abut region_shrink to changes
...
somehow got dropped
2019-02-24 20:13:18 +00:00
John Cupitt
27195cc92c
add vips_foreign_get_suffixes()
...
Add vips_foreign_get_suffixes(), get an array of all the filename suffixes that
libvips recognises.
See https://github.com/libvips/ruby-vips/issues/186
2019-02-23 13:50:10 +00:00
John Cupitt
52242cd70d
move orc init out of abs class init
2019-02-22 09:48:38 +00:00
John Cupitt
65a259a025
prevent /0 in freq mask for very small masks
...
see https://github.com/libvips/libvips/issues/1236
2019-02-20 15:15:50 +00:00
John Cupitt
2fb81b8ed6
prevent /0 in eye for width/height 1
...
see https://github.com/libvips/libvips/issues/1236
2019-02-20 15:00:00 +00:00
John Cupitt
4af242b599
fix travis compiler warnings
...
- older libpng don't have consts decls for some set/get funcs
- use g_ascii_strcasecmp() on program text strings (instead of strcasecmp)
2019-02-20 12:49:59 +00:00
John Cupitt
cab3484d2e
Merge branch 'master' of github.com:libvips/libvips
2019-02-20 12:34:34 +00:00
John Cupitt
255d3070ff
Merge pull request #1235 from kleisauke/heifload-travis
...
Add support for HEIF files on Travis
2019-02-20 12:33:57 +00:00