From batik-users-return-7696lisa23@example.net Sun May 01 13:54:55 2005 Return-Path: <batik-users-return-7696lisa23@example.net> Delivered-To: lisa23@example.net Received: (qmail 13278 invoked from network); 1 May 2005 13:54:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 May 2005 13:54:54 -0000 Received: (qmail 22646 invoked by uid 500); 1 May 2005 13:56:18 -0000 Delivered-To: lisa23@example.net Received: (qmail 22630 invoked by uid 500); 1 May 2005 13:56:18 -0000 Mailing-List: contact lisa23@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:lisa23@example.net> List-Unsubscribe: <mailto:lisa23@example.net> List-Post: <mailto:lisa23@example.net> List-Id: <batik-users.xmlgraphics.apache.org> Reply-To: lisa23@example.net Delivered-To: mailing list lisa23@example.net Received: (qmail 22616 invoked by uid 99); 1 May 2005 13:56:17 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from smtp803.mail.ukl.yahoo.com (HELO smtp803.mail.ukl.yahoo.com) (83.161.120.155) by apache.org (qpsmtpd/0.28) with SMTP; Sun, 01 May 2005 06:56:17 -0700 Received: from unknown (HELO ?83.161.120.155?) (lisa23@example.net with plain) by smtp803.mail.ukl.yahoo.com with SMTP; 1 May 2005 13:54:49 -0000 Message-ID: <lisa23@example.net> Date: Sun, 01 May 2005 14:55:02 +0000 From: James Shaw <lisa23@example.net> User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041231 X-Accept-Language: en-gb, en-us, en MIME-Version: 1.0 To: lisa23@example.net Subject: Re: SVGOMFEGaussianBlurElement not animating References: <lisa23@example.net> <lisa23@example.net> In-Reply-To: <lisa23@example.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Thomas DeWeese wrote: > Hi James, > > Sorry, filters don't auto update the way they should. > The typical workaround is to 'twiddle' the filter attribute > on the element(s) using the filter. I know it's a pain... > Thanks Thomas, removing the filter attr then adding it again fixes things. I'm guessing the answer will be 'no', but is there a list of implementation progress on all the SVG DOM interfaces? Cheers James Shaw --------------------------------------------------------------------- To unsubscribe, e-mail: lisa23@example.net For additional commands, e-mail: lisa23@example.net From batik-users-return-7697lisa23@example.net Mon May 02 10:39:37 2005 Return-Path: <batik-users-return-7697lisa23@example.net> Delivered-To: lisa23@example.net Received: (qmail 28369 invoked from network); 2 May 2005 10:39:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 May 2005 10:39:37 -0000 Received: (qmail 16254 invoked by uid 500); 2 May 2005 10:40:59 -0000 Delivered-To: lisa23@example.net Received: (qmail 16112 invoked by uid 500); 2 May 2005 10:40:58 -0000 Mailing-List: contact lisa23@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:lisa23@example.net> List-Unsubscribe: <mailto:lisa23@example.net> List-Post: <mailto:lisa23@example.net> List-Id: <batik-users.xmlgraphics.apache.org> Reply-To: lisa23@example.net Delivered-To: mailing list lisa23@example.net Received: (qmail 16096 invoked by uid 99); 2 May 2005 10:40:58 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of lisa23@example.net designates 83.161.120.155 as permitted sender) Received: from wproxy.gmail.com (HELO wproxy.gmail.com) (83.161.120.155) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 02 May 2005 03:40:58 -0700 Received: by wproxy.gmail.com with SMTP id 69so1425849wri for <lisa23@example.net>; Mon, 02 May 2005 03:39:32 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=lRp37Re0svdVwuMQmfq5hsafwPDJe/Rybe5J6whCFyvRNDmXd3QPIbbRLfQFSer5NSbCdaSFj9a6Kb1CYMs8r38uS0St5iOn2QiRij8ZxxcX+9NIk8NPRJ8VnfJGLZTGlaaufNznscgOtkBOvOzFG9HKViCwX3mM3QdQA1Pulus= Received: by 83.161.120.155 with SMTP id 42mr483731wrc; Mon, 02 May 2005 03:39:32 -0700 (PDT) Received: by 83.161.120.155 with HTTP; Mon, 2 May 2005 03:39:32 -0700 (PDT) Message-ID: <lisa23@example.net> Date: Mon, 2 May 2005 06:39:32 -0400 From: Arian Hojat <lisa23@example.net> Reply-To: Arian Hojat <lisa23@example.net> To: lisa23@example.net Subject: saving a an svg as a jpeg on the server In-Reply-To: <lisa23@example.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <lisa23@example.net> <lisa23@example.net> X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hello all, i feel like such a newb posting and reposting here but my issues are not completely solved yet and maybe someone can give a fresh outlook. I have an svg in memory. i save it on windows fine. I fixed my code so i dont need to know if i am on unix or windows. but anyway i public static void saveJPEG(Document svgDoc, String fullPath, PrintWriter out) { JPEGTranscoder t =3D new JPEGTranscoder(); FileInputStream blah =3D null; TranscoderInput input =3D null; FileOutputStream ostream =3D null; TranscoderOutput output =3D null; =20 File f =3D null; =20 input =3D new TranscoderInput( svgDoc ); =20 f =3D new File(fullPath+ "yyyy.jpg"); =20 try { ostream =3D new FileOutputStream(f); } catch(FileNotFoundException e) { e.getMessage(); } output =3D new TranscoderOutput(ostream); =20 =20 try { t.transcode(input, output); } catch( TranscoderException e) { e.getMessage(); } =20 try{ ostream.flush(); ostream.close(); } catch(IOException e) { e.getMessage(); } =20 } --------------------------------------------------------------------- To unsubscribe, e-mail: lisa23@example.net For additional commands, e-mail: lisa23@example.net From batik-users-return-7698lisa23@example.net Mon May 02 10:45:41 2005 Return-Path: <batik-users-return-7698lisa23@example.net> Delivered-To: lisa23@example.net Received: (qmail 30013 invoked from network); 2 May 2005 10:45:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 May 2005 10:45:40 -0000 Received: (qmail 23697 invoked by uid 500); 2 May 2005 10:47:04 -0000 Delivered-To: lisa23@example.net Received: (qmail 23422 invoked by uid 500); 2 May 2005 10:47:03 -0000 Mailing-List: contact lisa23@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:lisa23@example.net> List-Unsubscribe: <mailto:lisa23@example.net> List-Post: <mailto:lisa23@example.net> List-Id: <batik-users.xmlgraphics.apache.org> Reply-To: lisa23@example.net Delivered-To: mailing list lisa23@example.net Received: (qmail 23409 invoked by uid 99); 2 May 2005 10:47:02 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of lisa23@example.net designates 83.161.120.155 as permitted sender) Received: from wproxy.gmail.com (HELO wproxy.gmail.com) (83.161.120.155) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 02 May 2005 03:47:02 -0700 Received: by wproxy.gmail.com with SMTP id 69so1426730wri for <lisa23@example.net>; Mon, 02 May 2005 03:45:36 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Dm2JcUZQJzzMI0HeC7SrDffQWrmT9GdQP7tQZiUyJNE5yK6o6Zp/e9RS71lmf6c4ENUlrd7IfoOS8kV9KsUjgdxs87nLzeAjr0dBLPSOKf9N8PZVm2lcIACPUTum3+jEFKNnlBoACsHhRWM9GV8cvB/oi06nTaRieePTY9jHdVc= Received: by 83.161.120.155 with SMTP id w5mr484993wrc; Mon, 02 May 2005 03:45:36 -0700 (PDT) Received: by 83.161.120.155 with HTTP; Mon, 2 May 2005 03:45:36 -0700 (PDT) Message-ID: <lisa23@example.net> Date: Mon, 2 May 2005 06:45:36 -0400 From: Arian Hojat <lisa23@example.net> Reply-To: Arian Hojat <lisa23@example.net> To: lisa23@example.net Subject: saving svg as jpeg on tomcat server In-Reply-To: <lisa23@example.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <lisa23@example.net> <lisa23@example.net> <lisa23@example.net> <lisa23@example.net> X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N whoops i might have sent this email be4 prematurely.... rewriting just to make sure..... Hello all, I have a function to save my svg document as a jpeg. i fixed my code from be4 so unix or windows filepaths shouldnt make a difference. it works fine in windows. but on unix, it saves a 0 kb jpg and throws an exception somewhere as my code does not go completely through and get the standard 'The page cannot be displayed' page. I was wondering am i doing something screwy here? public static void saveJPEG(Document svgDoc, String fullPath, PrintWriter out) { //printwriter used for debugging in servlet JPEGTranscoder t =3D new JPEGTranscoder(); FileInputStream blah =3D null; TranscoderInput input =3D null; FileOutputStream ostream =3D null; TranscoderOutput output =3D null; =20 File f =3D null; =20 input =3D new TranscoderInput( svgDoc ); =20 f =3D new File(fullPath+ "yyyy.jpg"); =20 try { ostream =3D new FileOutputStream(f); } catch(FileNotFoundException e) { e.getMessage(); } output =3D new TranscoderOutput(ostream); try { >stack trace says there is a problem here.... =20 t.transcode(input, output); } catch( TranscoderException e) { e.getMessage(); } =20 try{ ostream.flush(); ostream.close(); } catch(IOException e) { e.getMessage(); } =20 =20 } here is a stack trace on tomcat if anyone wants a look: java.lang.NoClassDefFoundError =09java.lang.Class.forName0(Native Method) =09java.lang.Class.forName(Class.java:141) =09java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnviron= ment.java:62) =09java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1041) =09org.apache.batik.ext.awt.image.GraphicsUtil.createGraphics(Unknown Sourc= e) =09org.apache.batik.gvt.filter.GraphicsNodeRed8Bit.genRect(Unknown Source) =09org.apache.batik.gvt.filter.GraphicsNodeRed8Bit.copyData(Unknown Source) =09org.apache.batik.ext.awt.image.rendered.TileCacheRed.genRect(Unknown Sou= rce) =09org.apache.batik.ext.awt.image.rendered.AbstractTiledRed.drawBlockInPlac= e(Unknown Source) =09org.apache.batik.ext.awt.image.rendered.AbstractTiledRed.drawBlock(Unkno= wn Source) =09org.apache.batik.ext.awt.image.rendered.AbstractTiledRed.copyToRasterByB= locks(Unknown Source) =09org.apache.batik.ext.awt.image.rendered.AbstractTiledRed.copyData(Unknow= n Source) =09org.apache.batik.ext.awt.image.rendered.TranslateRed.copyData(Unknown So= urce) =09org.apache.batik.ext.awt.image.rendered.PadRed.copyData(Unknown Source) =09org.apache.batik.gvt.renderer.StaticRenderer.repaint(Unknown Source) =09org.apache.batik.gvt.renderer.StaticRenderer.repaint(Unknown Source) =09org.apache.batik.transcoder.image.ImageTranscoder.transcode(Unknown Sour= ce) =09org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(Unknown Sour= ce) =09org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(Unknown Sour= ce) =09w6.saveJPEG(w6.java:254) =09w6.imageTest(w6.java:413) =09w6.doGet(w6.java:199) =09javax.servlet.http.HttpServlet.service(HttpServlet.java:689) =09javax.servlet.http.HttpServlet.service(HttpServlet.java:802) --------------------------------------------------------------------- To unsubscribe, e-mail: lisa23@example.net For additional commands, e-mail: lisa23@example.net From batik-users-return-7699lisa23@example.net Mon May 02 11:15:38 2005 Return-Path: <batik-users-return-7699lisa23@example.net> Delivered-To: lisa23@example.net Received: (qmail 48393 invoked from network); 2 May 2005 11:15:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 May 2005 11:15:38 -0000 Received: (qmail 55799 invoked by uid 500); 2 May 2005 11:17:01 -0000 Delivered-To: lisa23@example.net Received: (qmail 55775 invoked by uid 500); 2 May 2005 11:17:00 -0000 Mailing-List: contact lisa23@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:lisa23@example.net> List-Unsubscribe: <mailto:lisa23@example.net> List-Post: <mailto:lisa23@example.net> List-Id: <batik-users.xmlgraphics.apache.org> Reply-To: lisa23@example.net Delivered-To: mailing list lisa23@example.net Received: (qmail 55757 invoked by uid 99); 2 May 2005 11:17:00 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of lisa23@example.net designates 83.161.120.155 as permitted sender) Received: from smtp1.kodak.com (HELO smtp1.kodak.com) (83.161.120.155) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 02 May 2005 04:17:00 -0700 Received: from roc-us-e1000-112.kodak.com (roc-us-e1000-112.kodak.com [83.161.120.155]) by smtp1.kodak.com (8.11.3/8.11.1) with SMTP id j42BFX506908 for <lisa23@example.net>; Mon, 2 May 2005 07:15:33 -0400 (EDT) Received: from (83.161.120.155) by roc-us-e1000-112.kodak.com via smtp id 2680_f2e6910c_bafc_11d9_9e4f_0002b3c946b6; Mon, 02 May 2005 07:25:55 -0400 (EDT) Message-ID: <lisa23@example.net> Date: Mon, 02 May 2005 07:15:33 -0400 From: Thomas DeWeese <lisa23@example.net> Organization: Eastman Kodak Company User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: lisa23@example.net Subject: Re: saving svg as jpeg on tomcat server References: <lisa23@example.net> <lisa23@example.net> <lisa23@example.net> <lisa23@example.net> <lisa23@example.net> In-Reply-To: <lisa23@example.net> X-Enigmail-Version: 83.161.120.155 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi Arian, Arian Hojat wrote: > I was wondering am i doing something screwy here? I don't think so, but it looks like the tomcat JVM might be a little confused/corrupt. What version of java is it using? Are you running tomcat with '-Djava.awt.headless=true'? Normally you get a can't start AWT message but since this is the first time AWT is accessed it might be related. Or was someone using the headless AWT replacement at one time? I think that set a property that was supposed to replace the Sun Graphics engine. Perhaps those classes weren't copied over? > here is a stack trace on tomcat if anyone wants a look: > > java.lang.NoClassDefFoundError > java.lang.Class.forName0(Native Method) > java.lang.Class.forName(Class.java:141) > java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62) > java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1041) > org.apache.batik.ext.awt.image.GraphicsUtil.createGraphics(Unknown Source) > org.apache.batik.gvt.filter.GraphicsNodeRed8Bit.genRect(Unknown Source) --------------------------------------------------------------------- To unsubscribe, e-mail: lisa23@example.net For additional commands, e-mail: lisa23@example.net From batik-users-return-7700lisa23@example.net Mon May 02 18:11:30 2005 Return-Path: <batik-users-return-7700lisa23@example.net> Delivered-To: lisa23@example.net Received: (qmail 27705 invoked from network); 2 May 2005 18:11:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 May 2005 18:11:30 -0000 Received: (qmail 96246 invoked by uid 500); 2 May 2005 18:12:56 -0000 Delivered-To: lisa23@example.net Received: (qmail 96209 invoked by uid 500); 2 May 2005 18:12:55 -0000 Mailing-List: contact lisa23@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:lisa23@example.net> List-Unsubscribe: <mailto:lisa23@example.net> List-Post: <mailto:lisa23@example.net> List-Id: <batik-users.xmlgraphics.apache.org> Reply-To: lisa23@example.net Delivered-To: mailing list lisa23@example.net Received: (qmail 96195 invoked by uid 500); 2 May 2005 18:12:55 -0000 Delivered-To: lisa23@example.net Received: (qmail 96190 invoked by uid 99); 2 May 2005 18:12:54 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of lisa23@example.net designates 83.161.120.155 as permitted sender) Received: from main.gmane.org (HELO ciao.gmane.org) (83.161.120.155) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 02 May 2005 11:12:54 -0700 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1DSfGs-0002H3-DV for lisa23@example.net; Mon, 02 May 2005 20:03:54 +0200 Received: from 76.80-203-227.nextgentel.com ([83.161.120.155]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for <lisa23@example.net>; Mon, 02 May 2005 20:03:54 +0200 Received: from mru by 76.80-203-227.nextgentel.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for <lisa23@example.net>; Mon, 02 May 2005 20:03:54 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: lisa23@example.net From: =?iso-8859-1?q?M=E5ns_Rullg=E5rd?= <lisa23@example.net> Subject: Re: saving svg as jpeg on tomcat server Date: Mon, 02 May 2005 19:55:43 +0200 Lines: 37 Message-ID: <lisa23@example.net> References: <lisa23@example.net> <lisa23@example.net> <lisa23@example.net> <lisa23@example.net> <lisa23@example.net> <lisa23@example.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Complaints-To: lisa23@example.net X-Gmane-NNTP-Posting-Host: 76.80-203-227.nextgentel.com User-Agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Security Through Obscurity, linux) Cancel-Lock: sha1:rybxxEJvAH4GIUwAZnL1tuYnatI= Sender: news <lisa23@example.net> X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Thomas DeWeese <lisa23@example.net> writes: > Hi Arian, > > Arian Hojat wrote: > >> I was wondering am i doing something screwy here? > > I don't think so, but it looks like the tomcat > JVM might be a little confused/corrupt. What version > of java is it using? > > Are you running tomcat with '-Djava.awt.headless=true'? > > Normally you get a can't start AWT message but since > this is the first time AWT is accessed it might be > related. Or was someone using the headless AWT replacement > at one time? I think that set a property that was supposed > to replace the Sun Graphics engine. Perhaps those classes > weren't copied over? I always get that exact error with fresh installs of Sun JDK and Tomcat if -Djava.awt.headless=true is missing. It took me a few moments to figure it out the first time. >> here is a stack trace on tomcat if anyone wants a look: >> java.lang.NoClassDefFoundError >> java.lang.Class.forName0(Native Method) >> java.lang.Class.forName(Class.java:141) >> java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62) >> java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1041) >> org.apache.batik.ext.awt.image.GraphicsUtil.createGraphics(Unknown Source) >> org.apache.batik.gvt.filter.GraphicsNodeRed8Bit.genRect(Unknown Source) -- Måns Rullgård lisa23@example.net --------------------------------------------------------------------- To unsubscribe, e-mail: lisa23@example.net For additional commands, e-mail: lisa23@example.net From batik-users-return-7701lisa23@example.net Mon May 02 18:37:33 2005 Return-Path: <batik-users-return-7701lisa23@example.net> Delivered-To: lisa23@example.net Received: (qmail 39051 invoked from network); 2 May 2005 18:37:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 May 2005 18:37:33 -0000 Received: (qmail 51655 invoked by uid 500); 2 May 2005 18:38:15 -0000 Delivered-To: lisa23@example.net Received: (qmail 51623 invoked by uid 500); 2 May 2005 18:38:15 -0000 Mailing-List: contact lisa23@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:lisa23@example.net> List-Unsubscribe: <mailto:lisa23@example.net> List-Post: <mailto:lisa23@example.net> List-Id: <batik-users.xmlgraphics.apache.org> Reply-To: lisa23@example.net Delivered-To: mailing list lisa23@example.net Received: (qmail 51558 invoked by uid 99); 2 May 2005 18:38:14 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of lisa23@example.net designates 83.161.120.155 as permitted sender) Received: from wproxy.gmail.com (HELO wproxy.gmail.com) (83.161.120.155) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 02 May 2005 11:38:11 -0700 Received: by wproxy.gmail.com with SMTP id 69so1544168wri for <lisa23@example.net>; Mon, 02 May 2005 11:36:39 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=tJBDnYlu+yuHyFPUqyifyJvxTO8PtVWQ/O9BZcwG85RGbvaHz3fKCaKK+FnmTjoAa8wFhkkkVomk9p2dK9tZPUF+TVyMFjMgQmtjNS8qgFjXtKnyiok8PmXAe7TnBb3IN+l6k2DLFzzeX00I2fkA63+r4grULjNXTJsaWw3Aep4= Received: by 83.161.120.155 with SMTP id 48mr695021wrc; Mon, 02 May 2005 11:36:39 -0700 (PDT) Received: by 83.161.120.155 with HTTP; Mon, 2 May 2005 11:36:38 -0700 (PDT) Message-ID: <lisa23@example.net> Date: Mon, 2 May 2005 14:36:38 -0400 From: Arian Hojat <lisa23@example.net> Reply-To: Arian Hojat <lisa23@example.net> To: lisa23@example.net Subject: Re: saving svg as jpeg on tomcat server In-Reply-To: <lisa23@example.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <lisa23@example.net> <lisa23@example.net> <lisa23@example.net> <lisa23@example.net> <lisa23@example.net> <lisa23@example.net> <lisa23@example.net> X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N hey thanx for the tip guys. I'll try it tonight... Also I am curious what exactly does this headless option for awt have to do with batik? Does everyone who uses tomcat and batik do this the 1st time or special cases (i just installed the server last month so it hasn't seen much action other than batik)? thanks, Arian On 5/2/05, M=E5ns Rullg=E5rd <lisa23@example.net> wrote: > Thomas DeWeese <lisa23@example.net> writes: >=20 > > Hi Arian, > > > > Arian Hojat wrote: > > > >> I was wondering am i doing something screwy here? > > > > I don't think so, but it looks like the tomcat > > JVM might be a little confused/corrupt. What version > > of java is it using? > > > > Are you running tomcat with '-Djava.awt.headless=3Dtrue'? > > > > Normally you get a can't start AWT message but since > > this is the first time AWT is accessed it might be > > related. Or was someone using the headless AWT replacement > > at one time? I think that set a property that was supposed > > to replace the Sun Graphics engine. Perhaps those classes > > weren't copied over? >=20 > I always get that exact error with fresh installs of Sun JDK and > Tomcat if -Djava.awt.headless=3Dtrue is missing. It took me a few > moments to figure it out the first time. >=20 > >> here is a stack trace on tomcat if anyone wants a look: > >> java.lang.NoClassDefFoundError > >> java.lang.Class.forName0(Native Method) > >> java.lang.Class.forName(Class.java:141) > >> java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(Graphics= Environment.java:62) > >> java.awt.image.BufferedImage.createGraphics(BufferedImage.java:10= 41) > >> org.apache.batik.ext.awt.image.GraphicsUtil.createGraphics(Unknow= n Source) > >> org.apache.batik.gvt.filter.GraphicsNodeRed8Bit.genRect(Unknown S= ource) >=20 > -- > M=E5ns Rullg=E5rd > lisa23@example.net >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: lisa23@example.net > For additional commands, e-mail: lisa23@example.net >=20 > --------------------------------------------------------------------- To unsubscribe, e-mail: lisa23@example.net For additional commands, e-mail: lisa23@example.net From batik-users-return-7702lisa23@example.net Mon May 02 20:05:51 2005 Return-Path: <batik-users-return-7702lisa23@example.net> Delivered-To: lisa23@example.net Received: (qmail 93104 invoked from network); 2 May 2005 20:05:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 May 2005 20:05:51 -0000 Received: (qmail 79696 invoked by uid 500); 2 May 2005 20:07:17 -0000 Delivered-To: lisa23@example.net Received: (qmail 79676 invoked by uid 500); 2 May 2005 20:07:16 -0000 Mailing-List: contact lisa23@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:lisa23@example.net> List-Unsubscribe: <mailto:lisa23@example.net> List-Post: <mailto:lisa23@example.net> List-Id: <batik-users.xmlgraphics.apache.org> Reply-To: lisa23@example.net Delivered-To: mailing list lisa23@example.net Received: (qmail 79661 invoked by uid 99); 2 May 2005 20:07:15 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of lisa23@example.net designates 83.161.120.155 as permitted sender) Received: from wproxy.gmail.com (HELO wproxy.gmail.com) (83.161.120.155) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 02 May 2005 13:07:15 -0700 Received: by wproxy.gmail.com with SMTP id 69so1568019wri for <lisa23@example.net>; Mon, 02 May 2005 13:05:42 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=qnZWQ5aQn0Iinpy7UL45ZW8RpKvC7NWQWWtWNVRhVwEpcFpv9zB9itLCzhSDdKv/tbbsZiCVg2Wj2dj7ajMD971+ua0PqqeJmo/bEOZPu21CoymgeCq9eya8ghsYGuyou6bt5TOGui5Qn4JeHYMF7adE/As9zhkuucKCWshHfRQ= Received: by 83.161.120.155 with SMTP id d18mr736783wrb; Mon, 02 May 2005 13:05:42 -0700 (PDT) Received: by 83.161.120.155 with HTTP; Mon, 2 May 2005 13:05:42 -0700 (PDT) Message-ID: <lisa23@example.net> Date: Mon, 2 May 2005 16:05:42 -0400 From: Arian Hojat <lisa23@example.net> Reply-To: Arian Hojat <lisa23@example.net> To: lisa23@example.net Subject: Re: saving svg as jpeg on tomcat server In-Reply-To: <lisa23@example.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <lisa23@example.net> <lisa23@example.net> <lisa23@example.net> <lisa23@example.net> <lisa23@example.net> <lisa23@example.net> <lisa23@example.net> <lisa23@example.net> X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I took off early from work to come back to college n try it out. i cannot express the joy and satisfaction of finally getting some Batik to work with Tomcat! hah. I am gonna break out some inspirational 70's rock music: "Dont Stop Beleivin' " heh. I guess some imaging/gui type code needs X support off? This is what headless means? This seems to be what i found out from googling. On 5/2/05, Arian Hojat <lisa23@example.net> wrote: > hey thanx for the tip guys. I'll try it tonight... Also I am curious > what exactly does this headless option for awt have to do with batik? > Does everyone who uses tomcat and batik do this the 1st time or > special cases (i just installed the server last month so it hasn't > seen much action other than batik)? >=20 > thanks, > Arian >=20 > On 5/2/05, M=E5ns Rullg=E5rd <lisa23@example.net> wrote: > > Thomas DeWeese <lisa23@example.net> writes: > > > > > Hi Arian, > > > > > > Arian Hojat wrote: > > > > > >> I was wondering am i doing something screwy here? > > > > > > I don't think so, but it looks like the tomcat > > > JVM might be a little confused/corrupt. What version > > > of java is it using? > > > > > > Are you running tomcat with '-Djava.awt.headless=3Dtrue'? > > > > > > Normally you get a can't start AWT message but since > > > this is the first time AWT is accessed it might be > > > related. Or was someone using the headless AWT replacement > > > at one time? I think that set a property that was supposed > > > to replace the Sun Graphics engine. Perhaps those classes > > > weren't copied over? > > > > I always get that exact error with fresh installs of Sun JDK and > > Tomcat if -Djava.awt.headless=3Dtrue is missing. It took me a few > > moments to figure it out the first time. > > > > >> here is a stack trace on tomcat if anyone wants a look: > > >> java.lang.NoClassDefFoundError > > >> java.lang.Class.forName0(Native Method) > > >> java.lang.Class.forName(Class.java:141) > > >> java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(Graphi= csEnvironment.java:62) > > >> java.awt.image.BufferedImage.createGraphics(BufferedImage.java:= 1041) > > >> org.apache.batik.ext.awt.image.GraphicsUtil.createGraphics(Unkn= own Source) > > >> org.apache.batik.gvt.filter.GraphicsNodeRed8Bit.genRect(Unknown= Source) > > > > -- > > M=E5ns Rullg=E5rd > > lisa23@example.net > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: lisa23@example.net > > For additional commands, e-mail: lisa23@example.net= g > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: lisa23@example.net For additional commands, e-mail: lisa23@example.net From batik-users-return-7703lisa23@example.net Tue May 03 07:38:15 2005 Return-Path: <batik-users-return-7703lisa23@example.net> Delivered-To: lisa23@example.net Received: (qmail 29046 invoked from network); 3 May 2005 07:38:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 3 May 2005 07:38:15 -0000 Received: (qmail 53536 invoked by uid 500); 3 May 2005 07:39:44 -0000 Delivered-To: lisa23@example.net Received: (qmail 53486 invoked by uid 500); 3 May 2005 07:39:43 -0000 Mailing-List: contact lisa23@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:lisa23@example.net> List-Unsubscribe: <mailto:lisa23@example.net> List-Post: <mailto:lisa23@example.net> List-Id: <batik-users.xmlgraphics.apache.org> Reply-To: lisa23@example.net Delivered-To: mailing list lisa23@example.net Received: (qmail 53470 invoked by uid 99); 3 May 2005 07:39:43 -0000 X-ASF-Spam-Status: No, hits=2.1 required=10.0 tests=HTML_40_50,HTML_IMAGE_ONLY_08,HTML_MESSAGE,MSGID_FROM_MTA_HEADER X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from webmail36.rediffmail.com (HELO rediffmail.com) (83.161.120.155) by apache.org (qpsmtpd/0.28) with SMTP; Tue, 03 May 2005 00:39:42 -0700 Received: (qmail 6875 invoked by uid 510); 3 May 2005 07:39:27 -0000 Date: 3 May 2005 07:39:27 -0000 Message-ID: <lisa23@example.net> Received: from unknown (83.161.120.155) by rediffmail.com via HTTP; 03 may 2005 07:39:27 -0000 MIME-Version: 1.0 From: "Amit Srivastava" <lisa23@example.net> Reply-To: "Amit Srivastava" <lisa23@example.net> To: lisa23@example.net Subject: remove background color using JPEGTranscoder Content-type: multipart/alternative; boundary="Next_849.748.7849.161.120.155-6872" X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --Next_849.748.7849.161.120.155-6872 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline =A0=0A HI,=0A I am using JPEGTranscoder to transcode svg to JPEG image.= =0AIt does it fine but a very light background color is coming.=0AI tried u= sing =0A.addTranscodingHint(JPEGTranscoder.KEY_BACKGROUND_COLOR, Color.whit= e);=0Abut still the background is coming .=0AHow to remove that color ?=0A= =0Athanks,=0AAmit=0A=0A --Next_849.748.7849.161.120.155-6872 Content-type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline <P>=0A&nbsp; <BR>=0A&nbsp; HI,<BR>=0A&nbsp; I am using JPEGTranscoder to tr= anscode svg to JPEG image.<BR>=0AIt does it fine but a very light backgroun= d color is coming.<BR>=0AI tried using <BR>=0A.addTranscodingHint(JPEGTrans= coder.KEY_BACKGROUND_COLOR, Color.white);<BR>=0Abut still the background is= coming .<BR>=0AHow to remove that color ?<BR>=0A<BR>=0Athanks,<BR>=0AAmit= =0A</P>=0A=0A=0A<br><br>=0A<A target=3D"_blank" HREF=3D"http://clients.redi= ff.com/signature/track_sig.asp"><IMG SRC=3D"http://ads.rediff.com/RealMedia= /ads/adstream_nx.cgi/www.rediffmail.com/inbox.htm@Bottom" BORDER=3D0 VSPACE= =3D0 HSPACE=3D0></a>=0A --Next_849.748.7849.161.120.155-6872-- From batik-users-return-7704lisa23@example.net Tue May 03 09:00:06 2005 Return-Path: <batik-users-return-7704lisa23@example.net> Delivered-To: lisa23@example.net Received: (qmail 65573 invoked from network); 3 May 2005 09:00:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 3 May 2005 09:00:06 -0000 Received: (qmail 9947 invoked by uid 500); 3 May 2005 09:01:32 -0000 Delivered-To: lisa23@example.net Received: (qmail 9884 invoked by uid 500); 3 May 2005 09:01:29 -0000 Mailing-List: contact lisa23@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:lisa23@example.net> List-Unsubscribe: <mailto:lisa23@example.net> List-Post: <mailto:lisa23@example.net> List-Id: <batik-users.xmlgraphics.apache.org> Reply-To: lisa23@example.net Delivered-To: mailing list lisa23@example.net Received: (qmail 9821 invoked by uid 99); 3 May 2005 09:01:28 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from mail03.powweb.com (HELO mail03.powweb.com) (83.161.120.155) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 03 May 2005 02:01:28 -0700 Received: from 83.161.120.155 (unknown [83.161.120.155]) by mail03.powweb.com (Postfix) with ESMTP id 8BC8615D3D for <lisa23@example.net>; Tue, 3 May 2005 01:59:42 -0700 (PDT) Subject: Re: remove background color using JPEGTranscoder From: Tonny Kohar <lisa23@example.net> To: lisa23@example.net In-Reply-To: <lisa23@example.net> References: <lisa23@example.net> Content-Type: text/plain Date: Tue, 03 May 2005 16:00:15 +0700 Message-Id: <lisa23@example.net> Mime-Version: 1.0 X-Mailer: Evolution 2.0.2 (2.0.2-3) Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, On Tue, 2005-05-03 at 07:39 +0000, Amit Srivastava wrote: > > HI, > I am using JPEGTranscoder to transcode svg to JPEG image. > It does it fine but a very light background color is coming. > I tried using > .addTranscodingHint(JPEGTranscoder.KEY_BACKGROUND_COLOR, Color.white); > but still the background is coming . > How to remove that color ? How about trying this ImageTranscoder.KEY_FORCE_TRANSPARENT_WHITE (true/false) Regards Tonny Kohar -- Sketsa SVG Graphics Editor http://www.kiyut.com --------------------------------------------------------------------- To unsubscribe, e-mail: lisa23@example.net For additional commands, e-mail: lisa23@example.net From batik-users-return-7705lisa23@example.net Tue May 03 09:15:14 2005 Return-Path: <batik-users-return-7705lisa23@example.net> Delivered-To: lisa23@example.net Received: (qmail 77759 invoked from network); 3 May 2005 09:15:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 3 May 2005 09:15:14 -0000 Received: (qmail 40160 invoked by uid 500); 3 May 2005 09:16:33 -0000 Delivered-To: lisa23@example.net Received: (qmail 40108 invoked by uid 500); 3 May 2005 09:16:32 -0000 Mailing-List: contact lisa23@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:lisa23@example.net> List-Unsubscribe: <mailto:lisa23@example.net> List-Post: <mailto:lisa23@example.net> List-Id: <batik-users.xmlgraphics.apache.org> Reply-To: lisa23@example.net Delivered-To: mailing list lisa23@example.net Received: (qmail 40085 invoked by uid 99); 3 May 2005 09:16:31 -0000 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=HTML_30_40,HTML_IMAGE_ONLY_16,HTML_MESSAGE,MSGID_FROM_MTA_HEADER X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from webmail33.rediffmail.com (HELO rediffmail.com) (83.161.120.155) by apache.org (qpsmtpd/0.28) with SMTP; Tue, 03 May 2005 02:16:31 -0700 Received: (qmail 20658 invoked by uid 510); 3 May 2005 09:16:14 -0000 Date: 3 May 2005 09:16:14 -0000 Message-ID: <lisa23@example.net> Received: from unknown (83.161.120.155) by rediffmail.com via HTTP; 03 may 2005 09:16:14 -0000 MIME-Version: 1.0 From: "Amit Srivastava" <lisa23@example.net> Reply-To: "Amit Srivastava" <lisa23@example.net> To: lisa23@example.net Subject: Re: Re: remove background color using JPEGTranscoder Content-type: multipart/alternative; boundary="Next_1115111774---0-83.161.120.155-20651" X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --Next_1115111774---0-83.161.120.155-20651 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I tried putting =A0=0AImageTranscoder.KEY_FORCE_TRANSPARENT_WHITE (true)= =0Abut still that very light background is coming.=0A=0Athanks,=0AAmit=0A= =0A=0AOn Tue, 03 May 2005 Tonny Kohar wrote :=0A>Hi,=0A>=0A>On Tue, 2005-05= -03 at 07:39 +0000, Amit Srivastava wrote:=0A> >=0A> > HI,=0A> > I am u= sing JPEGTranscoder to transcode svg to JPEG image.=0A> > It does it fine b= ut a very light background color is coming.=0A> > I tried using=0A> > .addT= ranscodingHint(JPEGTranscoder.KEY_BACKGROUND_COLOR, Color.white);=0A> > but= still the background is coming .=0A> > How to remove that color ?=0A>=0A>H= ow about trying this=0A>=0A>ImageTranscoder.KEY_FORCE_TRANSPARENT_WHITE (tr= ue/false)=0A>=0A>Regards=0A>Tonny Kohar=0A>--=0A>Sketsa=0A>SVG Graphics Edi= tor=0A>http://www.kiyut.com=0A>=0A>=0A>------------------------------------= ---------------------------------=0A>To unsubscribe, e-mail: batik-users-un= lisa23@example.net=0A>For additional commands, e-mail: batik-= lisa23@example.net=0A>=0A=0A=0A --Next_1115111774---0-83.161.120.155-20651 Content-type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline <P>=0AI tried putting&nbsp; =A0<BR>=0AImageTranscoder.KEY_FORCE_TRANSPARENT= _WHITE (true)<BR>=0Abut still that very light background is coming.<BR>=0A<= BR>=0Athanks,<BR>=0AAmit<BR>=0A<BR>=0A<BR>=0AOn Tue, 03 May 2005 Tonny Koha= r wrote :<BR>=0A&gt;Hi,<BR>=0A&gt;<BR>=0A&gt;On Tue, 2005-05-03 at 07:39 +0= 000, Amit Srivastava wrote:<BR>=0A&gt; &gt;<BR>=0A&gt; &gt;&nbsp; HI,<BR>= =0A&gt; &gt;&nbsp; I am using JPEGTranscoder to transcode svg to JPEG imag= e.<BR>=0A&gt; &gt; It does it fine but a very light background color is com= ing.<BR>=0A&gt; &gt; I tried using<BR>=0A&gt; &gt; .addTranscodingHint(JPEG= Transcoder.KEY_BACKGROUND_COLOR, Color.white);<BR>=0A&gt; &gt; but still th= e background is coming .<BR>=0A&gt; &gt; How to remove that color ?<BR>=0A&= gt;<BR>=0A&gt;How about trying this<BR>=0A&gt;<BR>=0A&gt;ImageTranscoder.KE= Y_FORCE_TRANSPARENT_WHITE (true/false)<BR>=0A&gt;<BR>=0A&gt;Regards<BR>=0A&= gt;Tonny Kohar<BR>=0A&gt;--<BR>=0A&gt;Sketsa<BR>=0A&gt;SVG Graphics Editor<= BR>=0A&gt;http://www.kiyut.com<BR>=0A&gt;<BR>=0A&gt;<BR>=0A&gt;------------= ---------------------------------------------------------<BR>=0A&gt;To unsu= bscribe, e-mail: lisa23@example.net<BR>=0A&gt;F= or additional commands, e-mail: lisa23@example.net<BR>= =0A&gt;<BR>=0A=0A</P>=0A=0A=0A<br><br>=0A<A target=3D"_blank" HREF=3D"http:= //clients.rediff.com/signature/track_sig.asp"><IMG SRC=3D"http://ads.rediff= .com/RealMedia/ads/adstream_nx.cgi/www.rediffmail.com/inbox.htm@Bottom" BOR= DER=3D0 VSPACE=3D0 HSPACE=3D0></a>=0A --Next_1115111774---0-83.161.120.155-20651-- From batik-users-return-7706lisa23@example.net Tue May 03 10:00:35 2005 Return-Path: <batik-users-return-7706lisa23@example.net> Delivered-To: lisa23@example.net Received: (qmail 7948 invoked from network); 3 May 2005 10:00:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 3 May 2005 10:00:35 -0000 Received: (qmail 37853 invoked by uid 500); 3 May 2005 10:02:02 -0000 Delivered-To: lisa23@example.net Received: (qmail 37790 invoked by uid 500); 3 May 2005 10:02:00 -0000 Mailing-List: contact lisa23@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:lisa23@example.net> List-Unsubscribe: <mailto:lisa23@example.net> List-Post: <mailto:lisa23@example.net> List-Id: <batik-users.xmlgraphics.apache.org> Reply-To: lisa23@example.net Delivered-To: mailing list lisa23@example.net Received: (qmail 37755 invoked by uid 99); 3 May 2005 10:01:58 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of lisa23@example.net designates 83.161.120.155 as permitted sender) Received: from smtp1.kodak.com (HELO smtp1.kodak.com) (83.161.120.155) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 03 May 2005 03:01:57 -0700 Received: from roc-us-e1000-110.kodak.com (roc-us-e1000-110.kodak.com [83.161.120.155]) by smtp1.kodak.com (8.11.3/8.11.1) with SMTP id j43A0FA20873 for <lisa23@example.net>; Tue, 3 May 2005 06:00:15 -0400 (EDT) Received: from (83.161.120.155) by roc-us-e1000-110.kodak.com via smtp id 5fdb_ffcd87b8_bbba_11d9_9197_0002b3eef597; Tue, 03 May 2005 06:06:21 -0400 (EDT) Message-ID: <lisa23@example.net> Date: Tue, 03 May 2005 06:00:14 -0400 From: Thomas DeWeese <lisa23@example.net> Organization: Eastman Kodak Company User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: lisa23@example.net Subject: Re: remove background color using JPEGTranscoder References: <lisa23@example.net> In-Reply-To: <lisa23@example.net> X-Enigmail-Version: 83.161.120.155 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Amit Srivastava wrote: > I am using JPEGTranscoder to transcode svg to JPEG image. > It does it fine but a very light background color is coming. > I tried using > .addTranscodingHint(JPEGTranscoder.KEY_BACKGROUND_COLOR, Color.white); > but still the background is coming . Well I would expect that using white as the background color would result in a light background. Did you try setting it to 'black' to get a dark background? Or did you mean that it was 'tinted' - you wanted it pure white but it had some other color in it? > How to remove that color ? If it is tinted then you probably have a semi-transparent element in the document that is tinting the background. You would needed to remove that element from the document. --------------------------------------------------------------------- To unsubscribe, e-mail: lisa23@example.net For additional commands, e-mail: lisa23@example.net From batik-users-return-7707lisa23@example.net Tue May 03 11:16:11 2005 Return-Path: <batik-users-return-7707lisa23@example.net> Delivered-To: lisa23@example.net Received: (qmail 52852 invoked from network); 3 May 2005 11:16:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 3 May 2005 11:16:11 -0000 Received: (qmail 88663 invoked by uid 500); 3 May 2005 11:17:31 -0000 Delivered-To: lisa23@example.net Received: (qmail 88623 invoked by uid 500); 3 May 2005 11:17:30 -0000 Mailing-List: contact lisa23@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:lisa23@example.net> List-Unsubscribe: <mailto:lisa23@example.net> List-Post: <mailto:lisa23@example.net> List-Id: <batik-users.xmlgraphics.apache.org> Reply-To: lisa23@example.net Delivered-To: mailing list lisa23@example.net Received: (qmail 88599 invoked by uid 99); 3 May 2005 11:17:29 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=HTML_50_60,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from wizard.online.ee (HELO wizard.online.ee) (83.161.120.155) by apache.org (qpsmtpd/0.28) with SMTP; Tue, 03 May 2005 04:17:29 -0700 Received: (qmail 18922 invoked by uid 79); 3 May 2005 14:15:44 +0300 Received: from 83.161.120.155 by wizard (envelope-from <lisa23@example.net>, uid 78) with qmail-scanner-1.24st (clamdscan: 0.81/704. spamassassin: 3.0.2. perlscan: 1.24st. Clear:RC:0(83.161.120.155):SA:0(1.1/5.0):. Processed in 0.238642 secs); 03 May 2005 14:15:44 +2000 X-Spam-Status: No, hits=1.1 required=5.0 X-Spam-Level: + Received: from unknown (HELO tanel) (83.161.120.155) by wizard.online.ee with SMTP; 3 May 2005 14:15:43 +0300 Message-ID: <002301c54fd1$737c1cc0$d691c5c3@tanel> From: "Tanel Suurhans" <lisa23@example.net> To: <lisa23@example.net> Subject: Java/Batik Transcoding problem Date: Tue, 3 May 2005 14:15:45 +0300 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0020_01C54FEA.9899B940" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1437 x-mimeole: Produced By Microsoft MimeOLE V6.00.2800.1441 X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_NextPart_000_0020_01C54FEA.9899B940 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello Im trying to load a SVG file into a Java Image object with Batik = ImageTranscoder but i cant figure out a clean and good solution. Neither have i found anything good poking around in google results. So maybe anyone has a idea or even some working code how to do this. At the moment im trying to load a SVG file using PNGTranscoder and then = transcoding it to TranscoderOutput, making it a byteArray and creating a image with it. Transcoder t =3D new PNGTranscoder(); TranscoderInput input =3D new TranscoderInput( url.toString() ); ByteArrayOutputStream ostream =3D null; ostream =3D new ByteArrayOutputStream(); TranscoderOutput output =3D new TranscoderOutput( ostream ); t.transcode( input, output ); =20 ostream.flush(); ostream.close(); byte[] imgData =3D ostream.toByteArray(); Image img =3D Toolkit.getDefaultToolkit().createImage( imgData ); Now using this code for loading 100 images, it is very slow and takes up = a lot of resources. Over 60% of the CPU power is used for the transcode() method, 40% of = which goes to ImageTranscoder.transcode() and 20% SAX parsing. This seems to be a tad bit too much. Any advice or other solutions? Tanel Suurhans ------=_NextPart_000_0020_01C54FEA.9899B940 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Diso-8859-1"> <META content=3D"MSHTML 6.00.2800.1479" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DTahoma size=3D2>Hello</FONT></DIV> <DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV> <DIV><FONT face=3DTahoma size=3D2>Im trying to load a SVG file into a = Java Image=20 object with Batik ImageTranscoder but i cant figure out a clean and good = solution.</FONT></DIV> <DIV><FONT face=3DTahoma size=3D2>Neither have i found anything good = poking around=20 in google results.</FONT></DIV> <DIV><FONT face=3DTahoma size=3D2>So maybe anyone has a idea or even = some working=20 code how to do this.</FONT></DIV> <DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV> <DIV><FONT face=3DTahoma size=3D2>At the moment im trying to load a SVG = file using=20 PNGTranscoder and then transcoding it to TranscoderOutput,</FONT></DIV> <DIV><FONT face=3DTahoma size=3D2>making it a byteArray and creating a = image with=20 it.</FONT></DIV> <DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV> <DIV><FONT face=3DTahoma size=3D2><EM>Transcoder t =3D new=20 PNGTranscoder();</EM></FONT></DIV> <DIV><FONT face=3DTahoma size=3D2><EM>TranscoderInput input =3D new = TranscoderInput(=20 url.toString() );</EM></FONT></DIV> <DIV><FONT face=3DTahoma size=3D2><EM></EM></FONT>&nbsp;</DIV> <DIV><FONT face=3DTahoma size=3D2><EM>ByteArrayOutputStream ostream =3D=20 null;</EM></FONT></DIV> <DIV><FONT face=3DTahoma size=3D2><EM></EM></FONT>&nbsp;</DIV> <DIV><FONT face=3DTahoma size=3D2><EM>ostream =3D new=20 ByteArrayOutputStream();<BR>TranscoderOutput output =3D new = TranscoderOutput(=20 ostream );</EM></FONT></DIV> <DIV><FONT face=3DTahoma size=3D2><EM></EM></FONT>&nbsp;</DIV> <DIV><FONT face=3DTahoma size=3D2><EM>t.transcode( input, output=20 );<BR>&nbsp;<BR>ostream.flush();<BR>ostream.close();</EM></FONT></DIV> <DIV><FONT face=3DTahoma size=3D2><EM></EM></FONT>&nbsp;</DIV> <DIV><FONT face=3DTahoma size=3D2><EM>byte[] imgData =3D=20 ostream.toByteArray();<BR>Image img =3D = Toolkit.getDefaultToolkit().createImage(=20 imgData );</EM></FONT></DIV> <DIV><EM><FONT face=3DTahoma size=3D2></FONT></EM>&nbsp;</DIV> <DIV><FONT face=3DTahoma size=3D2>Now using this code for loading 100 = images, it is=20 very slow and takes up a lot of resources.</FONT></DIV> <DIV><FONT face=3DTahoma size=3D2>Over 60% of the CPU power is used for = the=20 transcode() method, 40% of which goes to ImageTranscoder.transcode()=20 and</FONT></DIV> <DIV><FONT face=3DTahoma size=3D2>20% SAX parsing.</FONT></DIV> <DIV><FONT face=3DTahoma size=3D2>This seems to be a tad bit too = much.</FONT></DIV> <DIV><FONT face=3DTahoma size=3D2>Any advice or other = solutions?</FONT></DIV> <DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV> <DIV><FONT face=3DTahoma size=3D2>Tanel = Suurhans</FONT></DIV></BODY></HTML> ------=_NextPart_000_0020_01C54FEA.9899B940-- From batik-users-return-7708lisa23@example.net Tue May 03 15:45:57 2005 Return-Path: <batik-users-return-7708lisa23@example.net> Delivered-To: lisa23@example.net Received: (qmail 83611 invoked from network); 3 May 2005 15:45:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 3 May 2005 15:45:57 -0000 Received: (qmail 78049 invoked by uid 500); 3 May 2005 15:00:37 -0000 Delivered-To: lisa23@example.net Received: (qmail 77982 invoked by uid 500); 3 May 2005 15:00:35 -0000 Mailing-List: contact lisa23@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:lisa23@example.net> List-Unsubscribe: <mailto:lisa23@example.net> List-Post: <mailto:lisa23@example.net> List-Id: <batik-users.xmlgraphics.apache.org> Reply-To: lisa23@example.net Delivered-To: mailing list lisa23@example.net Received: (qmail 77878 invoked by uid 99); 3 May 2005 15:00:33 -0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=HTML_30_40,HTML_MESSAGE,MIME_HTML_ONLY,MSGID_FROM_MTA_HEADER X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of lisa23@example.net designates 83.161.120.155 as permitted sender) Received: from bay103-f23.bay103.hotmail.com (HELO hotmail.com) (83.161.120.155) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 03 May 2005 08:00:33 -0700 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Tue, 3 May 2005 07:58:54 -0700 Message-ID: <lisa23@example.net> Received: from 83.161.120.155 by by103fd.bay103.hotmail.msn.com with HTTP; Tue, 03 May 2005 14:58:54 GMT X-Originating-IP: [83.161.120.155] X-Originating-Email: [lisa23@example.net] X-Sender: lisa23@example.net In-Reply-To: <lisa23@example.net> From: "bader houmad" <lisa23@example.net> To: lisa23@example.net Bcc: Subject: problem with resizing canvas Date: Tue, 03 May 2005 16:58:54 +0200 Mime-Version: 1.0 Content-Type: text/html; charset=iso-8859-1; format=flowed X-OriginalArrivalTime: 03 May 2005 14:58:54.0529 (UTC) FILETIME=[A0040310:01C54FF0] X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N <html><div style='background-color:'><P>Hi</P> <P>In my application, i change the size of my canvas with the method setMySize(), but when i draw a shape in the canvas it is reset to its initial size. how can i avoid this problem?</P> <P>thanks in advance.</P></div><br clear=all><hr>Ne cherchez plus, trouvez ! <a href="http://g.msn.com/8HMAFRFR/2734??PS=47575" target="_top">Avec le nouveau MSN Search</a> </html> --------------------------------------------------------------------- To unsubscribe, e-mail: lisa23@example.net For additional commands, e-mail: lisa23@example.net From batik-users-return-7709lisa23@example.net Wed May 04 01:43:09 2005 Return-Path: <batik-users-return-7709lisa23@example.net> Delivered-To: lisa23@example.net Received: (qmail 33241 invoked from network); 4 May 2005 01:43:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 4 May 2005 01:43:09 -0000 Received: (qmail 83845 invoked by uid 500); 4 May 2005 01:44:56 -0000 Delivered-To: lisa23@example.net Received: (qmail 83832 invoked by uid 500); 4 May 2005 01:44:55 -0000 Mailing-List: contact lisa23@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:lisa23@example.net> List-Unsubscribe: <mailto:lisa23@example.net> List-Post: <mailto:lisa23@example.net> List-Id: <batik-users.xmlgraphics.apache.org> Reply-To: lisa23@example.net Delivered-To: mailing list lisa23@example.net Received: (qmail 83809 invoked by uid 99); 4 May 2005 01:44:55 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of lisa23@example.net designates 83.161.120.155 as permitted sender) Received: from smtp1.kodak.com (HELO smtp1.kodak.com) (83.161.120.155) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 03 May 2005 18:44:55 -0700 Received: from roc-us-e1000-110.kodak.com (roc-us-e1000-110.kodak.com [83.161.120.155]) by smtp1.kodak.com (8.11.3/8.11.1) with SMTP id j441h2A09647 for <lisa23@example.net>; Tue, 3 May 2005 21:43:02 -0400 (EDT) Received: from (83.161.120.155) by roc-us-e1000-110.kodak.com via smtp id 712b_b6bd8b98_bc3e_11d9_83b2_0002b3eef597; Tue, 03 May 2005 21:49:12 -0400 (EDT) Message-ID: <lisa23@example.net> Date: Tue, 03 May 2005 21:43:00 -0400 From: Thomas DeWeese <lisa23@example.net> Organization: Eastman Kodak Company User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: lisa23@example.net Subject: Re: problem with resizing canvas References: <lisa23@example.net> In-Reply-To: <lisa23@example.net> X-Enigmail-Version: 83.161.120.155 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi Bader, bader houmad wrote: > In my application, i change the size of my canvas with the method > setMySize(), but when i draw a shape in the canvas it is reset to its > initial size. how can i avoid this problem? What do you mean by draw a shape? add a new shape to the document? Show a new document? Also how do you set the size of the canvas? --------------------------------------------------------------------- To unsubscribe, e-mail: lisa23@example.net For additional commands, e-mail: lisa23@example.net From batik-users-return-7710lisa23@example.net Wed May 04 01:50:07 2005 Return-Path: <batik-users-return-7710lisa23@example.net> Delivered-To: lisa23@example.net Received: (qmail 34160 invoked from network); 4 May 2005 01:50:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 4 May 2005 01:50:07 -0000 Received: (qmail 91908 invoked by uid 500); 4 May 2005 01:51:52 -0000 Delivered-To: lisa23@example.net Received: (qmail 91896 invoked by uid 500); 4 May 2005 01:51:52 -0000 Mailing-List: contact lisa23@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:lisa23@example.net> List-Unsubscribe: <mailto:lisa23@example.net> List-Post: <mailto:lisa23@example.net> List-Id: <batik-users.xmlgraphics.apache.org> Reply-To: lisa23@example.net Delivered-To: mailing list lisa23@example.net Received: (qmail 91883 invoked by uid 99); 4 May 2005 01:51:52 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of lisa23@example.net designates 83.161.120.155 as permitted sender) Received: from smtp1.kodak.com (HELO smtp1.kodak.com) (83.161.120.155) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 03 May 2005 18:51:52 -0700 Received: from roc-us-e1000-110.kodak.com (roc-us-e1000-110.kodak.com [83.161.120.155]) by smtp1.kodak.com (8.11.3/8.11.1) with SMTP id j441nxA21288 for <lisa23@example.net>; Tue, 3 May 2005 21:49:59 -0400 (EDT) Received: from (83.161.120.155) by roc-us-e1000-110.kodak.com via smtp id 7021_af23e62e_bc3f_11d9_9ce3_0002b3eef597; Tue, 03 May 2005 21:56:08 -0400 (EDT) Message-ID: <lisa23@example.net> Date: Tue, 03 May 2005 21:49:56 -0400 From: Thomas DeWeese <lisa23@example.net> Organization: Eastman Kodak Company User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: lisa23@example.net Subject: Re: SVGOMFEGaussianBlurElement not animating References: <lisa23@example.net> <lisa23@example.net> <lisa23@example.net> In-Reply-To: <lisa23@example.net> X-Enigmail-Version: 83.161.120.155 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N James Shaw wrote: > Thanks Thomas, removing the filter attr then adding it again fixes > things. I'm guessing the answer will be 'no', but is there a list of > implementation progress on all the SVG DOM interfaces? The short answer is no. The longer answer is that a general purpose dependency system is one of the things I've wanted for quite a while. I've started on it a few times but it's always fallen apart. This is pretty high on my list of things to do but I don't have lots of time to work on these things lately. If anyone is interested in picking it up I'd be happy to share ideas and make suggestions... --------------------------------------------------------------------- To unsubscribe, e-mail: lisa23@example.net For additional commands, e-mail: lisa23@example.net From batik-users-return-7711lisa23@example.net Wed May 04 01:54:10 2005 Return-Path: <batik-users-return-7711lisa23@example.net> Delivered-To: lisa23@example.net Received: (qmail 34799 invoked from network); 4 May 2005 01:54:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 4 May 2005 01:54:10 -0000 Received: (qmail 97474 invoked by uid 500); 4 May 2005 01:55:55 -0000 Delivered-To: lisa23@example.net Received: (qmail 97331 invoked by uid 500); 4 May 2005 01:55:53 -0000 Mailing-List: contact lisa23@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:lisa23@example.net> List-Unsubscribe: <mailto:lisa23@example.net> List-Post: <mailto:lisa23@example.net> List-Id: <batik-users.xmlgraphics.apache.org> Reply-To: lisa23@example.net Delivered-To: mailing list lisa23@example.net Received: (qmail 97318 invoked by uid 99); 4 May 2005 01:55:53 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of lisa23@example.net designates 83.161.120.155 as permitted sender) Received: from smtp1.kodak.com (HELO smtp1.kodak.com) (83.161.120.155) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 03 May 2005 18:55:52 -0700 Received: from roc-us-e1000-110.kodak.com (roc-us-e1000-110.kodak.com [83.161.120.155]) by smtp1.kodak.com (8.11.3/8.11.1) with SMTP id j441s1A21778 for <lisa23@example.net>; Tue, 3 May 2005 21:54:01 -0400 (EDT) Received: from (83.161.120.155) by roc-us-e1000-110.kodak.com via smtp id 710c_3f389246_bc40_11d9_9ee4_0002b3eef597; Tue, 03 May 2005 22:00:10 -0400 (EDT) Message-ID: <lisa23@example.net> Date: Tue, 03 May 2005 21:53:57 -0400 From: Thomas DeWeese <lisa23@example.net> Organization: Eastman Kodak Company User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: lisa23@example.net Subject: Re: Java/Batik Transcoding problem References: <002301c54fd1$737c1cc0$d691c5c3@tanel> In-Reply-To: <002301c54fd1$737c1cc0$d691c5c3@tanel> X-Enigmail-Version: 83.161.120.155 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi Tanel, Tanel Suurhans wrote: > Im trying to load a SVG file into a Java Image object with Batik > ImageTranscoder but i cant figure out a clean and good solution. > Neither have i found anything good poking around in google results. > So maybe anyone has a idea or even some working code how to do this. > > At the moment im trying to load a SVG file using PNGTranscoder and then > transcoding it to TranscoderOutput, > making it a byteArray and creating a image with it. This is pretty ugly ;) You might look at Cameron's Icon impl: http://mcc.id.au/2005/04/SVGIcon.java Also some people use the JSVGCanvas as a factory, you construct a canvas of the proper size and grab it's offscreen buffer. I personally would probably subclass the batik.transcoder.image.ImageTranscoder so it built and drew the image but didn't save it, just made it available on a public interface. > > /Transcoder t = new PNGTranscoder();/ > /TranscoderInput input = new TranscoderInput( url.toString() );/ > // > /ByteArrayOutputStream ostream = null;/ > // > /ostream = new ByteArrayOutputStream(); > TranscoderOutput output = new TranscoderOutput( ostream );/ > // > /t.transcode( input, output ); > > ostream.flush(); > ostream.close();/ > // > /byte[] imgData = ostream.toByteArray(); > Image img = Toolkit.getDefaultToolkit().createImage( imgData );/ > / / > Now using this code for loading 100 images, it is very slow and takes up > a lot of resources. > Over 60% of the CPU power is used for the transcode() method, 40% of > which goes to ImageTranscoder.transcode() and > 20% SAX parsing. > This seems to be a tad bit too much. > Any advice or other solutions? > > Tanel Suurhans --------------------------------------------------------------------- To unsubscribe, e-mail: lisa23@example.net For additional commands, e-mail: lisa23@example.net From batik-users-return-7712lisa23@example.net Wed May 04 02:40:44 2005 Return-Path: <batik-users-return-7712lisa23@example.net> Delivered-To: lisa23@example.net Received: (qmail 43894 invoked from network); 4 May 2005 02:40:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 4 May 2005 02:40:44 -0000 Received: (qmail 62085 invoked by uid 500); 4 May 2005 02:42:30 -0000 Delivered-To: lisa23@example.net Received: (qmail 62066 invoked by uid 500); 4 May 2005 02:42:30 -0000 Mailing-List: contact lisa23@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:lisa23@example.net> List-Unsubscribe: <mailto:lisa23@example.net> List-Post: <mailto:lisa23@example.net> List-Id: <batik-users.xmlgraphics.apache.org> Reply-To: lisa23@example.net Delivered-To: mailing list lisa23@example.net Received: (qmail 62050 invoked by uid 99); 4 May 2005 02:42:30 -0000 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=FROM_ENDS_IN_NUMS,RCVD_BY_IP X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of lisa23@example.net designates 83.161.120.155 as permitted sender) Received: from rproxy.gmail.com (HELO rproxy.gmail.com) (83.161.120.155) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 03 May 2005 19:42:30 -0700 Received: by rproxy.gmail.com with SMTP id g11so173841rne for <lisa23@example.net>; Tue, 03 May 2005 19:40:38 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=ZxErm2T0ehvFZYMy6AL69SiuxNanfqmtZSP9xkB+w2QoTA+CRk6AfV2aK8I3GdmWfbZuaH5hwhzlzly4GiayVkcanKNAmEzM0VHCF7F0XigkxxXxxGFYQPWtfmH8Y/jHShljvaK7Q9p+r6912NZyDYASaelCqdvxpeH0gRnsHgA= Received: by 83.161.120.155 with SMTP id u11mr649989rna; Tue, 03 May 2005 19:40:38 -0700 (PDT) Received: by 83.161.120.155 with HTTP; Tue, 3 May 2005 19:40:36 -0700 (PDT) Message-ID: <lisa23@example.net> Date: Wed, 4 May 2005 12:40:36 +1000 From: Shayer Huda <lisa23@example.net> Reply-To: Shayer Huda <lisa23@example.net> To: lisa23@example.net Subject: How to pan a svg document using Batik Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hello All I am new user of Batik. I am not sure whether it is the right group or not to ask any batik related development. I hope you would nt mind if i am wrong. I want to pan SVG document using the BATIK APIs and functionality. Can anyone tell me how can i do that ? Any code sample will be very helpful. Kind regards --------------------------------------------------------------------- To unsubscribe, e-mail: lisa23@example.net For additional commands, e-mail: lisa23@example.net From batik-users-return-7713lisa23@example.net Wed May 04 07:59:53 2005 Return-Path: <batik-users-return-7713lisa23@example.net> Delivered-To: lisa23@example.net Received: (qmail 62864 invoked from network); 4 May 2005 07:59:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 4 May 2005 07:59:53 -0000 Received: (qmail 75360 invoked by uid 500); 4 May 2005 08:01:28 -0000 Delivered-To: lisa23@example.net Received: (qmail 75332 invoked by uid 500); 4 May 2005 08:01:28 -0000 Mailing-List: contact lisa23@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:lisa23@example.net> List-Unsubscribe: <mailto:lisa23@example.net> List-Post: <mailto:lisa23@example.net> List-Id: <batik-users.xmlgraphics.apache.org> Reply-To: lisa23@example.net Delivered-To: mailing list lisa23@example.net Received: (qmail 75315 invoked by uid 99); 4 May 2005 08:01:27 -0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=HTML_40_50,HTML_MESSAGE,MIME_HTML_ONLY,MSGID_FROM_MTA_HEADER X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of lisa23@example.net designates 83.161.120.155 as permitted sender) Received: from bay103-f6.bay103.hotmail.com (HELO hotmail.com) (83.161.120.155) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 04 May 2005 01:01:27 -0700 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 4 May 2005 00:59:47 -0700 Message-ID: <lisa23@example.net> Received: from 83.161.120.155 by by103fd.bay103.hotmail.msn.com with HTTP; Wed, 04 May 2005 07:59:47 GMT X-Originating-IP: [83.161.120.155] X-Originating-Email: [lisa23@example.net] X-Sender: lisa23@example.net In-Reply-To: <lisa23@example.net> From: "bader houmad" <lisa23@example.net> To: lisa23@example.net Bcc: Subject: Re: problem with resizing canvas Date: Wed, 04 May 2005 09:59:47 +0200 Mime-Version: 1.0 Content-Type: text/html; charset=iso-8859-1; format=flowed X-OriginalArrivalTime: 04 May 2005 07:59:47.0458 (UTC) FILETIME=[3D9B3E20:01C5507F] X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N <html><div style='background-color:'><DIV class=RTE> <P><BR><BR></P></DIV> <DIV></DIV> <DIV></DIV>&gt;bader houmad wrote: <DIV></DIV>&gt; <DIV></DIV>&gt;&gt;In my application, i change the size of my canvas with the method <DIV></DIV>&gt;&gt;setMySize(), but when i draw a shape in the canvas it is reset to <DIV></DIV>&gt;&gt;its initial size. how can i avoid this problem? <DIV></DIV>&gt; <DIV></DIV>&gt;&nbsp;&nbsp;&nbsp;&nbsp;What do you mean by draw a shape?&nbsp;&nbsp;add a new shape to the <DIV></DIV> <P>&gt;document?&nbsp;&nbsp;Show a new document? </P> <P><STRONG>I mean I&nbsp;add a new shape to the document.</STRONG> </P> <DIV></DIV> <DIV></DIV>&gt;&nbsp;&nbsp;&nbsp;&nbsp;Also how do you set the size of the canvas? <DIV></DIV> <DIV><STRONG>I set the initial size of the canvas with the metohd setMySize(), and I change it with the same method. And when i add a new shape to the document of this canvas, the canvas is reset to its initial size!</STRONG></DIV> <DIV>&nbsp;</DIV> <DIV>&nbsp;</DIV> <DIV><STRONG>thanks in advance</STRONG></DIV></div><br clear=all><hr>MSN Messenger <a href="http://g.msn.com/8HMBFRFR/2728??PS=47575" target="_top">: personnalisez votre messagerie instantanée</a> </html> --------------------------------------------------------------------- To unsubscribe, e-mail: lisa23@example.net For additional commands, e-mail: lisa23@example.net From batik-users-return-7715lisa23@example.net Wed May 04 09:51:02 2005 Return-Path: <batik-users-return-7715lisa23@example.net> Delivered-To: lisa23@example.net Received: (qmail 92661 invoked from network); 4 May 2005 09:51:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 4 May 2005 09:51:02 -0000 Received: (qmail 14631 invoked by uid 500); 4 May 2005 09:52:20 -0000 Delivered-To: lisa23@example.net Received: (qmail 14594 invoked by uid 500); 4 May 2005 09:52:19 -0000 Mailing-List: contact lisa23@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:lisa23@example.net> List-Unsubscribe: <mailto:lisa23@example.net> List-Post: <mailto:lisa23@example.net> List-Id: <batik-users.xmlgraphics.apache.org> Reply-To: lisa23@example.net Delivered-To: mailing list lisa23@example.net Received: (qmail 14557 invoked by uid 99); 4 May 2005 09:52:19 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of lisa23@example.net designates 83.161.120.155 as permitted sender) Received: from smtp1.kodak.com (HELO smtp1.kodak.com) (83.161.120.155) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 04 May 2005 02:52:19 -0700 Received: from roc-us-e1000-109.kodak.com (roc-us-e1000-109.kodak.com [83.161.120.155]) by smtp1.kodak.com (8.11.3/8.11.1) with SMTP id j449oHk14412 for <lisa23@example.net>; Wed, 4 May 2005 05:50:17 -0400 (EDT) Received: from (83.161.120.155) by roc-us-e1000-109.kodak.com via smtp id 15ac_72f4d952_bc84_11d9_86b2_0002b3eef5d5; Wed, 04 May 2005 06:08:23 -0400 (EDT) Message-ID: <lisa23@example.net> Date: Wed, 04 May 2005 05:50:16 -0400 From: Thomas DeWeese <lisa23@example.net> Organization: Eastman Kodak Company User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: lisa23@example.net Subject: Re: How to pan a svg document using Batik References: <lisa23@example.net> In-Reply-To: <lisa23@example.net> X-Enigmail-Version: 83.161.120.155 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi Shayer, Didn't I already answer this over on svg-dev? You want to adjust the rendering transform on the canvas. You might want to look at the batik.swing.JSVGScrollPane for an example of how to pan the canvas, in particular the setScrollPosition method. Shayer Huda wrote: > Hello All > > I am new user of Batik. I am not sure whether it is the right group or > not to ask any batik related development. I hope you would nt mind if > i am wrong. > > I want to pan SVG document using the BATIK APIs and functionality. Can > anyone tell me how can i do that ? Any code sample will be very > helpful. > > Kind regards > > --------------------------------------------------------------------- > To unsubscribe, e-mail: lisa23@example.net > For additional commands, e-mail: lisa23@example.net > --------------------------------------------------------------------- To unsubscribe, e-mail: lisa23@example.net For additional commands, e-mail: lisa23@example.net From batik-users-return-7714lisa23@example.net Wed May 04 09:51:02 2005 Return-Path: <batik-users-return-7714lisa23@example.net> Delivered-To: lisa23@example.net Received: (qmail 92673 invoked from network); 4 May 2005 09:51:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 4 May 2005 09:51:02 -0000 Received: (qmail 12366 invoked by uid 500); 4 May 2005 09:51:20 -0000 Delivered-To: lisa23@example.net Received: (qmail 12255 invoked by uid 500); 4 May 2005 09:51:18 -0000 Mailing-List: contact lisa23@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:lisa23@example.net> List-Unsubscribe: <mailto:lisa23@example.net> List-Post: <mailto:lisa23@example.net> List-Id: <batik-users.xmlgraphics.apache.org> Reply-To: lisa23@example.net Delivered-To: mailing list lisa23@example.net Received: (qmail 12188 invoked by uid 99); 4 May 2005 09:51:17 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of lisa23@example.net designates 83.161.120.155 as permitted sender) Received: from smtp1.kodak.com (HELO smtp1.kodak.com) (83.161.120.155) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 04 May 2005 02:51:17 -0700 Received: from roc-us-e1000-111.kodak.com (roc-us-e1000-111.kodak.com [83.161.120.155]) by smtp1.kodak.com (8.11.3/8.11.1) with SMTP id j449nAk14198 for <lisa23@example.net>; Wed, 4 May 2005 05:49:10 -0400 (EDT) Received: from (83.161.120.155) by roc-us-e1000-111.kodak.com via smtp id 40df_571e9588_bc84_11d9_9ee2_0002b3efa0be; Wed, 04 May 2005 06:07:36 -0400 (EDT) Message-ID: <lisa23@example.net> Date: Wed, 04 May 2005 05:49:09 -0400 From: Thomas DeWeese <lisa23@example.net> Organization: Eastman Kodak Company User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: lisa23@example.net Subject: Re: problem with resizing canvas References: <lisa23@example.net> In-Reply-To: <lisa23@example.net> X-Enigmail-Version: 83.161.120.155 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi Bader, bader houmad wrote: > >bader houmad wrote: > >>In my application, i change the size of my canvas with the method > >>setMySize(), but when i draw a shape in the canvas it is reset to > >>its initial size. how can i avoid this problem? > > > > What do you mean by draw a shape? add a new shape to the > >document? Show a new document? > > *I mean I add a new shape to the document.* Are you doing something like adding the shape to the document then resetting the document on the Canvas (with setSVGDocument)? > > Also how do you set the size of the canvas? > *I set the initial size of the canvas with the metohd setMySize(), and I > change it with the same method. And when i add a new shape to the > document of this canvas, the canvas is reset to its initial
{'source': 'Apache Software Foundation Public Mail Archives'}