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
John Cupitt
d971c75d6f
block 0 width or height images from imagemagick
...
IM could return 0 width and/or height for some crafted images. Block
these.
Thanks @Koen1999.
See https://github.com/libvips/libvips/issues/1890
2020-11-20 12:17:42 +00:00
John Cupitt
2772ecbb9e
add "seed" param to perlin, worley and gaussnoise
...
see https://github.com/libvips/libvips/issues/1884
2020-11-16 09:14:06 +00:00
John Cupitt
a43e9d3982
Merge branch '8.10'
2020-11-12 13:22:30 +00:00
John Cupitt
98641ba153
add read loops to gifload
...
and check for error in ppnmload.
2020-11-12 13:21:33 +00:00
John Cupitt
a09027b2a5
forgot to advance the buffer pointers
...
thanks kleis
see https://github.com/kleisauke/net-vips/issues/101#issuecomment-726046152
2020-11-12 12:32:51 +00:00
John Cupitt
64e384d3ac
Merge branch '8.10'
2020-11-12 12:18:49 +00:00
John Cupitt
2dd6fc1f36
note read fixes in changelog
2020-11-12 12:18:22 +00:00
John Cupitt
e590a6919d
fix changelog after GM backport
2020-11-12 12:16:36 +00:00
John Cupitt
09e0d5bff6
Merge branch '8.10'
2020-11-12 12:16:07 +00:00
John Cupitt
ff450497ff
add read loops to heif and ppm as well
...
We were not looping on vips_source_read() in these loaders, so they
could fail when reading from very slow pipes.
See https://github.com/kleisauke/net-vips/issues/101
2020-11-12 12:11:35 +00:00
John Cupitt
c0102c5814
better GraphicsMagick image write
...
We were not setting matte or depth correctly, thanks bfriesen.
2020-11-12 12:00:11 +00:00
Kleis Auke Wolthuizen
0a91e2d8c7
Ensure that streams are properly read in spngload
2020-11-11 21:17:07 +00:00
John Cupitt
013e8beba7
Merge branch '8.10'
2020-11-11 10:06:22 +00:00
John Cupitt
6894159ad5
fix icc-profiles and dzsave --no-strip
...
We were not copying metadata down pyramid layers in dzsave, so
--no-strip didn't allow icc profiles on tiles.
Thanks altert
See https://github.com/libvips/libvips/issues/1879
2020-11-11 10:02:46 +00:00
John Cupitt
3e40f19efc
Merge branch '8.10'
2020-11-10 11:07:41 +00:00
John Cupitt
1686725117
block annoying INFO messages on some older glibs
...
Some old glibs can display INFO messages by default. Block these
ourselves.
See https://github.com/libvips/libvips/issues/1876
2020-11-10 11:03:18 +00:00
John Cupitt
630270095d
fix compiler warning
2020-11-10 11:00:21 +00:00
John Cupitt
5afa726b8c
update examples to py3
2020-11-09 11:00:29 +00:00
John Cupitt
3cd880260f
Merge pull request #1880 from amalbala/patch-1
...
Update Examples.md
2020-11-09 10:57:03 +00:00
Antonio Martínez
a4e57ace74
Update Examples.md
...
Just some issues I found while testing the examples:
- Reference on header for the file try255.py
- Typo on parameter from bigtif to bigtiff
- Use explicit call to python interpreter from command line
2020-11-09 10:25:54 +01:00
John Cupitt
af6b419542
missing include
2020-11-06 10:29:30 +00:00
John Cupitt
b86c9c52e1
Merge branch '8.10'
2020-11-04 09:31:01 +00:00
John Cupitt
4de9b56725
flush target at end of write
...
we were missing end-of-write flushes on four save operations
thanks harukizaemon
see https://github.com/libvips/ruby-vips/issues/256
2020-11-04 09:28:25 +00:00
John Cupitt
20988977ab
Merge branch '8.10'
2020-11-03 23:45:17 +00:00
John Cupitt
39899582d4
add tests for tiff pyr save region-shrink flag
...
we were testing the flag before, but not that the result was correct
see https://github.com/libvips/libvips/issues/1875
2020-11-03 23:44:11 +00:00
John Cupitt
85f3ac6d8f
fix tiff pyramid save region-shrink
...
we'd forgotton to connect it up
thanks imgifty
see https://github.com/libvips/libvips/issues/1875
2020-11-03 23:14:44 +00:00