Skip to content

Conversation

@zbjornson
Copy link
Collaborator

NB: I was somewhat surprised that the default of 4096 doesn't likewise cause errors for tiny canvases...

@zbjornson
Copy link
Collaborator Author

Also, if someone could confirm that the clamping criteria are correct, that would be great. I'm not positive that the buffer should never exceed the size of the canvas.w * canvas.h * 4. (Linus' test case passes though.)

Edit: I think it's true that the JPEG buffer will never exceed the size of the pixel array, and perhaps that's all we care about, but usually the buffer will be much smaller.

@LinusU
Copy link
Collaborator

LinusU commented May 5, 2016

Sorry for forgetting about this, merging now

@LinusU LinusU merged commit ab8a15c into Automattic:master May 5, 2016
@LinusU
Copy link
Collaborator

LinusU commented May 5, 2016

Released as 1.3.14

@zbjornson zbjornson deleted the 674-clamp-buf branch October 31, 2016 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants