John Cupitt
595f5a1b71
make autosubsample more consistent
...
always disable subsample for Q>=90, and update docs too
2021-03-27 15:16:38 +00:00
John Cupitt
a16c0c0d78
set mct more carefully
2021-03-23 18:50:39 +00:00
John Cupitt
40c020ccd2
more jp2k tests
2021-03-23 17:15:02 +00:00
John Cupitt
d69512c8b0
fix lossless save, ycc load
2021-03-23 16:43:09 +00:00
John Cupitt
1936ca05ee
add ycc load/save and chroma subsample
2021-03-23 14:01:17 +00:00
John Cupitt
24f230b67d
add ycc and upsample support
2021-03-21 19:34:02 +00:00
John Cupitt
fb6891d02b
typo in header
2021-03-20 14:22:06 +00:00
John Cupitt
cedc3f1f1d
disable threading for older openjpegs
2021-03-20 14:14:08 +00:00
John Cupitt
76b7cddba1
better rounding in tile calcs
2021-03-20 12:54:32 +00:00
John Cupitt
7a900e0a4e
add vipsthumbnail support for jp2k
...
It'll use the jp2k pyramid, if possible.
2021-03-20 12:33:38 +00:00
John Cupitt
28cbdcc65d
revise doc comments
2021-03-20 12:23:00 +00:00
John Cupitt
2575d963bd
add jp2k tests
...
and buffer load/save
2021-03-20 12:16:10 +00:00
John Cupitt
74d2472966
add jp2k quality options
2021-03-20 11:55:42 +00:00
John Cupitt
40ece64ff7
added 32-bit support
...
issues remaining:
- params for compression ratio, chrominance subsampling, etc. ... imagemagick
jp2 files are half the size of ours https://imagemagick.org/script/jp2.php
- metadata, eg. icc profile etc.
- alpha channels do not seem to be tagged correctly
- tests
2021-03-19 14:37:52 +00:00
John Cupitt
454f448c5b
add jp2ksave
...
works, but not quite done
2021-03-19 11:49:07 +00:00
John Cupitt
1bcaab00a6
use "page" param for jp2k pyr layers
...
should make it easy for thumbnail etc.
2021-03-18 16:16:46 +00:00
John Cupitt
197239727d
add shrink on load
...
though openjpeg seems very unreliable if you actually use this
2021-03-18 12:46:30 +00:00
John Cupitt
52e32dec19
fix tiled read
2021-03-18 09:52:38 +00:00
John Cupitt
c0ec1757cb
works at a basic level
...
need to add shrink-on-load etc.
2021-03-17 16:38:55 +00:00
John Cupitt
c2eebacf5a
start adding jp2k load
2021-03-17 11:31:25 +00:00
John Cupitt
8d6f90c060
Merge branch '8.10'
2021-03-14 11:03:40 +00:00
Kleis Auke Wolthuizen
62b0939c4b
vips2webp: force low duration frames to 100ms
2021-03-13 22:04:37 +01:00
John Cupitt
fc4ad15f97
Merge branch '8.10'
2021-03-07 12:26:24 +00:00
Kleis Auke Wolthuizen
3ed50e0427
Cleanup configure.ac and #ifdef's
2021-03-06 15:47:07 +01:00
John Cupitt
6666b941bf
fix a ref leak in vipsthumbnail
...
from the previous refactoring
2021-03-06 13:33:00 +00:00
John Cupitt
2e56828053
Merge branch '8.10'
2021-03-06 11:47:02 +00:00
John Cupitt
0623a05f48
remove vips_recip()
...
it wasn't really necessary, and it was rather slow
2021-03-05 20:19:05 +00:00
John Cupitt
a4d89b852a
Merge branch '8.10' into revise-premultiply
2021-03-05 12:17:20 +00:00
John Cupitt
b14bac53a3
guard refs to ZSTD
...
so we work on older libtiffs
2021-03-05 12:16:38 +00:00
John Cupitt
6db234fae8
Merge branch 'revise-premultiply' of github.com:libvips/libvips into revise-premultiply
2021-03-05 11:24:14 +00:00
John Cupitt
726fded66c
formatting
2021-03-05 11:24:00 +00:00
John Cupitt
1f18963cb4
Merge branch '8.10' into revise-premultiply
2021-03-05 11:17:40 +00:00
John Cupitt
9585feb5a8
allow thumbnail colourspace export with no import
...
allow this case:
vipsthumbnail k2.jpg --export-profile cmyk
for an image with no embedded profile
2021-03-05 11:11:49 +00:00
John Cupitt
c4d56fd475
Merge branch 'revise-premultiply' of github.com:libvips/libvips into revise-premultiply
2021-03-05 10:46:21 +00:00
John Cupitt
ef4f95cddc
cleanup for Kleis comments
2021-03-05 10:46:06 +00:00
John Cupitt
ea2264ea2e
Update libvips/resample/thumbnail.c
...
Co-authored-by: Kleis Auke Wolthuizen <github@kleisauke.nl>
2021-03-05 10:44:31 +00:00
John Cupitt
495b54dfcf
grou predictor settings
2021-03-04 17:31:08 +00:00
AdiosF6F
4d0252f31c
add tiff zstd predictor support
2021-03-04 22:38:47 +08:00
John Cupitt
86a6fd9d18
fix tiff deflate predictor setting
...
the enums were mixed up, thanks Adios
see https://github.com/libvips/libvips/issues/2128
2021-03-04 09:39:50 +00:00
John Cupitt
0407c365d1
better again
2021-02-27 20:47:29 +00:00
John Cupitt
e1fc576252
back to srgb/b-w processing space
...
for compat in thumbnail behaviour
2021-02-27 16:34:50 +00:00
John Cupitt
303513e52d
small comment polish
2021-02-27 16:00:33 +00:00
John Cupitt
d3ccadf212
revise unpremultiply, again
...
We were not detecting division by zero carefully enough, nor clipping
the alpha range sufficiently in unpremultiply.
see https://github.com/libvips/libvips/issues/1941
also see https://github.com/libvips/libvips/pull/1675 for another
difficult test case
2021-02-27 15:16:25 +00:00
John Cupitt
dd57463c9a
Merge pull request #2119 from lovell/compress-profiles
...
Compress fallback colour profiles with zlib (zopfli, via pigz)
2021-02-26 23:29:30 +00:00
Lovell Fuller
40c4b93ee5
Compress fallback profiles with zlib
...
Reduces binary size by 580KB, ~17% at -O2
2021-02-26 19:18:49 +00:00
Lovell Fuller
117dbd888a
Set minimum glib dependency version of 2.40 (March 2014)
2021-02-24 21:59:21 +00:00
John Cupitt
3c60e9de60
start tinkering
2021-02-24 14:48:50 +00:00
John Cupitt
44688e2702
fix int overflow in vips_region_copy
...
this could cause crashes with very wide images, see:
https://github.com/libvips/libvips/issues/1989
2021-02-22 10:03:10 +00:00
John Cupitt
fee6a8a52b
fix int overflow in vips_region_copy
...
this could cause crashes with very wide images, see:
https://github.com/libvips/libvips/issues/1989
2021-02-22 10:02:03 +00:00
John Cupitt
eacef0799a
mapim nan-avoidance was not quite right
...
fix the nan-avoidance code in mapim
2021-02-22 09:37:35 +00:00