You are viewing a plain text version of this content. The canonical link for it is here.
Posted to sanselan-dev@incubator.apache.org by "Dirk Daems (JIRA)" <ji...@apache.org> on 2008/07/15 18:15:31 UTC
[jira] Created: (SANSELAN-5) Can't convert PNG image to GIF image
Can't convert PNG image to GIF image
------------------------------------
Key: SANSELAN-5
URL: https://issues.apache.org/jira/browse/SANSELAN-5
Project: Sanselan
Issue Type: Bug
Environment: Windows XP SP2, Eclipse IDE, Custom Java database conversion program, JRE 1.5.x
Reporter: Dirk Daems
Assignee: Carsten Ziegeler
Priority: Blocker
I want to transform a set of PNG images to GIF images.
The code I tried:
private static void convertImage(String sourceDir, String sourceFile, String targetDir){
try{
BufferedImage source = Sanselan.getBufferedImage(new File(sourceDir + File.separator + sourceFile));
String targetFile = sourceFile.substring(0, sourceFile.indexOf('.')) + ".gif";
Hashtable parms = new Hashtable();
// parms.put(SanselanConstants.PARAM_KEY_VERBOSE, Boolean.TRUE);
Sanselan.writeImage(source, new File(targetDir + File.separator + targetFile), ImageFormat.IMAGE_FORMAT_GIF, parms);
}
catch(Exception ex){
ex.printStackTrace();
}
}
I don't get any errors but the image that's generated cannot be displayed and is way too small (2kb).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
Re: [jira] Created: (SANSELAN-5) Can't convert PNG image to GIF image
Posted by Dirk Daems <di...@gmail.com>.
Hi Charles,
next week is fine by me!
Thanks for the support,
Dirk
On Wed, Jul 16, 2008 at 10:36 AM, Charles Matthew Chen <
charlesmchen@gmail.com> wrote:
> Hi Dirk,
>
> If you need the fix immediately,I would use the Subversion repo.
> We're on the cusp of having our first build through Apache, so I'm
> going to try to wait for that. If this build hasn't been approved and
> posted in the next week, I'll probably make another non-Apache build.
> I hope that's not too inconvenient.
>
> Charles
>
>
> On Wed, Jul 16, 2008 at 8:45 AM, Dirk Daems <di...@gmail.com> wrote:
> > Hi Charles,
> > thanks for the quick fix!
> > How can we obtain a new version? Is a new JAR file going to be published
> on
> > http://www.fightingquaker.com/sanselan/#downloads? Or do we have to get
> the
> > update through Subversion?
> >
> > Dirk
> > On Wed, Jul 16, 2008 at 12:47 AM, Charles Matthew Chen <
> > charlesmchen@gmail.com> wrote:
> >
> >> Hi,
> >>
> >> I believe I have resolved this issue. Can we please close this
> >> ticket (SANSELAN-5) along with SANSELAN-2 and SANSELAN-3?
> >>
> >> Dirk - Thanks very much for reporting this issue.
> >>
> >> Thanks,
> >> Charles.
> >>
> >>
> >> On Tue, Jul 15, 2008 at 8:15 PM, Dirk Daems (JIRA) <ji...@apache.org>
> >> wrote:
> >> > Can't convert PNG image to GIF image
> >> > ------------------------------------
> >> >
> >> > Key: SANSELAN-5
> >> > URL: https://issues.apache.org/jira/browse/SANSELAN-5
> >> > Project: Sanselan
> >> > Issue Type: Bug
> >> > Environment: Windows XP SP2, Eclipse IDE, Custom Java database
> >> conversion program, JRE 1.5.x
> >> > Reporter: Dirk Daems
> >> > Assignee: Carsten Ziegeler
> >> > Priority: Blocker
> >> >
> >> >
> >> > I want to transform a set of PNG images to GIF images.
> >> >
> >> > The code I tried:
> >> >
> >> > private static void convertImage(String sourceDir, String sourceFile,
> >> String targetDir){
> >> > try{
> >> >
> >> > BufferedImage source = Sanselan.getBufferedImage(new File(sourceDir
> +
> >> File.separator + sourceFile));
> >> > String targetFile = sourceFile.substring(0, sourceFile.indexOf('.'))
> +
> >> ".gif";
> >> > Hashtable parms = new Hashtable();
> >> > // parms.put(SanselanConstants.PARAM_KEY_VERBOSE, Boolean.TRUE);
> >> > Sanselan.writeImage(source, new File(targetDir + File.separator +
> >> targetFile), ImageFormat.IMAGE_FORMAT_GIF, parms);
> >> >
> >> > }
> >> > catch(Exception ex){
> >> > ex.printStackTrace();
> >> > }
> >> >
> >> > }
> >> >
> >> > I don't get any errors but the image that's generated cannot be
> displayed
> >> and is way too small (2kb).
> >> >
> >> > --
> >> > This message is automatically generated by JIRA.
> >> > -
> >> > You can reply to this email to add a comment to the issue online.
> >> >
> >> >
> >>
> >
>
Re: [jira] Created: (SANSELAN-5) Can't convert PNG image to GIF image
Posted by Charles Matthew Chen <ch...@gmail.com>.
Hi Dirk,
If you need the fix immediately,I would use the Subversion repo.
We're on the cusp of having our first build through Apache, so I'm
going to try to wait for that. If this build hasn't been approved and
posted in the next week, I'll probably make another non-Apache build.
I hope that's not too inconvenient.
Charles
On Wed, Jul 16, 2008 at 8:45 AM, Dirk Daems <di...@gmail.com> wrote:
> Hi Charles,
> thanks for the quick fix!
> How can we obtain a new version? Is a new JAR file going to be published on
> http://www.fightingquaker.com/sanselan/#downloads? Or do we have to get the
> update through Subversion?
>
> Dirk
> On Wed, Jul 16, 2008 at 12:47 AM, Charles Matthew Chen <
> charlesmchen@gmail.com> wrote:
>
>> Hi,
>>
>> I believe I have resolved this issue. Can we please close this
>> ticket (SANSELAN-5) along with SANSELAN-2 and SANSELAN-3?
>>
>> Dirk - Thanks very much for reporting this issue.
>>
>> Thanks,
>> Charles.
>>
>>
>> On Tue, Jul 15, 2008 at 8:15 PM, Dirk Daems (JIRA) <ji...@apache.org>
>> wrote:
>> > Can't convert PNG image to GIF image
>> > ------------------------------------
>> >
>> > Key: SANSELAN-5
>> > URL: https://issues.apache.org/jira/browse/SANSELAN-5
>> > Project: Sanselan
>> > Issue Type: Bug
>> > Environment: Windows XP SP2, Eclipse IDE, Custom Java database
>> conversion program, JRE 1.5.x
>> > Reporter: Dirk Daems
>> > Assignee: Carsten Ziegeler
>> > Priority: Blocker
>> >
>> >
>> > I want to transform a set of PNG images to GIF images.
>> >
>> > The code I tried:
>> >
>> > private static void convertImage(String sourceDir, String sourceFile,
>> String targetDir){
>> > try{
>> >
>> > BufferedImage source = Sanselan.getBufferedImage(new File(sourceDir +
>> File.separator + sourceFile));
>> > String targetFile = sourceFile.substring(0, sourceFile.indexOf('.')) +
>> ".gif";
>> > Hashtable parms = new Hashtable();
>> > // parms.put(SanselanConstants.PARAM_KEY_VERBOSE, Boolean.TRUE);
>> > Sanselan.writeImage(source, new File(targetDir + File.separator +
>> targetFile), ImageFormat.IMAGE_FORMAT_GIF, parms);
>> >
>> > }
>> > catch(Exception ex){
>> > ex.printStackTrace();
>> > }
>> >
>> > }
>> >
>> > I don't get any errors but the image that's generated cannot be displayed
>> and is way too small (2kb).
>> >
>> > --
>> > This message is automatically generated by JIRA.
>> > -
>> > You can reply to this email to add a comment to the issue online.
>> >
>> >
>>
>
Re: [jira] Created: (SANSELAN-5) Can't convert PNG image to GIF image
Posted by Dirk Daems <di...@gmail.com>.
Hi Charles,
thanks for the quick fix!
How can we obtain a new version? Is a new JAR file going to be published on
http://www.fightingquaker.com/sanselan/#downloads? Or do we have to get the
update through Subversion?
Dirk
On Wed, Jul 16, 2008 at 12:47 AM, Charles Matthew Chen <
charlesmchen@gmail.com> wrote:
> Hi,
>
> I believe I have resolved this issue. Can we please close this
> ticket (SANSELAN-5) along with SANSELAN-2 and SANSELAN-3?
>
> Dirk - Thanks very much for reporting this issue.
>
> Thanks,
> Charles.
>
>
> On Tue, Jul 15, 2008 at 8:15 PM, Dirk Daems (JIRA) <ji...@apache.org>
> wrote:
> > Can't convert PNG image to GIF image
> > ------------------------------------
> >
> > Key: SANSELAN-5
> > URL: https://issues.apache.org/jira/browse/SANSELAN-5
> > Project: Sanselan
> > Issue Type: Bug
> > Environment: Windows XP SP2, Eclipse IDE, Custom Java database
> conversion program, JRE 1.5.x
> > Reporter: Dirk Daems
> > Assignee: Carsten Ziegeler
> > Priority: Blocker
> >
> >
> > I want to transform a set of PNG images to GIF images.
> >
> > The code I tried:
> >
> > private static void convertImage(String sourceDir, String sourceFile,
> String targetDir){
> > try{
> >
> > BufferedImage source = Sanselan.getBufferedImage(new File(sourceDir +
> File.separator + sourceFile));
> > String targetFile = sourceFile.substring(0, sourceFile.indexOf('.')) +
> ".gif";
> > Hashtable parms = new Hashtable();
> > // parms.put(SanselanConstants.PARAM_KEY_VERBOSE, Boolean.TRUE);
> > Sanselan.writeImage(source, new File(targetDir + File.separator +
> targetFile), ImageFormat.IMAGE_FORMAT_GIF, parms);
> >
> > }
> > catch(Exception ex){
> > ex.printStackTrace();
> > }
> >
> > }
> >
> > I don't get any errors but the image that's generated cannot be displayed
> and is way too small (2kb).
> >
> > --
> > This message is automatically generated by JIRA.
> > -
> > You can reply to this email to add a comment to the issue online.
> >
> >
>
Re: [jira] Created: (SANSELAN-5) Can't convert PNG image to GIF image
Posted by Carsten Ziegeler <cz...@apache.org>.
Charles Matthew Chen schrieb:
> Hi,
>
> I believe I have resolved this issue. Can we please close this
> ticket (SANSELAN-5) along with SANSELAN-2 and SANSELAN-3?
>
Hi,
you should now be able to close the bugs yourself. I added you to the
project in Jira.
Carsten
--
Carsten Ziegeler
cziegeler@apache.org
Re: [jira] Created: (SANSELAN-5) Can't convert PNG image to GIF image
Posted by Charles Matthew Chen <ch...@gmail.com>.
Hi,
I believe I have resolved this issue. Can we please close this
ticket (SANSELAN-5) along with SANSELAN-2 and SANSELAN-3?
Dirk - Thanks very much for reporting this issue.
Thanks,
Charles.
On Tue, Jul 15, 2008 at 8:15 PM, Dirk Daems (JIRA) <ji...@apache.org> wrote:
> Can't convert PNG image to GIF image
> ------------------------------------
>
> Key: SANSELAN-5
> URL: https://issues.apache.org/jira/browse/SANSELAN-5
> Project: Sanselan
> Issue Type: Bug
> Environment: Windows XP SP2, Eclipse IDE, Custom Java database conversion program, JRE 1.5.x
> Reporter: Dirk Daems
> Assignee: Carsten Ziegeler
> Priority: Blocker
>
>
> I want to transform a set of PNG images to GIF images.
>
> The code I tried:
>
> private static void convertImage(String sourceDir, String sourceFile, String targetDir){
> try{
>
> BufferedImage source = Sanselan.getBufferedImage(new File(sourceDir + File.separator + sourceFile));
> String targetFile = sourceFile.substring(0, sourceFile.indexOf('.')) + ".gif";
> Hashtable parms = new Hashtable();
> // parms.put(SanselanConstants.PARAM_KEY_VERBOSE, Boolean.TRUE);
> Sanselan.writeImage(source, new File(targetDir + File.separator + targetFile), ImageFormat.IMAGE_FORMAT_GIF, parms);
>
> }
> catch(Exception ex){
> ex.printStackTrace();
> }
>
> }
>
> I don't get any errors but the image that's generated cannot be displayed and is way too small (2kb).
>
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>
>
[jira] Updated: (SANSELAN-5) Can't convert PNG image to GIF image
Posted by "Dirk Daems (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SANSELAN-5?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dirk Daems updated SANSELAN-5:
------------------------------
Description:
I want to transform a set of PNG images to GIF images.
The code I tried:
private static void convertImage(String sourceDir, String sourceFile, String targetDir){
try{
BufferedImage source = Sanselan.getBufferedImage(new File(sourceDir + File.separator + sourceFile));
String targetFile = sourceFile.substring(0, sourceFile.indexOf('.')) + ".gif";
Hashtable parms = new Hashtable();
// parms.put(SanselanConstants.PARAM_KEY_VERBOSE, Boolean.TRUE);
Sanselan.writeImage(source, new File(targetDir + File.separator + targetFile), ImageFormat.IMAGE_FORMAT_GIF, parms);
}
catch(Exception ex){
ex.printStackTrace();
}
}
I don't get any errors but the image that's generated cannot be displayed and is way too small (2kb).
I attached an example of a PNG file I can't seem to convert.
was:
I want to transform a set of PNG images to GIF images.
The code I tried:
private static void convertImage(String sourceDir, String sourceFile, String targetDir){
try{
BufferedImage source = Sanselan.getBufferedImage(new File(sourceDir + File.separator + sourceFile));
String targetFile = sourceFile.substring(0, sourceFile.indexOf('.')) + ".gif";
Hashtable parms = new Hashtable();
// parms.put(SanselanConstants.PARAM_KEY_VERBOSE, Boolean.TRUE);
Sanselan.writeImage(source, new File(targetDir + File.separator + targetFile), ImageFormat.IMAGE_FORMAT_GIF, parms);
}
catch(Exception ex){
ex.printStackTrace();
}
}
I don't get any errors but the image that's generated cannot be displayed and is way too small (2kb).
> Can't convert PNG image to GIF image
> ------------------------------------
>
> Key: SANSELAN-5
> URL: https://issues.apache.org/jira/browse/SANSELAN-5
> Project: Sanselan
> Issue Type: Bug
> Environment: Windows XP SP2, Eclipse IDE, Custom Java database conversion program, JRE 1.5.x
> Reporter: Dirk Daems
> Assignee: Carsten Ziegeler
> Priority: Blocker
> Attachments: 12118.png
>
>
> I want to transform a set of PNG images to GIF images.
>
> The code I tried:
> private static void convertImage(String sourceDir, String sourceFile, String targetDir){
> try{
>
> BufferedImage source = Sanselan.getBufferedImage(new File(sourceDir + File.separator + sourceFile));
> String targetFile = sourceFile.substring(0, sourceFile.indexOf('.')) + ".gif";
> Hashtable parms = new Hashtable();
> // parms.put(SanselanConstants.PARAM_KEY_VERBOSE, Boolean.TRUE);
> Sanselan.writeImage(source, new File(targetDir + File.separator + targetFile), ImageFormat.IMAGE_FORMAT_GIF, parms);
>
> }
> catch(Exception ex){
> ex.printStackTrace();
> }
>
> }
>
> I don't get any errors but the image that's generated cannot be displayed and is way too small (2kb).
> I attached an example of a PNG file I can't seem to convert.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (SANSELAN-5) Can't convert PNG image to GIF image
Posted by "Charles Matthew Chen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SANSELAN-5?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Charles Matthew Chen resolved SANSELAN-5.
-----------------------------------------
Resolution: Fixed
Assignee: Charles Matthew Chen (was: Carsten Ziegeler)
Fixed two issues in the PNG reader. Wasn't handling the 16-bit mode 4 PNGs properly. Also, wasn't gamma-correcting non-palette values properly in PNGs.
> Can't convert PNG image to GIF image
> ------------------------------------
>
> Key: SANSELAN-5
> URL: https://issues.apache.org/jira/browse/SANSELAN-5
> Project: Sanselan
> Issue Type: Bug
> Environment: Windows XP SP2, Eclipse IDE, Custom Java database conversion program, JRE 1.5.x
> Reporter: Dirk Daems
> Assignee: Charles Matthew Chen
> Priority: Blocker
> Attachments: 12118.png
>
>
> I want to transform a set of PNG images to GIF images.
>
> The code I tried:
> private static void convertImage(String sourceDir, String sourceFile, String targetDir){
> try{
>
> BufferedImage source = Sanselan.getBufferedImage(new File(sourceDir + File.separator + sourceFile));
> String targetFile = sourceFile.substring(0, sourceFile.indexOf('.')) + ".gif";
> Hashtable parms = new Hashtable();
> // parms.put(SanselanConstants.PARAM_KEY_VERBOSE, Boolean.TRUE);
> Sanselan.writeImage(source, new File(targetDir + File.separator + targetFile), ImageFormat.IMAGE_FORMAT_GIF, parms);
>
> }
> catch(Exception ex){
> ex.printStackTrace();
> }
>
> }
>
> I don't get any errors but the image that's generated cannot be displayed and is way too small (2kb).
> I attached an example of a PNG file I can't seem to convert.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (SANSELAN-5) Can't convert PNG image to GIF image
Posted by "Dirk Daems (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SANSELAN-5?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dirk Daems updated SANSELAN-5:
------------------------------
Attachment: 12118.png
This is one of the PNG images that I can't seem to convert using Sanselan.
> Can't convert PNG image to GIF image
> ------------------------------------
>
> Key: SANSELAN-5
> URL: https://issues.apache.org/jira/browse/SANSELAN-5
> Project: Sanselan
> Issue Type: Bug
> Environment: Windows XP SP2, Eclipse IDE, Custom Java database conversion program, JRE 1.5.x
> Reporter: Dirk Daems
> Assignee: Carsten Ziegeler
> Priority: Blocker
> Attachments: 12118.png
>
>
> I want to transform a set of PNG images to GIF images.
>
> The code I tried:
> private static void convertImage(String sourceDir, String sourceFile, String targetDir){
> try{
>
> BufferedImage source = Sanselan.getBufferedImage(new File(sourceDir + File.separator + sourceFile));
> String targetFile = sourceFile.substring(0, sourceFile.indexOf('.')) + ".gif";
> Hashtable parms = new Hashtable();
> // parms.put(SanselanConstants.PARAM_KEY_VERBOSE, Boolean.TRUE);
> Sanselan.writeImage(source, new File(targetDir + File.separator + targetFile), ImageFormat.IMAGE_FORMAT_GIF, parms);
>
> }
> catch(Exception ex){
> ex.printStackTrace();
> }
>
> }
>
> I don't get any errors but the image that's generated cannot be displayed and is way too small (2kb).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.