From sanselan-dev-return-194-apmail-incubator-sanselan-dev-archive=incubator.apache.org@incubator.apache.org Wed Jul 16 06:45:36 2008 Return-Path: Delivered-To: apmail-incubator-sanselan-dev-archive@locus.apache.org Received: (qmail 11289 invoked from network); 16 Jul 2008 06:45:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Jul 2008 06:45:36 -0000 Received: (qmail 36837 invoked by uid 500); 16 Jul 2008 06:45:36 -0000 Delivered-To: apmail-incubator-sanselan-dev-archive@incubator.apache.org Received: (qmail 36821 invoked by uid 500); 16 Jul 2008 06:45:36 -0000 Mailing-List: contact sanselan-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: sanselan-dev@incubator.apache.org Delivered-To: mailing list sanselan-dev@incubator.apache.org Received: (qmail 36810 invoked by uid 99); 16 Jul 2008 06:45:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Jul 2008 23:45:36 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of dirk.daems@gmail.com designates 74.125.44.155 as permitted sender) Received: from [74.125.44.155] (HELO yx-out-1718.google.com) (74.125.44.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Jul 2008 06:44:42 +0000 Received: by yx-out-1718.google.com with SMTP id 36so1775624yxh.0 for ; Tue, 15 Jul 2008 23:45:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=n/FPQBfLq+KyIepT2KpN+o8v7mXmgNIwebyoLuVCf1M=; b=qLdA6WgQ3h42u6+RGE67qePz9ReZKtFDGszZszBil9Q3MPkHX1ku9qyNVBk/oPxueI jPDH1FefwoSQ2t5pgOKEBbYIEN93kZDZk1QQgfO2fDYlxOGt9m9IZnVQqpBi4lNfIYMk WxKKrvI9t99RBrKQT5Ja9S6EimCydNRpS31jg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=XyK8qMWGH4P92qTP8R4z0kbNNNtSnVdGn9C5ozzKrXuaYLgrgLaPn2XezhAHwcWVWb rf6xhL1t3Xfv6qLW8J/EQOJ+zpOxA7p1BtNnhw7/ldaQ5yv6XQ7mRV0p+rdSK23zKw7E JGK6sRQfSBqJczfeGixJOTYhmJxnlBq4jSA1Q= Received: by 10.142.240.9 with SMTP id n9mr4995088wfh.6.1216190704767; Tue, 15 Jul 2008 23:45:04 -0700 (PDT) Received: by 10.142.165.12 with HTTP; Tue, 15 Jul 2008 23:45:04 -0700 (PDT) Message-ID: <494d0b2f0807152345o3ac8198ct5ab021fc84eb20c5@mail.gmail.com> Date: Wed, 16 Jul 2008 08:45:04 +0200 From: "Dirk Daems" To: sanselan-dev@incubator.apache.org Subject: Re: [jira] Created: (SANSELAN-5) Can't convert PNG image to GIF image In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_17491_10938644.1216190704742" References: <336650352.1216145731806.JavaMail.jira@brutus> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_17491_10938644.1216190704742 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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) > 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. > > > > > ------=_Part_17491_10938644.1216190704742--