Commit Graph

5695 Commits

Author SHA1 Message Date
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
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
John Cupitt
cae57d5670 make heif load/save work with 1.3.2 2019-02-20 12:30:12 +00:00
John Cupitt
8523c306fe remove stray variable decls 2019-02-20 12:04:52 +00:00
John Cupitt
101ca0b5dc remove stray directories
committed by mistake, sorry
2019-02-19 17:28:04 +00:00
Kleis Auke Wolthuizen
90e5c5eb9b Add support for HEIF files on Travis 2019-02-17 20:51:01 +01:00
John Cupitt
1a83605238 Merge branch 'add-heifload' 2019-02-17 17:11:14 +00:00
John Cupitt
d4ddfa5eb4 note recent magick changes in headers 2019-02-17 12:41:59 +00:00
John Cupitt
f41c1439c9 just one sink_disc() for magicksave
we used to cut the input image into tiles, then sink_disc() for each one
... instead, make a single sink_disc() and chop in _generate

simpler and faster
2019-02-17 12:28:13 +00:00
John Cupitt
30b5c49d0b set dispose in magicksave
since we always give complete new frames

revise gifload slightly too
2019-02-16 17:37:23 +00:00
John Cupitt
ca60cc30aa clean up 2019-02-16 15:54:11 +00:00
John Cupitt
044abe7986 fix some tilecache issues too 2019-02-16 15:32:45 +00:00
John Cupitt
d156e34ee4 cogs.gif doesn't load properly
we're not disposing at the correct point, I think
2019-02-15 17:56:49 +00:00
John Cupitt
38e0cbb12a speed up tilecache
with a simple LRU queue of recent tiles

better cmap handling for gifload as well
2019-02-15 17:27:20 +00:00
John Cupitt
1f681df339 trim old gifload source 2019-02-14 16:35:54 +00:00
John Cupitt
09ed7a48d3 Merge branch 'revise-gifload' 2019-02-14 16:35:18 +00:00
John Cupitt
4ed0ce3e2e remove old gif loader 2019-02-14 16:34:59 +00:00
John Cupitt
25f0f652d1 works! 2019-02-14 15:31:33 +00:00
John Cupitt
bfa1f22520 works!
tuned a bit too
2019-02-14 15:22:51 +00:00
John Cupitt
b02a50aaed two small fixes 2019-02-14 10:13:17 +00:00
John Cupitt
617d910379 almost loading 2019-02-13 18:04:30 +00:00
John Cupitt
37613c196d fix jpeg xmp read/write
it was not removing/reattaching the magic XMP URL

see https://github.com/libvips/libvips/issues/1229
2019-02-11 18:16:20 +00:00
John Cupitt
e12b44e790 fast header method works
need to rework _load next
2019-02-11 08:38:43 +00:00
John Cupitt
7037377f15 add _header scan of whole gif 2019-02-10 22:09:25 +00:00
John Cupitt
72f6f667c9 make C# binding clearer 2019-02-10 05:31:33 +00:00
John Cupitt
9fe013f72d move file stuff into subclass, add rewind 2019-02-10 05:26:07 +00:00
John Cupitt
a454225ef7 split off the old loader as gifload2 2019-02-09 12:23:21 +00:00
John Cupitt
2968bee3fa add n-pages metadata to gifload
gifload was not setting the n-pages metadata item.

n-pages is supposed to be the number of pages in the original file (not
the number of pages libvips loaded), but we don't always know this for
gif, since you have to decode the entire file to count the pages.

As a compromise, set it to the page number of the final page we read.

See https://github.com/lovell/sharp/issues/1566
2019-02-08 10:53:57 +00:00
John Cupitt
06d71f6df3 raise magicksave threshold 2019-02-07 18:51:57 +00:00
John Cupitt
931b661d2b fix up and test with im6/im7/gm
seems to work! phew
2019-02-07 18:35:51 +00:00
John Cupitt
90fef08ee0 start adding xmp/icc/exif/etc. for IM
needs to work for im6, im7 and gm, and it's not quite there yet :(
2019-02-06 16:39:14 +00:00
John Cupitt
10b3000581 reorganise magicksave a little 2019-02-06 10:24:11 +00:00
John Cupitt
71664346c0
Merge pull request #1224 from DarthSim/feature/gm_magicksave
vips_magicksave for GraphicsMagick
2019-02-06 09:44:31 +00:00
DarthSim
cd1560c1cb vips_magicksave for GraphicsMagick 2019-02-06 00:07:30 +06:00