From batikqcarrillo@example.net Sat Mar 02 04:19:46 2002 Return-Path: <batikqcarrillo@example.net> Delivered-To: qcarrillo@example.net Received: (qmail 81899 invoked by uid 500); 2 Mar 2002 04:19:46 -0000 Mailing-List: contact qcarrillo@example.net; run by ezmlm Precedence: bulk list-help: <mailto:qcarrillo@example.net> list-unsubscribe: <mailto:qcarrillo@example.net> list-post: <mailto:qcarrillo@example.net> Reply-To: "Batik Users" <qcarrillo@example.net> Delivered-To: mailing list qcarrillo@example.net Received: (qmail 81887 invoked from network); 2 Mar 2002 04:19:45 -0000 Message-ID: <qcarrillo@example.net> Date: Fri, 01 Mar 2002 22:19:55 -0600 From: Patrick Hartling <qcarrillo@example.net> User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8) Gecko/20020205 X-Accept-Language: en-us MIME-Version: 1.0 To: qcarrillo@example.net Subject: Creating PNGs without transparency Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I am trying to use the Batik rasterizer from the command line to convert SVGs to PNGs. All the generated PNGs have a transparent background. This would not be a problem except that I am trying to use the PNGs with FOP to generate PDF files, and FOP does not currently support transparency with PDFs. My confusion is arising from the difference in the PNGs generated using the SVG browser and the rasterizer. The browser always generates PNGs without transparency, and I cannot figure out how to get the rasterizer to do the same. If I run it with "-bg 83.161.120.155", the whole PNG comes out white. What am I doing wrong? -Patrick -- Patrick L. Hartling | Research Assistant, VRAC qcarrillo@example.net | 2624 Howe Hall -- 840.935.1472 http://www.137.org/patrick/ | http://www.vrac.iastate.edu/ --------------------------------------------------------------------- To unsubscribe, e-mail: qcarrillo@example.net For additional commands, e-mail: qcarrillo@example.net From batikqcarrillo@example.net Mon Mar 04 08:03:39 2002 Return-Path: <batikqcarrillo@example.net> Delivered-To: qcarrillo@example.net Received: (qmail 21876 invoked by uid 500); 4 Mar 2002 08:03:38 -0000 Mailing-List: contact qcarrillo@example.net; run by ezmlm Precedence: bulk list-help: <mailto:qcarrillo@example.net> list-unsubscribe: <mailto:qcarrillo@example.net> list-post: <mailto:qcarrillo@example.net> Reply-To: "Batik Users" <qcarrillo@example.net> Delivered-To: mailing list qcarrillo@example.net Delivered-To: moderator for qcarrillo@example.net Received: (qmail 43480 invoked from network); 3 Mar 2002 19:45:53 -0000 X-Originating-IP: [83.161.120.155] From: "classloader" <qcarrillo@example.net> To: <qcarrillo@example.net> Subject: SVG->PNG, background tranparency problem. Help please Date: Sun, 3 Mar 2002 14:45:07 -0500 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_003C_01C1C2C2.02DDAA50" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: <qcarrillo@example.net> X-OriginalArrivalTime: 03 Mar 2002 19:45:58.0466 (UTC) FILETIME=[0A577A20:01C1C2EC] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ------=_NextPart_000_003C_01C1C2C2.02DDAA50 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I know this is an old question, I did try to search the answers and = tried a lot, but I still can not figure it out. Could anyone give me a = hint? I have a very small SVG file, which has a freehand path. = [http://www.dynazone.com/SVG/svg5.svg] I did the following to produce a PNG file called svg5.png = [http://www.dynazone.com/SVG/svg5.png] java -jar batik-resterizer.jar svg5.svg But after I create the webpage with that svg5.PNG file, I put it on top = of my testing webpage, and browse it with IE 6. I found its background = is not qcarrillo@example.net.=20 [http://www.dynazone.com/SVG/movingNotTransparent.htm] I tried different approaches, but all failed: 1) java -jar batik-resterizer.jar -bg 83.161.120.155 svg5.svg --- failed 2) Change the PNGTranscoder.java, change variable "a" to 0. a is alpha = channel value. --- failed again ... ... Now matter what I have tried, the background of the generated PNG file = was either all black or all white, but never transparent.(I am new to = Image processing, maybe something above I did is not in correct way. = Correct me please. ) After some search, I found some PNG files got from somewhere else could = work very well with my test page. [http://www.dynazone.com/SVG/movingTransparent.htm] So, Can anyone give me some suggestion how I can convert my svg5.svg to = a svg5.PNG with transparent background with Batik? Thanks a lot, Leo ------=_NextPart_000_003C_01C1C2C2.02DDAA50 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.2600.0" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DArial size=3D2> <DIV><FONT face=3DArial size=3D2>I&nbsp;know this is an old question, I = did try to=20 search the answers and tried a lot, but I still can not figure it out. = Could=20 anyone give me a hint?</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV> <DIV><FONT face=3DArial size=3D2>I have a very small SVG file, which has = a freehand=20 path. [<A=20 href=3D"http://www.dynazone.com/SVG/svg5.svg">http://www.dynazone.com/SVG= /svg5.svg</A>]</FONT></DIV> <DIV><FONT face=3DArial size=3D2>I did the following to produce a PNG = file called=20 svg5.png [<A=20 href=3D"http://www.dynazone.com/SVG/svg5.png">http://www.dynazone.com/SVG= /svg5.png</A>]</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV> <DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; java -jar = batik-resterizer.jar=20 svg5.svg</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV> <DIV><FONT face=3DArial size=3D2>But after I create the webpage with = that svg5.PNG=20 file, I put it on top of my testing webpage, and browse it with IE 6. I = found=20 its background is not qcarrillo@example.net. </FONT></DIV> <DIV> <DIV><FONT face=3DArial size=3D2>[<A=20 href=3D"http://www.dynazone.com/SVG/movingNotTransparent.htm">http://www.= dynazone.com/SVG/movingNotTransparent.htm</A>]</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV> <DIV><FONT face=3DArial size=3D2>I tried different approaches, but all=20 failed:</FONT></DIV> <DIV><FONT face=3DArial size=3D2>1) java -jar batik-resterizer.jar -bg = 83.161.120.155=20 svg5.svg&nbsp; --- failed</FONT></DIV> <DIV><FONT face=3DArial size=3D2>2) Change the PNGTranscoder.java, = change variable=20 "a" to 0. a is alpha channel value. --- failed again</FONT></DIV> <DIV><FONT face=3DArial size=3D2>... ...</FONT></DIV> <DIV><FONT face=3DArial size=3D2>Now matter what I have tried, the = background of the=20 generated PNG file&nbsp;was either all black or all white, but never=20 transparent.(I am new to Image processing, maybe something above&nbsp;I=20 did&nbsp;is not in correct way. Correct me please.&nbsp;)</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV> <DIV><FONT face=3DArial size=3D2>After some search, I found some PNG = files got from=20 somewhere else could&nbsp;work very well with my test page.</FONT></DIV> <DIV><FONT face=3DArial size=3D2>[<A=20 href=3D"http://www.dynazone.com/SVG/movingTransparent.htm">http://www.dyn= azone.com/SVG/movingTransparent.htm</A>]</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV> <DIV><FONT face=3DArial size=3D2>So, Can anyone give me some suggestion = how I can=20 convert my svg5.svg to a svg5.PNG with transparent background&nbsp;with=20 Batik?</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV> <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV> <DIV><FONT face=3DArial size=3D2>Thanks a lot,</FONT></DIV> <DIV><FONT face=3DArial = size=3D2>Leo</FONT></DIV></DIV></FONT></DIV></BODY></HTML> ------=_NextPart_000_003C_01C1C2C2.02DDAA50-- From batikqcarrillo@example.net Mon Mar 04 09:03:13 2002 Return-Path: <batikqcarrillo@example.net> Delivered-To: qcarrillo@example.net Received: (qmail 52419 invoked by uid 500); 4 Mar 2002 09:03:13 -0000 Mailing-List: contact qcarrillo@example.net; run by ezmlm Precedence: bulk list-help: <mailto:qcarrillo@example.net> list-unsubscribe: <mailto:qcarrillo@example.net> list-post: <mailto:qcarrillo@example.net> Reply-To: "Batik Users" <qcarrillo@example.net> Delivered-To: mailing list qcarrillo@example.net Received: (qmail 52408 invoked from network); 4 Mar 2002 09:03:12 -0000 Message-ID: <qcarrillo@example.net> Date: Mon, 04 Mar 2002 09:58:59 +0100 From: Vincent Hardy <qcarrillo@example.net> X-Mailer: Mozilla 4.78 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: Batik Users <qcarrillo@example.net> Subject: Re: SVG->PNG, background tranparency problem. Help please References: <qcarrillo@example.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Leo, We have had a number of issues in the past with our PNG encoding and what popular browsers support, but I just checked a reference image for our test suite (which uses transparent background), and it displays with a transparent background in several tools. Since the reference image I checked since 1.1.1, I suspect you are using an older version of Batik (pre-1.1rc3). Vincent. > classloader wrote: > > I know this is an old question, I did try to search the answers and > tried a lot, but I still can not figure it out. Could anyone give me a > hint? > > I have a very small SVG file, which has a freehand path. > [http://www.dynazone.com/SVG/svg5.svg] > I did the following to produce a PNG file called svg5.png > [http://www.dynazone.com/SVG/svg5.png] > > java -jar batik-resterizer.jar svg5.svg > > But after I create the webpage with that svg5.PNG file, I put it on > top of my testing webpage, and browse it with IE 6. I found its > background is not qcarrillo@example.net. > [http://www.dynazone.com/SVG/movingNotTransparent.htm] > > I tried different approaches, but all failed: > 1) java -jar batik-resterizer.jar -bg 83.161.120.155 svg5.svg --- failed > 2) Change the PNGTranscoder.java, change variable "a" to 0. a is alpha > channel value. --- failed again > ... ... > Now matter what I have tried, the background of the generated PNG > file was either all black or all white, but never transparent.(I am > new to Image processing, maybe something above I did is not in correct > way. Correct me please. ) > > After some search, I found some PNG files got from somewhere else > could work very well with my test page. > [http://www.dynazone.com/SVG/movingTransparent.htm] > > So, Can anyone give me some suggestion how I can convert my svg5.svg > to a svg5.PNG with transparent background with Batik? > > > Thanks a lot, > Leo --------------------------------------------------------------------- To unsubscribe, e-mail: qcarrillo@example.net For additional commands, e-mail: qcarrillo@example.net From batikqcarrillo@example.net Mon Mar 04 14:31:39 2002 Return-Path: <batikqcarrillo@example.net> Delivered-To: qcarrillo@example.net Received: (qmail 28675 invoked by uid 500); 4 Mar 2002 14:31:39 -0000 Mailing-List: contact qcarrillo@example.net; run by ezmlm Precedence: bulk list-help: <mailto:qcarrillo@example.net> list-unsubscribe: <mailto:qcarrillo@example.net> list-post: <mailto:qcarrillo@example.net> Reply-To: "Batik Users" <qcarrillo@example.net> Delivered-To: mailing list qcarrillo@example.net Received: (qmail 28524 invoked from network); 4 Mar 2002 14:31:38 -0000 From: "Ramakrishnan.G" <qcarrillo@example.net> To: <qcarrillo@example.net> Subject: Batik problem in multithreaded application Date: Mon, 4 Mar 2002 19:56:11 +0530 Message-ID: <qcarrillo@example.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hai, I am using batik and fop for Pdf generation. Everything runs fine for single thread. When i start multithread the following error occurs. ERROR 10152 [fop ] (): Could not load external SVG: Stream closed ERROR 10152 [fop ] (): Could not load external SVG: The markup in the document preceding the root element must be well-formed. ERROR 10152 [fop ] (): Could not load external SVG: Stream closed ERROR 10152 [fop ] (): Could not load external SVG: The markup in the document preceding the root element must be well-formed. ERROR 10152 [fop ] (): Could not load external SVG: Stream closed ERROR 10152 [fop ] (): Could not load external SVG: Stream closed ERROR 10152 [Fop ] (): Error while creating area : No ImageReader for this type of image (file:d:/truecredit/TRL-RGS/images/logo.gif) ERROR 10152 [Fop ] (): Error while creating area : No ImageReader for this type of image (file:d:/truecredit/TRL-RGS/images/logo.gif) Can anyone please tell me how to solve this. Thanks and Regards Ramakrishnan.G --------------------------------------------------------------------- To unsubscribe, e-mail: qcarrillo@example.net For additional commands, e-mail: qcarrillo@example.net From batikqcarrillo@example.net Mon Mar 04 15:58:29 2002 Return-Path: <batikqcarrillo@example.net> Delivered-To: qcarrillo@example.net Received: (qmail 94528 invoked by uid 500); 4 Mar 2002 15:58:29 -0000 Mailing-List: contact qcarrillo@example.net; run by ezmlm Precedence: bulk list-help: <mailto:qcarrillo@example.net> list-unsubscribe: <mailto:qcarrillo@example.net> list-post: <mailto:qcarrillo@example.net> Reply-To: "Batik Users" <qcarrillo@example.net> Delivered-To: mailing list qcarrillo@example.net Received: (qmail 94515 invoked from network); 4 Mar 2002 15:58:29 -0000 Message-ID: <qcarrillo@example.net> Date: Mon, 04 Mar 2002 16:54:31 +0100 From: Vincent Hardy <qcarrillo@example.net> X-Mailer: Mozilla 4.78 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: Batik Users <qcarrillo@example.net> Subject: Re: Batik problem in multithreaded application References: <qcarrillo@example.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Ramakrishnan, Could you give some more details about how you are trying to multi-thread your application? Which objects are you using from different threads? Vincent. "Ramakrishnan.G" wrote: > > Hai, > > I am using batik and fop for Pdf generation. > Everything runs fine for single thread. > When i start multithread the following error occurs. > > ERROR 10152 [fop ] (): Could not load external SVG: Stream closed > ERROR 10152 [fop ] (): Could not load external SVG: The markup in > the document preceding the root element must be well-formed. > ERROR 10152 [fop ] (): Could not load external SVG: Stream closed > ERROR 10152 [fop ] (): Could not load external SVG: The markup in > the document preceding the root element must be well-formed. > ERROR 10152 [fop ] (): Could not load external SVG: Stream closed > ERROR 10152 [fop ] (): Could not load external SVG: Stream closed > ERROR 10152 [Fop ] (): Error while creating area : No ImageReader > for this type of image (file:d:/truecredit/TRL-RGS/images/logo.gif) > ERROR 10152 [Fop ] (): Error while creating area : No ImageReader > for this type of image (file:d:/truecredit/TRL-RGS/images/logo.gif) > > Can anyone please tell me how to solve this. > > Thanks and Regards > > Ramakrishnan.G > > --------------------------------------------------------------------- > To unsubscribe, e-mail: qcarrillo@example.net > For additional commands, e-mail: qcarrillo@example.net --------------------------------------------------------------------- To unsubscribe, e-mail: qcarrillo@example.net For additional commands, e-mail: qcarrillo@example.net From batikqcarrillo@example.net Mon Mar 04 20:59:06 2002 Return-Path: <batikqcarrillo@example.net> Delivered-To: qcarrillo@example.net Received: (qmail 35153 invoked by uid 500); 4 Mar 2002 20:59:06 -0000 Mailing-List: contact qcarrillo@example.net; run by ezmlm Precedence: bulk list-help: <mailto:qcarrillo@example.net> list-unsubscribe: <mailto:qcarrillo@example.net> list-post: <mailto:qcarrillo@example.net> Reply-To: "Batik Users" <qcarrillo@example.net> Delivered-To: mailing list qcarrillo@example.net Received: (qmail 35141 invoked from network); 4 Mar 2002 20:59:05 -0000 X-Originating-IP: [83.161.120.155] From: "classloader" <qcarrillo@example.net> To: <qcarrillo@example.net> Subject: Re: SVG->PNG, background tranparency problem. Help please Date: Mon, 4 Mar 2002 15:58:17 -0500 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0063_01C1C395.664ED3B0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: <qcarrillo@example.net> X-OriginalArrivalTime: 04 Mar 2002 20:59:11.0456 (UTC) FILETIME=[6F2E4E00:01C1C3BF] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ------=_NextPart_000_0063_01C1C395.664ED3B0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable Hi, Vincent, I did use the latest version of Batik 1.1.1 Actually, my SVG file is very very small, I was wondering if I should = specify something in SVG file or not (before the conversion) ? Have been working on that for 3 days, always got white background, black = one or other colors.(no matter how I change the option, or the source = code. ) Anyone has similar expeirence? Thanks a lot, Leo Here is my SVG file content, anything wrong with it? ------------- <svg> <path d=3D" M 3 17 L 4 17 6 17 8 17 10 17 13 17 16 17=20 19 18 21 18 25 18 26 18 28 18 29 18 31 19 32 19 33 19=20 34 19 35 19 36 19 37 19 38 19 40 19 41 19 42 19 43 19=20 44 19 44 18 45 18 46 17 47 16 47 15 47 14 48 13 48 12=20 48 11 48 10 48 9 48 8 48 7 48 6 47 6 47 5 47 4 46 4 46=20 3 45 3 44 3 43 3 42 3 41 3 40 3 39 3 38 3 37 3 37 4 36=20 4 36 5 35 5 35 6 34 6 34 7 34 8 34 9 34 10 34 11 34 12=20 34 13 34 14 34 15 34 16 34 17 34 18 34 19 34 20 34 21=20 34 22 34 23 34 24 34 25 34 26 34 27 34 28 34 29 34 30=20 33 31 33 32 32 32 32 33 31 33 30 33 29 33 28 33 28 32=20 27 32 26 31 25 31 25 30 24 30 23 30 23 29 22 28 22 27=20 22 26 23 26 25 25 26 25 27 25 28 25 29 25 30 25 31 25=20 32 26 33 27 34 27 35 27 36 28 37 29 38 29 39 29 39 30=20 40 31 40 32 41 32 41 33 41 34 41 35 41 36 41 37 41 38=20 41 39 40 39 40 40 39 40 38 41 37 41 36 41 35 41 34 41=20 33 41 32 41 32 42 31 42 30 42 29 42 28 43 27 43 26 43=20 25 43 24 43 24 44 23 44 22 44 21 44 20 44 20 45 19 45=20 18 45 17 45 15 45 14 45 12 45 10 45 9 45 8 45 "=20 style=3D"fill:none;=20 fill-opacity:1;=20 stroke:#ff0000;=20 stroke-width:3" /> </svg> ------------- ------=_NextPart_000_0063_01C1C395.664ED3B0 Content-Type: text/html; charset="gb2312" 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=3Dgb2312"> <META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DArial size=3D2>Hi, Vincent,</FONT></DIV> <DIV><FONT face=3DArial size=3D2>I did use the latest version of Batik=20 1.1.1</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV> <DIV><FONT face=3DArial size=3D2>Actually, my SVG file is very very = small, I was=20 wondering if I should specify something in SVG file or not (before the=20 conversion) ?</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV> <DIV><FONT face=3DArial size=3D2>Have been working on that for 3 days, = always got=20 white background, black one or other colors.(no matter how I change the=20 option,&nbsp;&nbsp; or the source code. ) Anyone has similar=20 expeirence?</FONT></DIV> <DIV><FONT face=3DArial size=3D2>Thanks a lot,</FONT></DIV> <DIV><FONT face=3DArial size=3D2>Leo</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV> <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV> <DIV><FONT face=3DArial size=3D2>Here is my SVG file content, anything = wrong with=20 it?</FONT></DIV> <DIV><FONT face=3DArial size=3D2>-------------</FONT></DIV> <DIV><FONT face=3DArial size=3D2>&lt;svg&gt;<BR>&lt;path d=3D" M 3 17 L = 4 17 6 17 8 17=20 10 17 13 17 16 17 <BR>19 18 21 18 25 18 26 18 28 18 29 18 31 19 32 19 33 = 19=20 <BR>34 19 35 19 36 19 37 19 38 19 40 19 41 19 42 19 43 19 <BR>44 19 44 = 18 45 18=20 46 17 47 16 47 15 47 14 48 13 48 12 <BR>48 11 48 10 48 9 48 8 48 7 48 6 = 47 6 47=20 5 47 4 46 4 46 <BR>3 45 3 44 3 43 3 42 3 41 3 40 3 39 3 38 3 37 3 37 4 = 36 <BR>4=20 36 5 35 5 35 6 34 6 34 7 34 8 34 9 34 10 34 11 34 12 <BR>840.935.1472 = 15 34 16=20 34 17 34 18 34 19 34 20 34 21 <BR>34 22 34 23 34 24 34 25 34 26 34 27 34 = 28 34=20 29 34 30 <BR>33 31 33 32 32 32 32 33 31 33 30 33 29 33 28 33 28 32 = <BR>27 32 26=20 31 25 31 25 30 24 30 23 30 23 29 22 28 22 27 <BR>22 26 23 26 25 25 26 25 = 27 25=20 28 25 29 25 30 25 31 25 <BR>32 26 33 27 34 27 35 27 36 28 37 29 38 29 39 = 29 39=20 30 <BR>40 31 40 32 41 32 41 33 41 34 41 35 41 36 41 37 41 38 <BR>41 39 = 40 39 40=20 40 39 40 38 41 37 41 36 41 35 41 34 41 <BR>33 41 32 41 32 42 31 42 30 42 = 29 42=20 28 43 27 43 26 43 <BR>25 43 24 43 24 44 23 44 22 44 21 44 20 44 20 45 19 = 45=20 <BR>18 45 17 45 15 45 14 45 12 45 10 45 9 45 8 45 " = <BR>style=3D"fill:none;=20 <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fill-opacity:1;=20 <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; stroke:#ff0000;=20 <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; stroke-width:3"=20 /&gt;<BR>&lt;/svg&gt;</FONT></DIV> <DIV><FONT face=3DArial = size=3D2>-------------</FONT></DIV></BODY></HTML> ------=_NextPart_000_0063_01C1C395.664ED3B0-- From batikqcarrillo@example.net Mon Mar 04 22:41:20 2002 Return-Path: <batikqcarrillo@example.net> Delivered-To: qcarrillo@example.net Received: (qmail 99155 invoked by uid 500); 4 Mar 2002 22:41:18 -0000 Mailing-List: contact qcarrillo@example.net; run by ezmlm Precedence: bulk list-help: <mailto:qcarrillo@example.net> list-unsubscribe: <mailto:qcarrillo@example.net> list-post: <mailto:qcarrillo@example.net> Reply-To: "Batik Users" <qcarrillo@example.net> Delivered-To: mailing list qcarrillo@example.net Received: (qmail 99136 invoked from network); 4 Mar 2002 22:41:18 -0000 X-Authentication-Warning: fenwick.image.kodak.com: deweese set sender to qcarrillo@example.net using -f From: Thomas E Deweese <qcarrillo@example.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <qcarrillo@example.net> Date: Mon, 4 Mar 2002 17:41:22 -0500 To: Batik Users <qcarrillo@example.net> Subject: Re: SVG->PNG, background tranparency problem. Help please In-Reply-To: <qcarrillo@example.net> References: <qcarrillo@example.net> X-Mailer: VM 6.95 under Emacs 20.5.1 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N >>>>> "c" == classloader <qcarrillo@example.net> writes: c> Hi, Vincent, I did use the latest version of Batik 1.1.1 c> Actually, my SVG file is very very small, I was wondering if I c> should specify something in SVG file or not (before the conversion) c> ? c> Have been working on that for 3 days, always got white background, c> black one or other colors.(no matter how I change the option, or c> the source code. ) Anyone has similar expeirence? Thanks a lot, c> Leo What version of the JRE are you using. We just had a bug reported for JRE 1.4 which sounds like your problem. --------------------------------------------------------------------- To unsubscribe, e-mail: qcarrillo@example.net For additional commands, e-mail: qcarrillo@example.net From batikqcarrillo@example.net Mon Mar 04 22:47:48 2002 Return-Path: <batikqcarrillo@example.net> Delivered-To: qcarrillo@example.net Received: (qmail 2674 invoked by uid 500); 4 Mar 2002 22:47:47 -0000 Mailing-List: contact qcarrillo@example.net; run by ezmlm Precedence: bulk list-help: <mailto:qcarrillo@example.net> list-unsubscribe: <mailto:qcarrillo@example.net> list-post: <mailto:qcarrillo@example.net> Reply-To: "Batik Users" <qcarrillo@example.net> Delivered-To: mailing list qcarrillo@example.net Received: (qmail 2658 invoked from network); 4 Mar 2002 22:47:46 -0000 From: qcarrillo@example.net Importance: Normal Subject: ttf2svg problem To: qcarrillo@example.net X-Mailer: Lotus Notes Release 5.0.5 September 22, 2000 Message-ID: <qcarrillo@example.net> Date: Mon, 4 Mar 2002 17:47:49 -0500 X-MIMETrack: Serialize by Router on D25ML06/25/M/IBM(Release 5.0.8 |June 18, 2001) at 03/04/2002 05:47:49 PM MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi, I'm struggling to convert one character from a given TTF (arial in this case) file into SVG. The character gets converted, but when I open the SVG using IE5.5 or even the Batik browser, I see nothing. The command I have used is: java -jar batik-ttf2svg.jar C:\WINNT\Fonts\arial.ttf -l 48 -h 49 -id MySVGFont -o mySVGFont.svg The resulted SVG file is pretty big (42k). It has got tons of tags similar to this : <hkern g1="space" g2="Delta" k="-113" /> I would have expected something a lot smaller. Any help is appreciated. --------------------------------------------------------------------- To unsubscribe, e-mail: qcarrillo@example.net For additional commands, e-mail: qcarrillo@example.net From batikqcarrillo@example.net Mon Mar 04 23:41:32 2002 Return-Path: <batikqcarrillo@example.net> Delivered-To: qcarrillo@example.net Received: (qmail 24264 invoked by uid 500); 4 Mar 2002 23:41:31 -0000 Mailing-List: contact qcarrillo@example.net; run by ezmlm Precedence: bulk list-help: <mailto:qcarrillo@example.net> list-unsubscribe: <mailto:qcarrillo@example.net> list-post: <mailto:qcarrillo@example.net> Reply-To: "Batik Users" <qcarrillo@example.net> Delivered-To: mailing list qcarrillo@example.net Received: (qmail 24252 invoked from network); 4 Mar 2002 23:41:30 -0000 Reply-To: <qcarrillo@example.net> From: "Tangent" <qcarrillo@example.net> To: "'Batik Users'" <qcarrillo@example.net> Subject: Batik Implementation in C# Date: Mon, 4 Mar 2002 17:40:34 -0600 Message-ID: <000a01c1c3d5$fa92a750$19968ece@tangent> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_000B_01C1C3A3.AFF83750" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.3416 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 In-Reply-To: <qcarrillo@example.net> Importance: Normal X-OriginalArrivalTime: 01 Mar 2002 23:33:25.0343 (UTC) FILETIME=[7BB026F0:01C1C179] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ------=_NextPart_000_000B_01C1C3A3.AFF83750 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi, I just wonder if any group or people working on or planning on implementing Batik in C# or .Net platform. Thanks! - Tangent ------=_NextPart_000_000B_01C1C3A3.AFF83750 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; = charset=3Dus-ascii"> <TITLE>Message</TITLE> <META content=3D"MSHTML 6.00.2713.1100" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><SPAN class=3D018343923-04032002><FONT face=3DArial color=3D#0000ff = size=3D2>Hi,</FONT></SPAN></DIV> <DIV><SPAN class=3D018343923-04032002><FONT face=3DArial color=3D#0000ff = size=3D2></FONT></SPAN>&nbsp;</DIV> <DIV><SPAN class=3D018343923-04032002><FONT face=3DArial color=3D#0000ff = size=3D2>I just=20 wonder if any group or people working on or planning on implementing = Batik in C#=20 or .Net platform.</FONT></SPAN></DIV> <DIV><SPAN class=3D018343923-04032002><FONT face=3DArial color=3D#0000ff = size=3D2></FONT></SPAN>&nbsp;</DIV> <DIV><SPAN class=3D018343923-04032002><FONT face=3DArial color=3D#0000ff = size=3D2>Thanks!</FONT></SPAN></DIV> <DIV><SPAN class=3D018343923-04032002><FONT face=3DArial color=3D#0000ff = size=3D2></FONT></SPAN>&nbsp;</DIV> <DIV><SPAN class=3D018343923-04032002><FONT face=3DArial color=3D#0000ff = size=3D2>-=20 Tangent</FONT></SPAN></DIV></BODY></HTML> ------=_NextPart_000_000B_01C1C3A3.AFF83750-- From batikqcarrillo@example.net Mon Mar 04 23:41:32 2002 Return-Path: <batikqcarrillo@example.net> Delivered-To: qcarrillo@example.net Received: (qmail 24459 invoked by uid 500); 4 Mar 2002 23:41:32 -0000 Mailing-List: contact qcarrillo@example.net; run by ezmlm Precedence: bulk list-help: <mailto:qcarrillo@example.net> list-unsubscribe: <mailto:qcarrillo@example.net> list-post: <mailto:qcarrillo@example.net> Reply-To: "Batik Users" <qcarrillo@example.net> Delivered-To: mailing list qcarrillo@example.net Received: (qmail 24265 invoked from network); 4 Mar 2002 23:41:31 -0000 Reply-To: <qcarrillo@example.net> From: "Tangent" <qcarrillo@example.net> To: "'Batik Users'" <qcarrillo@example.net> Subject: RE: SVG->PNG, background tranparency problem. Help please Date: Mon, 4 Mar 2002 17:40:34 -0600 Message-ID: <000f01c1c3d5$fac68890$19968ece@tangent> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0010_01C1C3A3.B02C1890" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.3416 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 In-Reply-To: <qcarrillo@example.net> Importance: Normal X-OriginalArrivalTime: 01 Mar 2002 23:33:25.0625 (UTC) FILETIME=[7BDB2E90:01C1C179] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ------=_NextPart_000_0010_01C1C3A3.B02C1890 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit I have the similar problem using JRE 1.4. I have server status code as 405 when rasterizer attempts locate jpeg or gif images referenced by the SVG file as well. - Tangent -----Original Message----- From: classloader [mailto:qcarrillo@example.net] Sent: Monday, March 04, 2002 2:58 PM To: qcarrillo@example.net Subject: Re: SVG->PNG, background tranparency problem. Help please Hi, Vincent, I did use the latest version of Batik 1.1.1 Actually, my SVG file is very very small, I was wondering if I should specify something in SVG file or not (before the conversion) ? Have been working on that for 3 days, always got white background, black one or other colors.(no matter how I change the option, or the source code. ) Anyone has similar expeirence? Thanks a lot, Leo Here is my SVG file content, anything wrong with it? ------------- <svg> <path d=" M 3 17 L 4 17 6 17 8 17 10 17 13 17 16 17 19 18 21 18 25 18 26 18 28 18 29 18 31 19 32 19 33 19 34 19 35 19 36 19 37 19 38 19 40 19 41 19 42 19 43 19 44 19 44 18 45 18 46 17 47 16 47 15 47 14 48 13 48 12 48 11 48 10 48 9 48 8 48 7 48 6 47 6 47 5 47 4 46 4 46 3 45 3 44 3 43 3 42 3 41 3 40 3 39 3 38 3 37 3 37 4 36 4 36 5 35 5 35 6 34 6 34 7 34 8 34 9 34 10 34 11 34 12 34 13 34 14 34 15 34 16 34 17 34 18 34 19 34 20 34 21 34 22 34 23 34 24 34 25 34 26 34 27 34 28 34 29 34 30 33 31 33 32 32 32 32 33 31 33 30 33 29 33 28 33 28 32 27 32 26 31 25 31 25 30 24 30 23 30 23 29 22 28 22 27 22 26 23 26 25 25 26 25 27 25 28 25 29 25 30 25 31 25 32 26 33 27 34 27 35 27 36 28 37 29 38 29 39 29 39 30 40 31 40 32 41 32 41 33 41 34 41 35 41 36 41 37 41 38 41 39 40 39 40 40 39 40 38 41 37 41 36 41 35 41 34 41 33 41 32 41 32 42 31 42 30 42 29 42 28 43 27 43 26 43 25 43 24 43 24 44 23 44 22 44 21 44 20 44 20 45 19 45 18 45 17 45 15 45 14 45 12 45 10 45 9 45 8 45 " style="fill:none; fill-opacity:1; stroke:#ff0000; stroke-width:3" /> </svg> ------------- ------=_NextPart_000_0010_01C1C3A3.B02C1890 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; = charset=3Dus-ascii"> <TITLE>Message</TITLE> <META content=3D"MSHTML 6.00.2713.1100" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><SPAN class=3D211073623-04032002><FONT face=3DArial color=3D#0000ff = size=3D2>I have=20 the similar problem using JRE 1.4.&nbsp; I have server status code as = 405 when=20 rasterizer attempts locate jpeg or gif images referenced by the SVG file = as=20 well.</FONT></SPAN></DIV> <DIV><SPAN class=3D211073623-04032002><FONT face=3DArial color=3D#0000ff = size=3D2></FONT></SPAN>&nbsp;</DIV> <DIV><SPAN class=3D211073623-04032002><FONT face=3DArial color=3D#0000ff = size=3D2>-=20 Tangent</FONT></SPAN></DIV> <DIV><SPAN class=3D211073623-04032002><FONT face=3DArial color=3D#0000ff = size=3D2></FONT></SPAN>&nbsp;</DIV> <BLOCKQUOTE dir=3Dltr=20 style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px = solid; MARGIN-RIGHT: 0px"> <DIV></DIV> <DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr = align=3Dleft><FONT=20 face=3DTahoma size=3D2>-----Original Message-----<BR><B>From:</B> = classloader=20 [mailto:qcarrillo@example.net] <BR><B>Sent:</B> Monday, March 04, = 2002 2:58=20 PM<BR><B>To:</B> qcarrillo@example.net<BR><B>Subject:</B> Re:=20 SVG-&gt;PNG, background tranparency problem. Help = please<BR><BR></FONT></DIV> <DIV><FONT face=3DArial size=3D2>Hi, Vincent,</FONT></DIV> <DIV><FONT face=3DArial size=3D2>I did use the latest version of Batik = 1.1.1</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV> <DIV><FONT face=3DArial size=3D2>Actually, my SVG file is very very = small, I was=20 wondering if I should specify something in SVG file or not (before the = conversion) ?</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV> <DIV><FONT face=3DArial size=3D2>Have been working on that for 3 days, = always got=20 white background, black one or other colors.(no matter how I change = the=20 option,&nbsp;&nbsp; or the source code. ) Anyone has similar=20 expeirence?</FONT></DIV> <DIV><FONT face=3DArial size=3D2>Thanks a lot,</FONT></DIV> <DIV><FONT face=3DArial size=3D2>Leo</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV> <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV> <DIV><FONT face=3DArial size=3D2>Here is my SVG file content, anything = wrong with=20 it?</FONT></DIV> <DIV><FONT face=3DArial size=3D2>-------------</FONT></DIV> <DIV><FONT face=3DArial size=3D2>&lt;svg&gt;<BR>&lt;path d=3D" M 3 17 = L 4 17 6 17 8=20 17 10 17 13 17 16 17 <BR>19 18 21 18 25 18 26 18 28 18 29 18 31 19 32 = 19 33 19=20 <BR>34 19 35 19 36 19 37 19 38 19 40 19 41 19 42 19 43 19 <BR>44 19 44 = 18 45=20 18 46 17 47 16 47 15 47 14 48 13 48 12 <BR>48 11 48 10 48 9 48 8 48 7 = 48 6 47=20 6 47 5 47 4 46 4 46 <BR>3 45 3 44 3 43 3 42 3 41 3 40 3 39 3 38 3 37 3 = 37 4 36=20 <BR>4 36 5 35 5 35 6 34 6 34 7 34 8 34 9 34 10 34 11 34 12 <BR>34 13 = 34 14 34=20 15 34 16 34 17 34 18 34 19 34 20 34 21 <BR>34 22 34 23 34 24 34 25 34 = 26 34 27=20 34 28 34 29 34 30 <BR>33 31 33 32 32 32 32 33 31 33 30 33 29 33 28 33 = 28 32=20 <BR>27 32 26 31 25 31 25 30 24 30 23 30 23 29 22 28 22 27 <BR>22 26 23 = 26 25=20 25 26 25 27 25 28 25 29 25 30 25 31 25 <BR>32 26 33 27 34 27 35 27 36 = 28 37 29=20 38 29 39 29 39 30 <BR>40 31 40 32 41 32 41 33 41 34 41 35 41 36 41 37 = 41 38=20 <BR>41 39 40 39 40 40 39 40 38 41 37 41 36 41 35 41 34 41 <BR>33 41 32 = 41 32=20 42 31 42 30 42 29 42 28 43 27 43 26 43 <BR>25 43 24 43 24 44 23 44 22 = 44 21 44=20 20 44 20 45 19 45 <BR>18 45 17 45 15 45 14 45 12 45 10 45 9 45 8 45 "=20 <BR>style=3D"fill:none; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = fill-opacity:1;=20 <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; stroke:#ff0000;=20 <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; stroke-width:3"=20 /&gt;<BR>&lt;/svg&gt;</FONT></DIV> <DIV><FONT face=3DArial=20 size=3D2>-------------</FONT></DIV></BLOCKQUOTE></BODY></HTML> ------=_NextPart_000_0010_01C1C3A3.B02C1890-- From batikqcarrillo@example.net Tue Mar 05 00:07:15 2002 Return-Path: <batikqcarrillo@example.net> Delivered-To: qcarrillo@example.net Received: (qmail 38498 invoked by uid 500); 5 Mar 2002 00:07:15 -0000 Mailing-List: contact qcarrillo@example.net; run by ezmlm Precedence: bulk list-help: <mailto:qcarrillo@example.net> list-unsubscribe: <mailto:qcarrillo@example.net> list-post: <mailto:qcarrillo@example.net> Reply-To: "Batik Users" <qcarrillo@example.net> Delivered-To: mailing list qcarrillo@example.net Received: (qmail 38428 invoked from network); 5 Mar 2002 00:07:14 -0000 Date: Tue, 5 Mar 2002 01:06:58 +0100 From: Chris Lilley <qcarrillo@example.net> X-Mailer: The Bat! (v1.53d) Personal Reply-To: Chris Lilley <qcarrillo@example.net> Organization: W3C X-Priority: 3 (Normal) Message-ID: <{{EMAIL+PHONE}}> To: qcarrillo@example.net CC: qcarrillo@example.net Subject: Re: ttf2svg problem In-Reply-To: <qcarrillo@example.net> References: <qcarrillo@example.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Monday, March 04, 2002, 11:47:49 PM, lbenedek wrote: lcic> Hi, lcic> I'm struggling to convert one character from a given TTF (arial in this lcic> case) file into SVG. lcic> The character gets converted, but when I open the SVG using IE5.5 or even lcic> the Batik browser, I see nothing. lcic> The command I have used is: lcic> java -jar batik-ttf2svg.jar C:\WINNT\Fonts\arial.ttf -l 48 -h 49 -id lcic> MySVGFont -o mySVGFont.svg You need a -testcard if you want to see something, otherwise it makes the font, for use by other files or for inclusion in another file, but there is nothing to see. lcic> The resulted SVG file is pretty big (42k). It has got tons of tags similar lcic> to this : lcic> <hkern g1="space" g2="Delta" k="-113" /> lcic> I would have expected something a lot smaller. How many glyph elements does it have? I'm guessing two. Sounds like the -l and -h ranges result in subsetting of the glyphs but do not trigger subsetting of kern pairs. Adding that to the code should not be especially hard. Meanwhile, you can strip out most of the kern pairs - in fact, if you only want one glyph, you don't need any kern qcarrillo@example.net. -- Chris mailto:qcarrillo@example.net --------------------------------------------------------------------- To unsubscribe, e-mail: qcarrillo@example.net For additional commands, e-mail: qcarrillo@example.net From batikqcarrillo@example.net Tue Mar 05 00:12:14 2002 Return-Path: <batikqcarrillo@example.net> Delivered-To: qcarrillo@example.net Received: (qmail 41389 invoked by uid 500); 5 Mar 2002 00:12:14 -0000 Mailing-List: contact qcarrillo@example.net; run by ezmlm Precedence: bulk list-help: <mailto:qcarrillo@example.net> list-unsubscribe: <mailto:qcarrillo@example.net> list-post: <mailto:qcarrillo@example.net> Reply-To: "Batik Users" <qcarrillo@example.net> Delivered-To: mailing list qcarrillo@example.net Received: (qmail 41378 invoked from network); 5 Mar 2002 00:12:14 -0000 X-Originating-IP: [83.161.120.155] From: "classloader" <qcarrillo@example.net> To: "Batik Users" <qcarrillo@example.net> References: <qcarrillo@example.net> <qcarrillo@example.net> Subject: Re: SVG->PNG, background tranparency problem. Help please Date: Mon, 4 Mar 2002 19:11:23 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: <qcarrillo@example.net> X-OriginalArrivalTime: 05 Mar 2002 00:12:18.0694 (UTC) FILETIME=[69B68260:01C1C3DA] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi, Thomas, Thank you very much for the email. [I tried both JDK1.3 and JDK1.4, they give me same result. I know Batik use JDK's classes like java.awt.Image, etc. so I installed different JDK version on different machine. I guess this issue is not problem of JDK. Correct me if I was wrong.] Situation changed, here is the story: I just figure out something, but I still have problem and I hope I can get help from you. :-) I spend many days on using Batik to do the SVG-> PNG conversion, trying to get the transparent background, but the PNG I got was with white background(or Black). (I should say: "I always see the white background from IE6."), please take a look at: http://www.dynazone.com/SVG/movingNotTransparent.htm I tried all kinds of approaches: change options, rewriting the Java source code. No one works. This afternoon, one friend gave me a hand, he used PhotoShop open that PNG file which generated by Batik: It is with transparent ground. (Wow, eventually I confirmed that it is the correct PNG file, although it can not display correctly in IE.) After some comparison, we found the we can see the transparent background if we use Photoshop change the image properties from 32Bit true color to 256 color(8bit). Please go to: http://www.dynazone.com/SVG/movingTransparent.htm (the PNG file in this page is different from the one in above link. this one PNG is changed by Photoshop from the PNG in above link.) So the difference tells me: if the PNG is 32Bit(ARGB each 8bits) format, IE will have trouble to view its transparent background. if PNG is with poorer depth, IE can treat it correctly. So it's IE's problem. ( I am using IE6. ) ==> New Problem, please help: So, my next approach would be trying to use Batik to convert SVG->PNG and specifying output file with 8 bits depth. I can't find the options from the Batik Usage which can do that. Then I added one line in PNGTranscoder.java: "params.setBitDepth(8);" but the generated file still have not-transparent background. (I doubt this way to do the modification, but I don't know how to do it.) Could you tell me how to specify the output PNG file's depth? (I have too limited image processing knowledge.) Thanks a lot, Leo BTW, I just tried above 2 pages with Netscape 6.2, both works well. ----- Original Message ----- From: "Thomas E Deweese" <qcarrillo@example.net> To: "Batik Users" <qcarrillo@example.net> Sent: Monday, March 04, 2002 5:41 PM Subject: Re: SVG->PNG, background tranparency problem. Help please > >>>>> "c" == classloader <qcarrillo@example.net> writes: > > c> Hi, Vincent, I did use the latest version of Batik 1.1.1 > > c> Actually, my SVG file is very very small, I was wondering if I > c> should specify something in SVG file or not (before the conversion) > c> ? > > c> Have been working on that for 3 days, always got white background, > c> black one or other colors.(no matter how I change the option, or > c> the source code. ) Anyone has similar expeirence? Thanks a lot, > c> Leo > > What version of the JRE are you using. We just had a bug reported > for JRE 1.4 which sounds like your problem. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: qcarrillo@example.net > For additional commands, e-mail: qcarrillo@example.net > > --------------------------------------------------------------------- To unsubscribe, e-mail: qcarrillo@example.net For additional commands, e-mail: qcarrillo@example.net From batikqcarrillo@example.net Tue Mar 05 00:43:20 2002 Return-Path: <batikqcarrillo@example.net> Delivered-To: qcarrillo@example.net Received: (qmail 50439 invoked by uid 500); 5 Mar 2002 00:43:17 -0000 Mailing-List: contact qcarrillo@example.net; run by ezmlm Precedence: bulk list-help: <mailto:qcarrillo@example.net> list-unsubscribe: <mailto:qcarrillo@example.net> list-post: <mailto:qcarrillo@example.net> Reply-To: "Batik Users" <qcarrillo@example.net> Delivered-To: mailing list qcarrillo@example.net Received: (qmail 50416 invoked from network); 5 Mar 2002 00:43:16 -0000 From: "Jeff Kowalczyk" <qcarrillo@example.net> To: "'Batik Users'" <qcarrillo@example.net>, <qcarrillo@example.net> Subject: RE: Batik Implementation in C# Date: Mon, 4 Mar 2002 19:41:59 -0500 Message-ID: <000401c1c3de$8f2d6f00$6501a8c0@laptop> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0005_01C1C3B4.A658EDA0" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2616 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 In-Reply-To: <000a01c1c3d5$fa92a750$19968ece@tangent> Importance: Normal X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ------=_NextPart_000_0005_01C1C3B4.A658EDA0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit I do know that someone has been discussing a C# port of FOP in qcarrillo@example.net, but that he would be removing the Batik code code to ease the porting process. C# should have the facilities to handle the rasterizing and viewer jobs with GDI+, but I imagine that most applications on the windows platform would just use the Adobe viewer instead of writing a new viewer. Anyhow, it would be a pretty divergent port, I would think. -----Original Message----- From: Tangent [mailto:qcarrillo@example.net] Sent: Monday, March 04, 2002 6:41 PM To: 'Batik Users' Subject: Batik Implementation in C# Hi, I just wonder if any group or people working on or planning on implementing Batik in C# or .Net platform. Thanks! - Tangent ------=_NextPart_000_0005_01C1C3B4.A658EDA0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; = charset=3Dus-ascii"> <TITLE>Message</TITLE> <META content=3D"MSHTML 840.935.1472" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN = class=3D033243600-05032002>I do=20 know that someone has been discussing a C# port of FOP in <FONT = size=3D2><A=20 href=3D"mailto:qcarrillo@example.net">qcarrillo@example.net</A></FONT>,= but that=20 he would be removing the Batik code code to ease the porting process. C# = should=20 have the facilities to handle the rasterizing and viewer jobs with=20 GDI+,&nbsp;but I imagine that most applications on the windows platform = would=20 just use the Adobe viewer instead of writing a new = viewer.&nbsp;Anyhow,&nbsp;it=20 would be a pretty divergent port, I would = think.&nbsp;</SPAN></FONT></DIV> <BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px"> <DIV></DIV> <DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr = align=3Dleft><FONT=20 face=3DTahoma size=3D2>-----Original Message-----<BR><B>From:</B> = Tangent=20 [mailto:qcarrillo@example.net] <BR><B>Sent:</B> Monday, March 04, 2002 6:41=20 PM<BR><B>To:</B> 'Batik Users'<BR><B>Subject:</B> Batik Implementation = in=20 C#<BR><BR></FONT></DIV> <DIV><SPAN class=3D018343923-04032002><FONT face=3DArial = color=3D#0000ff=20 size=3D2>Hi,</FONT></SPAN></DIV> <DIV><SPAN class=3D018343923-04032002><FONT face=3DArial = color=3D#0000ff=20 size=3D2></FONT></SPAN>&nbsp;</DIV> <DIV><SPAN class=3D018343923-04032002><FONT face=3DArial = color=3D#0000ff size=3D2>I=20 just wonder if any group or people working on or planning on = implementing=20 Batik in C# or .Net platform.</FONT></SPAN></DIV> <DIV><SPAN class=3D018343923-04032002><FONT face=3DArial = color=3D#0000ff=20 size=3D2></FONT></SPAN>&nbsp;</DIV> <DIV><SPAN class=3D018343923-04032002><FONT face=3DArial = color=3D#0000ff=20 size=3D2>Thanks!</FONT></SPAN></DIV> <DIV><SPAN class=3D018343923-04032002><FONT face=3DArial = color=3D#0000ff=20 size=3D2></FONT></SPAN>&nbsp;</DIV> <DIV><SPAN class=3D018343923-04032002><FONT face=3DArial = color=3D#0000ff size=3D2>-=20 Tangent</FONT></SPAN></DIV></BLOCKQUOTE></BODY></HTML> ------=_NextPart_000_0005_01C1C3B4.A658EDA0-- From batikqcarrillo@example.net Tue Mar 05 04:33:19 2002 Return-Path: <batikqcarrillo@example.net> Delivered-To: qcarrillo@example.net Received: (qmail 41382 invoked by uid 500); 5 Mar 2002 04:33:19 -0000 Mailing-List: contact qcarrillo@example.net; run by ezmlm Precedence: bulk list-help: <mailto:qcarrillo@example.net> list-unsubscribe: <mailto:qcarrillo@example.net> list-post: <mailto:qcarrillo@example.net> Reply-To: "Batik Users" <qcarrillo@example.net> Delivered-To: mailing list qcarrillo@example.net Received: (qmail 41369 invoked from network); 5 Mar 2002 04:33:18 -0000 From: "Ramakrishnan.G" <qcarrillo@example.net> To: "Batik Users" <qcarrillo@example.net> Subject: RE: Batik problem in multithreaded application Date: Tue, 5 Mar 2002 09:58:12 +0530 Message-ID: <qcarrillo@example.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal In-Reply-To: <qcarrillo@example.net> X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hai Vincent, Basically my aim is to generate pdf and ps from xml and xsl files. As i have to process bulk of files with 100 kb (XML) each, i decided to go for threads. My application works like this. I am using Driver class from fop to start Fop. I am not directly calling batik. Fop uses Batik.When i start multiple threads which in turn create multiple Driver instances the error occurs. This error occurs only when fop processes the first image. mDriver = new Driver(); Hierarchy hierarchy = Hierarchy.getDefaultHierarchy(); hierarchy.setDefaultPriority(Priority.INFO); mFOPLog = hierarchy.getLoggerFor("Fop"); mDriver.setLogger(mFOPLog); mDriver.setRenderer(Driver.RENDER_PDF); mDriver.setOutputStream(pdfFile); mParser=mInputHandler.getParser(); mDriver.render(mParser, mInputHandler.getInputSource()); pdfFile.flush(); pdfFile.close(); this is what is happening in each thread. And this is error is not affecting the Output. Can u please suggest me some performance improvement options for FOP. Thanks and Regards Ramakrishnan. -----Original Message----- From: Vincent Hardy [mailto:qcarrillo@example.net] Sent: Monday, March 04, 2002 9:25 PM To: Batik Users Subject: Re: Batik problem in multithreaded application Ramakrishnan, Could you give some more details about how you are trying to multi-thread your application? Which objects are you using from different threads? Vincent. "Ramakrishnan.G" wrote: > > Hai, > > I am using batik and fop for Pdf generation. > Everything runs fine for single thread. > When i start multithread the following error occurs. > > ERROR 10152 [fop ] (): Could not load external SVG: Stream closed > ERROR 10152 [fop ] (): Could not load external SVG: The markup in > the document preceding the root element must be well-formed. > ERROR 10152 [fop ] (): Could not load external SVG: Stream closed > ERROR 10152 [fop ] (): Could not load external SVG: The markup in > the document preceding the root element must be well-formed. > ERROR 10152 [fop ] (): Could not load external SVG: Stream closed > ERROR 10152 [fop ] (): Could not load external SVG: Stream closed > ERROR 10152 [Fop ] (): Error while creating area : No ImageReader > for this type of image (file:d:/truecredit/TRL-RGS/images/logo.gif) > ERROR 10152 [Fop ] (): Error while creating area : No ImageReader > for this type of image (file:d:/truecredit/TRL-RGS/images/logo.gif) > > Can anyone please tell me how to solve this. > > Thanks and Regards > > Ramakrishnan.G > > --------------------------------------------------------------------- > To unsubscribe, e-mail: qcarrillo@example.net > For additional commands, e-mail: qcarrillo@example.net --------------------------------------------------------------------- To unsubscribe, e-mail: qcarrillo@example.net For additional commands, e-mail: qcarrillo@example.net --------------------------------------------------------------------- To unsubscribe, e-mail: qcarrillo@example.net For additional commands, e-mail: qcarrillo@example.net From batikqcarrillo@example.net Tue Mar 05 07:58:20 2002 Return-Path: <batikqcarrillo@example.net> Delivered-To: qcarrillo@example.net Received: (qmail 13111 invoked by uid 500); 5 Mar 2002 07:58:20 -0000 Mailing-List: contact qcarrillo@example.net; run by ezmlm Precedence: bulk list-help: <mailto:qcarrillo@example.net> list-unsubscribe: <mailto:qcarrillo@example.net> list-post: <mailto:qcarrillo@example.net> Reply-To: "Batik Users" <qcarrillo@example.net> Delivered-To: mailing list qcarrillo@example.net Received: (qmail 13096 invoked from network); 5 Mar 2002 07:58:19 -0000 Date: Tue, 5 Mar 2002 08:58:10 +0100 From: Keiron Liddle <qcarrillo@example.net> To: Batik Users <qcarrillo@example.net> Subject: Re: Batik problem in multithreaded application Message-Id: <qcarrillo@example.net> References: <qcarrillo@example.net> <qcarrillo@example.net> MIME-Version: 1.0 In-Reply-To: <qcarrillo@example.net>; from qcarrillo@example.net on Tue, Mar 05, 2002 at 05:28:12 +0100 X-Mailer: Balsa 1.2.4 Lines: 108 Content-Type: text/plain; format=flowed; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi, This is really for the fop list but it appears that your problem is a threading issue with the way that FOP handles images. On 2002.03.05 05:28 Ramakrishnan.G wrote: > Hai Vincent, > > Basically my aim is to generate pdf and ps from xml and xsl files. > As i have to process bulk of files with 100 kb (XML) each, i decided to > go for threads. > > My application works like this. > > I am using Driver class from fop to start Fop. I am not directly calling > batik. > Fop uses Batik.When i start multiple threads which in turn create > multiple > Driver instances > the error occurs. This error occurs only when fop processes the first > image. > > mDriver = new Driver(); > Hierarchy hierarchy = Hierarchy.getDefaultHierarchy(); > hierarchy.setDefaultPriority(Priority.INFO); > mFOPLog = hierarchy.getLoggerFor("Fop"); > mDriver.setLogger(mFOPLog); > mDriver.setRenderer(Driver.RENDER_PDF); > mDriver.setOutputStream(pdfFile); > mParser=mInputHandler.getParser(); > mDriver.render(mParser, mInputHandler.getInputSource()); > pdfFile.flush(); > pdfFile.close(); > > this is what is happening in each thread. > > And this is error is not affecting the Output. > > Can u please suggest me some performance improvement options for FOP. > > Thanks and Regards > Ramakrishnan. > > -----Original Message----- > From: Vincent Hardy [mailto:qcarrillo@example.net] > Sent: Monday, March 04, 2002 9:25 PM > To: Batik Users > Subject: Re: Batik problem in multithreaded application > > > Ramakrishnan, > > Could you give some more details about how you are trying to > multi-thread your application? Which objects are you using from > different threads? > > Vincent. > > "Ramakrishnan.G" wrote: > > > > Hai, > > > > I am using batik and fop for Pdf generation. > > Everything runs fine for single thread. > > When i start multithread the following error occurs. > > > > ERROR 10152 [fop ] (): Could not load external SVG: Stream > closed > > ERROR 10152 [fop ] (): Could not load external SVG: The markup > in > > the document preceding the root element must be well-formed. > > ERROR 10152 [fop ] (): Could not load external SVG: Stream > closed > > ERROR 10152 [fop ] (): Could not load external SVG: The markup > in > > the document preceding the root element must be well-formed. > > ERROR 10152 [fop ] (): Could not load external SVG: Stream > closed > > ERROR 10152 [fop ] (): Could not load external SVG: Stream > closed > > ERROR 10152 [Fop ] (): Error while creating area : No > ImageReader > > for this type of image (file:d:/truecredit/TRL-RGS/images/logo.gif) > > ERROR 10152 [Fop ] (): Error while creating area : No > ImageReader > > for this type of image (file:d:/truecredit/TRL-RGS/images/logo.gif) > > > > Can anyone please tell me how to solve this. > > > > Thanks and Regards > > > > Ramakrishnan.G > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: qcarrillo@example.net > > For additional commands, e-mail: qcarrillo@example.net > > --------------------------------------------------------------------- > To unsubscribe, e-mail: qcarrillo@example.net > For additional commands, e-mail: qcarrillo@example.net > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: qcarrillo@example.net > For additional commands, e-mail: qcarrillo@example.net > > --------------------------------------------------------------------- To unsubscribe, e-mail: qcarrillo@example.net For additional commands, e-mail: qcarrillo@example.net From batikqcarrillo@example.net Tue Mar 05 12:28:18 2002 Return-Path: <batikqcarrillo@example.net> Delivered-To: qcarrillo@example.net Received: (qmail 57393 invoked by uid 500); 5 Mar 2002 12:28:18 -0000 Mailing-List: contact qcarrillo@example.net; run by ezmlm Precedence: bulk list-help: <mailto:qcarrillo@example.net> list-unsubscribe: <mailto:qcarrillo@example.net> list-post: <mailto:qcarrillo@example.net> Reply-To: "Batik Users" <qcarrillo@example.net> Delivered-To: mailing list qcarrillo@example.net Received: (qmail 57382 invoked from network); 5 Mar 2002 12:28:17 -0000 X-Authentication-Warning: fenwick.image.kodak.com: deweese set sender to qcarrillo@example.net using -f From: Thomas E Deweese <qcarrillo@example.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <qcarrillo@example.net> Date: Tue, 5 Mar 2002 07:28:15 -0500 To: Batik Users <qcarrillo@example.net> Subject: Re: SVG->PNG, background tranparency problem. Help please In-Reply-To: <qcarrillo@example.net> References: <qcarrillo@example.net> <qcarrillo@example.net> <qcarrillo@example.net> X-Mailer: VM 6.95 under Emacs 20.5.1 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N >>>>> "c" == classloader <qcarrillo@example.net> writes: c> So the difference tells me: if the PNG is 32Bit(ARGB each 8bits) c> format, IE will have trouble to view its transparent background. if c> PNG is with poorer depth, IE can treat it correctly. c> So it's IE's problem. ( I am using IE6. ) c> ==> New Problem, please help: c> So, my next approach would be trying to use Batik to convert c> SVG->PNG and specifying output file with 8 bits depth. I can't find c> the options from the Batik Usage which can do that. Then I added c> one line in PNGTranscoder.java: "params.setBitDepth(8);" but the c> generated file still have not-transparent background. (I doubt c> this way to do the modification, but I don't know how to do it.) c> Could you tell me how to specify the output PNG file's depth? (I c> have too limited image processing knowledge.) As one might imagine going from 32 bits per pixel to 8 bits per pixel is a complicated thing. Currently Batik does not do this. You may be able to use other command line tools to accomplish this (such as ImageMagik (sp?)). If someone wanted to contribute a good palletizer to Batik I'm sure it would be welcome as many SVG files can be palletized with little loss of quality if done properly. c> BTW, I just tried above 2 pages with Netscape 6.2, both works well. I suggest you switch browsers :) --------------------------------------------------------------------- To unsubscribe, e-mail: qcarrillo@example.net For additional commands, e-mail: qcarrillo@example.net From batikqcarrillo@example.net Tue Mar 05 13:36:15 2002 Return-Path: <batikqcarrillo@example.net> Delivered-To: qcarrillo@example.net Received: (qmail 7665 invoked by uid 500); 5 Mar 2002 13:36:14 -0000 Mailing-List: contact qcarrillo@example.net; run by ezmlm Precedence: bulk list-help: <mailto:qcarrillo@example.net> list-unsubscribe: <mailto:qcarrillo@example.net> list-post: <mailto:qcarrillo@example.net> Reply-To: "Batik Users" <qcarrillo@example.net> Delivered-To: mailing list qcarrillo@example.net Delivered-To: moderator for qcarrillo@example.net Received: (qmail 4432 invoked from network); 5 Mar 2002 13:32:01 -0000 Message-ID: <qcarrillo@example.net> Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 7bit Mime-Version: 1.0 X-Mailer: MIME-tools 4.104 (Entity 4.117) From: "balamurugan lakshmi chitra" <qcarrillo@example.net> To: qcarrillo@example.net Cc: qcarrillo@example.net Date: Tue, 05 Mar 2002 21:32:02 +0800 Subject: Getting rendered image from JSVGCanvas X-Originating-Ip: 83.161.120.155 X-Originating-Server: ws3.us2.outblaze.com X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Dear friends, I am new to Batik. I need help from u guys. I have a requirement. I have to show vector graphics to get high resolution. JSVGCanvas is the best one for that. I need to create icons which will have images. When i resize that icon i will lose the resolution if the image is gif or any raster based. What i am thinking to solve this problem is, i will use svg. For that i need to know how to acces the image object from JSVGCanvas. If i know how to do that each time when i resize i will get the new rendered image from JSVGCanvas in that way i wont lose the resolution. I think this will be more useful for different projects. It will be greatful if any one show me the right direction. Thanks Bala -- _______________________________________________ Get your free email from http://mymail.india.com --------------------------------------------------------------------- To unsubscribe, e-mail: qcarrillo@example.net For additional commands, e-mail: qcarrillo@example.net From batikqcarrillo@example.net Tue Mar 05 15:55:42 2002 Return-Path: <batikqcarrillo@example.net> Delivered-To:
{'source': 'Apache Software Foundation Public Mail Archives'}