mirror of
https://github.com/lovell/sharp.git
synced 2025-07-11 19:40:14 +02:00
Prevent sequentialRead for EXIF-based rotate op #2042
This commit is contained in:
parent
91902740e4
commit
1a98c390fc
@ -4,6 +4,11 @@
|
||||
|
||||
Requires libvips v8.9.0.
|
||||
|
||||
### v0.24.1 - TBD
|
||||
|
||||
* Prevent use of sequentialRead for EXIF-based rotate operation.
|
||||
[#2042](https://github.com/lovell/sharp/issues/2042)
|
||||
|
||||
### v0.24.0 - 16<sup>th</sup> January 2020
|
||||
|
||||
* Drop support for Node.js 8.
|
||||
|
@ -1404,7 +1404,9 @@ NAN_METHOD(pipeline) {
|
||||
baton->trimThreshold > 0.0 ||
|
||||
baton->normalise ||
|
||||
baton->position == 16 || baton->position == 17 ||
|
||||
baton->angle != 0 || baton->rotationAngle != 0.0
|
||||
baton->angle % 360 != 0 ||
|
||||
fmod(baton->rotationAngle, 360.0) != 0.0 ||
|
||||
baton->useExifOrientation
|
||||
) {
|
||||
baton->input->access = VIPS_ACCESS_RANDOM;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user