DynamicImageResource.java fails on GIF output (in JDK 1.6)
----------------------------------------------------------

                 Key: WICKET-553
                 URL: https://issues.apache.org/jira/browse/WICKET-553
             Project: Wicket
          Issue Type: Bug
          Components: wicket
    Affects Versions: 1.3
         Environment: Ubuntu 7.04, Sun JDK 1.6
            Reporter: Nathan Hamblen
             Fix For: 1.3


DynamicImageResource instances that render correctly in PNG and JPG fail to 
output GIF in JDK 1.6 (the first to include a GIF writer). In comparing the 
DynamicImageResource.toImageData() method to the ImageIO.write() convenience 
method, I noticed that Wicket's does not dispose the writer or flush the 
ImageOutputStream. Testing established that doing both of those (and it must be 
the ImageOutputStream, not the wrapped ByteArrayOutputStream) fixes the problem 
and GIFs are outputted correctly.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to