Closed GoogleCodeExporter closed 9 years ago
Thank you for the bug report.
The issue has been reproduced and work will start shortly.
Original comment by coobird...@gmail.com
on 29 Apr 2011 at 11:50
Original comment by coobird...@gmail.com
on 29 Apr 2011 at 11:50
The bug has been fixed.
A bug fix release (Thumbnailator 0.3.3) has just been released and is available
for download.
Once again, thank you for taking the time to file an issue.
=======
Details about the issue:
Issue
-------
The issue was occurring due to the `FileImageSink` class not calling the
`ImageWriterParam.setCompressionType` method,
leading to a situation where the subsequent call to
`ImageWriterParam.setCompressionQuality` causing an `IllegalStateException`.
(This exception-throwing behavior is documented in the Javadocs for the
`ImageWriterParam.setCompressionQuality`.)
Fix
-------
The `FileImageSink` class (along with the `OutputStreamImageSink` class) has
been fixed to call the `ImageWriterParam.setCompressionType` method
with the first compression type (if the compression type has not been set in
the `ThumbnailParameter`) returned by the `ImageWriter`
for the specified output format. (If the `ImageWriter` doesn't provide any
compression types, then the `ImageWriterParam.setCompressionType`
is not called.)
Original comment by coobird...@gmail.com
on 29 Apr 2011 at 5:51
8 hours after reporting the issue is fixed, really impressive, thanks!
Original comment by w.walc%c...@gtempaccount.com
on 29 Apr 2011 at 5:56
Original issue reported on code.google.com by
tomasz.t...@gmail.com
on 29 Apr 2011 at 9:10