Commit Graph

6654 Commits

Author SHA1 Message Date
John Cupitt 90e61a816b ... note change in ChangeLog
see https://github.com/libvips/libvips/issues/1585
2020-06-28 09:53:49 +01:00
John Cupitt aba15122d5 reduce default cache size
Now 100 operations by default.
2020-06-28 09:52:58 +01:00
John Cupitt d831ad34d5 add ppm load/save to a connection
plus some more tests
2020-06-27 15:23:18 +01:00
John Cupitt c9af99c2f7 add CMYK as a compositing space
might work!
2020-06-27 12:08:25 +01:00
John Cupitt 3428767a46 fix matrix and csv source load
see https://github.com/libvips/libvips/issues/1541#issuecomment-649766008
2020-06-25 23:03:03 +01:00
John Cupitt 4bf27acccb add 1/2/4 bit PNG save
- new @bitdepth param
- deprecate @colours param
2020-06-25 10:40:43 +01:00
John Cupitt 31184ddb57
Merge pull request #1694 from randy408/spng_include
Update include path for libspng
2020-06-24 21:25:36 +01:00
Randy 1128401d3a
Update spngload.c 2020-06-24 17:10:26 +02:00
John Cupitt 273ff003de set xres/yres in openslideload
we were not reading out the mpp-x/mpp-y fields

see https://github.com/libvips/libvips/issues/1691
2020-06-22 11:50:14 +01:00
John Cupitt e129dfc27a fix TIFFReadScanline() call
We were passing in 0 instead of -1, which could trigger an assert in
libtiff with some logluv images.

Also, fix logluv decode. We were not always resetting the decode format.
2020-06-21 12:17:05 +01:00
John Cupitt c0daa8ffd2 add spngload minimise support 2020-06-18 15:13:37 +01:00
John Cupitt b2feb4805f fix flush of left-over bits
we were not adjusting for pixel size, thanks MathemanFlo

see https://github.com/libvips/libvips/pull/1672#issuecomment-644807739
2020-06-18 14:54:09 +01:00
John Cupitt 1f8d007d19 rename ppmsave "squash" as "bitdepth"
in line with the tiffsave change
2020-06-18 11:57:33 +01:00
John Cupitt 94b137d526 check return from spng_get_text()
it'll fail for no text elements rather than returning 0
2020-06-18 11:09:37 +01:00
John Cupitt b7a285e84b remove f"" from test suite to help older pythons 2020-06-18 10:10:39 +01:00
John Cupitt 3b07f72b67 revise bit packing funcs in vips2tiff
smaller, simpler
2020-06-17 14:28:13 +01:00
John Cupitt 19077b53ac revise tiff2vips 1/2/4 bit load
simpler, faster, smaller
2020-06-17 13:59:02 +01:00
John Cupitt 99d7573ab6 add tests for 2 and 4 bit tiff 2020-06-16 21:49:07 +01:00
John Cupitt 8b469b4516 adjust formatting of 2, 4 bit tiff load/save
To make it libvipsey. Small fixes as well.
2020-06-16 18:58:27 +01:00
John Cupitt 63b8e162f8
Merge pull request #1672 from MathemanFlo/master
Added write functionality for 2 and 4 bit tiff
2020-06-16 16:18:22 +01:00
Florian Heinrich 0f0e8cb677 Fixed typo in bitdepth code 2020-06-16 16:27:11 +02:00
Florian Heinrich 00bd91a3c4 Fixed issues with bitdepth 2020-06-16 16:21:52 +02:00
John Cupitt c307d3686f add some more thumbnail tests 2020-06-15 14:06:16 +01:00
John Cupitt 023f4ca41b fix thumbnail of multi-page TIFF (again)
The addition of subifd handling broke multipage tiff thumbnailing.

See https://github.com/libvips/pyvips/issues/192
2020-06-15 13:13:21 +01:00
John Cupitt 1ff9800958 improve hough_circle docs
we were not actually saying what the output axes represented

see https://github.com/libvips/ruby-vips/issues/237
2020-06-15 12:40:43 +01:00
John Cupitt 05b0359897 fix regression of multipage tiff thumbnail
the recent subifd addition had broken thumbnail of multipage tiffs,
thanks @petoor

see https://github.com/libvips/pyvips/issues/192
2020-06-15 10:22:01 +01:00
John Cupitt eb8ec27c86 fix binary ppm read for some width 2020-06-13 11:40:45 +01:00
John Cupitt 72b73e069e Merge branch 'master' of github.com:libvips/libvips 2020-06-13 10:29:58 +01:00
John Cupitt 83bf4804f7
Merge pull request #1687 from libvips/revert-1686-heif-nclx-bt709
Revert "Add BT.709 ICC profile and use for HEIF "nclx""
2020-06-13 10:29:33 +01:00
John Cupitt e9b1f538db
Revert "Add BT.709 ICC profile and use for HEIF "nclx"" 2020-06-13 04:10:13 +01:00
John Cupitt 99f495a5ed Merge branch 'master' of github.com:libvips/libvips 2020-06-13 03:55:31 +01:00
John Cupitt b33178d2aa
Merge pull request #1686 from lovell/heif-nclx-bt709
Add BT.709 ICC profile and use for HEIF "nclx"
2020-06-13 03:55:11 +01:00
John Cupitt dfb714e8fe minor reformat 2020-06-13 03:51:40 +01:00
Lovell Fuller fc20a7a654 Add bt709 ICC profile, use for heif 'nclx' 2020-06-12 20:20:25 +01:00
John Cupitt 95406c7888
Merge pull request #1682 from libvips/libspng-experiment
Load PNGs with libspng
2020-06-12 19:11:42 +01:00
John Cupitt 8c19e07ae3 add --vips-config flag
so "vips --vips-config" now displays:

```
$ vips --vips-config
native win32: no, native OS X: no, open files in binary mode: no, ...
```
2020-06-12 17:30:57 +01:00
John Cupitt d5fcb6baaf
Merge branch 'master' into libspng-experiment 2020-06-12 12:42:11 +01:00
John Cupitt 4ae4be7046 note resize work in ChangeLog 2020-06-12 12:40:44 +01:00
John Cupitt 75632a5641
Merge pull request #1592 from kleisauke/issue-703
Fix the pixel shift within reduce (#703)
2020-06-12 12:36:22 +01:00
John Cupitt 4469afaeb0 better handling of "nearest" in resize
we now use vips_subsample() for this case
2020-06-12 12:03:15 +01:00
John Cupitt 675c72b07f
Merge pull request #1681 from libvips/remove-libheif-autorotate
deprecate heifload autorotate
2020-06-11 15:35:12 +01:00
John Cupitt b643bd9448 guard against read zero bytes from libheif 2020-06-11 14:59:06 +01:00
John Cupitt f96f2d3014 SPNG_DECODE_TRNS flag was missing
see https://github.com/libvips/libvips/pull/1682#pullrequestreview-428866084
2020-06-11 13:49:51 +01:00
John Cupitt 61628eefdf final fixes for spng loader 2020-06-11 13:24:27 +01:00
John Cupitt b8be8ec659 pngsuite passes 2020-06-11 12:53:46 +01:00
John Cupitt 49df5f54c1 Randy's loader patch compiles 2020-06-11 12:17:58 +01:00
John Cupitt 49b35f708f
Merge pull request #1678 from randy408/spng-fix
Revise spngloader
2020-06-11 11:38:26 +01:00
John Cupitt 1e015654c3 deprecate heifload autorotate
heifload autorotate is now always on, and we always delete EXIF
orientation tags. If a HEIC image fails to rotate upright, at least it's
someone else's fault.

see https://github.com/libvips/libvips/pull/1680
2020-06-10 19:57:50 +01:00
John Cupitt f2688ee6c1
Merge pull request #1679 from lovell/heifload-fixes-nclx-hdr
heifload: ignore nclx colour profiles, ensure assumed uchar format
2020-06-10 13:51:50 +01:00
Lovell Fuller 221ad1b9b3 heifload: ignore nclx profiles, ensure uchar format 2020-06-10 12:23:17 +01:00