You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Alastair Maw (JIRA)" <ji...@apache.org> on 2007/05/14 02:42:15 UTC

[jira] Resolved: (WICKET-553) DynamicImageResource.java fails on GIF output (in JDK 1.6)

     [ https://issues.apache.org/jira/browse/WICKET-553?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alastair Maw resolved WICKET-553.
---------------------------------

    Resolution: Fixed

Fixed in trunk, r537688.

> 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
>         Assigned To: Alastair Maw
>             Fix For: 1.3
>
>         Attachments: dynamic-img.patch
>
>
> 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.