Skip to content

Commit

Permalink
Fix scale() trying to create a TYPE_CUSTOM BufferedImage in situation…
Browse files Browse the repository at this point in the history
…s involving very small source or destination (usually TIFF) images (#282)
  • Loading branch information
Alex Dolski committed Apr 16, 2019
1 parent a7d1faa commit 89d4294
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
is set to a relative path outside of the current working directory.
* Fixed a regression in the handling of the `X-Forwarded-Path` header.
* Fixed breakage in manual processor selection from the Control Panel.
* Fixed an error from Java2dProcessor when downscaling TIFF source images to a
very small size.
* Fixed improper codestream access in KakaduNativeProcessor that could cause
cause degraded output for certain images.
* Improved resilience when reading certain oddly-encoded GIFs in
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -993,7 +993,7 @@ static BufferedImage scale(final BufferedImage inImage,
scaledImage = new BufferedImage(
targetSize.intWidth(),
targetSize.intHeight(),
inImage.getType());
BufferedImage.TYPE_INT_ARGB);
}
return scaledImage;
}
Expand Down

0 comments on commit 89d4294

Please sign in to comment.