Ability to disable limitInputPixels #250

Update docs
Added a giant image for testing
Adding myself to contributors
Added tests to verify giant image can be opened
Extend test-win time limit (because of large images)
This commit is contained in:
kentongray
2016-04-04 02:35:11 -05:00
committed by Lovell Fuller
parent b2d7d4c4a9
commit 8c9c070caf
7 changed files with 35 additions and 6 deletions

View File

@@ -158,7 +158,8 @@ class PipelineWorker : public AsyncWorker {
}
// Limit input images to a given number of pixels, where pixels = width * height
if (image.width() * image.height() > baton->limitInputPixels) {
// Ignore if 0
if (baton->limitInputPixels > 0 && image.width() * image.height() > baton->limitInputPixels) {
(baton->err).append("Input image exceeds pixel limit");
return Error();
}