Commit Graph

7086 Commits

Author SHA1 Message Date
John Cupitt 5e26f1ec16 improve website link in docs
it was being rewritten by the export script

see https://github.com/libvips/libvips/issues/1928
2020-12-14 09:08:27 +00:00
John Cupitt 2db2b24200 Merge branch '8.10' 2020-12-13 03:43:51 +00:00
John Cupitt c12730748d forgot changelog update 2020-12-13 03:43:03 +00:00
John Cupitt 7839792c1a Merge branch '8.10' 2020-12-13 03:40:03 +00:00
John Cupitt cb9b0a4318 note HEIC fix in changelog
see https://github.com/libvips/libvips/pull/1921
2020-12-12 15:10:42 +00:00
Daniel Dennedy 21f37037fa fix heif load fails with 0 length metadata
fixes #1901
2020-12-12 15:09:33 +00:00
John Cupitt a54cec93ac
Merge pull request #1872 from kleisauke/fix-rounding-reduce
Resolve rounding issues in reduce
2020-12-12 14:51:15 +00:00
John Cupitt 1d2864cc41 note HEIC fix in changelog
see https://github.com/libvips/libvips/pull/1921
2020-12-10 17:54:58 +00:00
John Cupitt 0af6929026
Merge pull request #1921 from ddennedy-gpsw/fix_heifload_empty_metadata
fix heif load fails with 0 length metadata
2020-12-10 17:53:39 +00:00
John Cupitt 25db7849e7 Merge branch '8.10' 2020-12-09 15:19:18 +00:00
John Cupitt 3996f3279b fix range clips for casts to and from int
Fix two bugs:

- clip in casts from int32 and uint32 could overflow -- do these as gint64 now

- clip in casts from float to int could overflow since float32 can't
  represent the full range of int32 without losing precision -- do these
  as double

And add some more tests.

Thanks ewelot.

see https://github.com/libvips/libvips/issues/1922
2020-12-09 15:14:59 +00:00
Daniel Dennedy daf2df7bb5 fix heif load fails with 0 length metadata
fixes #1901
2020-12-07 14:29:10 -08:00
John Cupitt 6eaf1eda30 make webp frame blend do doround to nearest
see https://github.com/libvips/libvips/pull/1918
2020-12-04 13:53:24 +00:00
John Cupitt aa9906184a
Merge pull request #1918 from lovell/webpload-single-frame-noblend
webpload: ensure first frame is not blended
2020-12-04 13:14:29 +00:00
Lovell Fuller f9dc3177c7 webpload: ensure first frame is not blended 2020-12-04 11:50:58 +00:00
John Cupitt 5f3482bff5 Merge branch '8.10' 2020-12-03 13:58:33 +00:00
John Cupitt 1f71c7ae07 n comment 2020-12-03 13:34:21 +00:00
John Cupitt d58105aac6 fix ppmsave regression
ppm strip dropped magic number
2020-12-03 10:30:03 +00:00
John Cupitt 587a7c2d63 note ppmload fix 2020-12-02 21:03:44 +00:00
John Cupitt 4c1aeaacd9 add is_a_source to ppmload
ppmload_source was missing an ia_a test

see https://github.com/libvips/libvips/issues/1915
2020-12-02 21:02:05 +00:00
John Cupitt 970ba8cfcc don't add date in ppmsave if @strip is set
see https://github.com/libvips/libvips/issues/1913
2020-12-02 07:35:36 +00:00
John Cupitt f99da5f3e1 docs clarification
https://github.com/libvips/libvips/issues/1912
2020-12-01 18:33:40 +00:00
John Cupitt c088097b50 block deprecation warnings from libgsf
with an uglu gcc progma
2020-11-29 14:41:19 +00:00
John Cupitt deab095b3c Merge branch '8.10' 2020-11-29 14:03:22 +00:00
John Cupitt 2585565b3e better test for output to target
We used to enable write to stdout if the first character of an output filename
was ".", eg.:

	vips copy x.jpg .png

But this will also enable write to stdout for things like:

	vips copy x.jpg ./y.png

This patch also tests that the rightmost "." in a filename is also the
first character.

Thanks barryspearce

See https://github.com/libvips/libvips/issues/1906
2020-11-29 13:59:30 +00:00
John Cupitt 864075c4f4 Merge branch '8.10' 2020-11-26 10:18:27 +00:00
John Cupitt acc579cc9d force binary mode for connections on win
stdin / stdout (for example) are created in text mode by default on
win. We need to flip them to binary mode for connection read and write.

See https://stackoverflow.com/questions/65014352/pipe-libvips-cli-output-to-stdout-in-windows
2020-11-26 10:15:48 +00:00
John Cupitt f6d7af46b8 Merge branch '8.10' 2020-11-24 11:15:45 +00:00
John Cupitt eddc99e6d8
Merge pull request #1899 from kleisauke/byteswap-vipsload
Ensure vipsload only byte swaps if necessary
2020-11-23 14:07:23 +00:00
Kleis Auke Wolthuizen ea53660a6b Port Ruby test case to Python 2020-11-23 14:40:59 +01:00
Kleis Auke Wolthuizen 77de1c473a Determine endianness at compile time 2020-11-23 14:39:06 +01:00
Kleis Auke Wolthuizen d9dec2c027 Simplify MSB-ordered image check 2020-11-23 14:35:03 +01:00
Kleis Auke Wolthuizen 9bb86119e3 Ensure vipsload only byte swaps if necessary
Prior to this commit, MSB-ordered vips images were always byte swapped
on both little- and big endian systems. And LSB-ordered vips images
were loaded without a byte swap. This works correctly on little endian
systems, but will not work on big endian systems where the byte swap
must be done vice versa.

This commit ensures that the byte swap only takes place when needed.

See https://github.com/libvips/libvips/issues/1847.
2020-11-23 14:32:36 +01:00
John Cupitt 7948b979a5 Merge branch '8.10' 2020-11-22 16:39:04 +00:00
John Cupitt 6340e14303 byteswap on ppm save, if necessary
this was missing, thanks ewelot

see https://github.com/libvips/libvips/issues/1894
2020-11-22 16:37:24 +00:00
John Cupitt c0bace8f91 Merge branch '8.10' of github.com:libvips/libvips into 8.10 2020-11-22 16:05:57 +00:00
John Cupitt 9f22c5dbf3 Merge branch 'master' of github.com:libvips/libvips 2020-11-22 16:05:19 +00:00
John Cupitt 3b9f9d3a12 Merge branch '8.10' 2020-11-22 16:01:58 +00:00
John Cupitt 8e25eef3d0 make ppm load default to msb first
We has lsb first as the default, breaking 16-bit PPM load. Thanks ewelot.

see https://github.com/libvips/libvips/issues/1894
2020-11-22 16:00:34 +00:00
John Cupitt 02eb3bb872 Merge branch '8.10' 2020-11-22 06:33:31 +00:00
John Cupitt a446f2d6d9 oops typo in magick7 load 2020-11-22 06:33:11 +00:00
John Cupitt e8ff67376d Merge branch '8.10' 2020-11-21 14:26:02 +00:00
John Cupitt c17e696243 backport gifheight check
ensure gifheight can't oevrflow

see https://github.com/libvips/libvips/pull/1892
2020-11-21 14:25:09 +00:00
John Cupitt 414b849aef reformat 2020-11-21 14:23:58 +00:00
John Cupitt 0e38b7b342
Merge pull request #1892 from lovell/gifload-sanitise-total-height
gifload: ensure total height of all pages is sanitised
2020-11-21 14:21:43 +00:00
Lovell Fuller 82c9a820d7 gifload: ensure total height of all pages is sanitised 2020-11-21 11:55:18 +00:00
John Cupitt e8660a7426 Merge branch '8.10' 2020-11-20 13:46:59 +00:00
John Cupitt 1e5ac06f84 fix a possible read loop for truncated gifs 2020-11-20 13:46:24 +00:00
John Cupitt b5aa045ee9 oops typo in magick7 load 2020-11-20 13:14:57 +00:00
John Cupitt d7e988d16f Merge branch '8.10' 2020-11-20 12:19:01 +00:00