Re: loading images from classpath

2005-02-21 Thread Thomas DeWeese
interfaces then there is no way Batik can. Thanks, Tom -Original Message- From: Tonny Kohar [mailto:[EMAIL PROTECTED] Sent: Monday, February 21, 2005 12:33 PM To: Batik Users Subject: Re: loading images from classpath Hi, On Tue, 2005-02-22 at 01:09, Litton, Tom - CEPM wrote: Is there an

RE: loading images from classpath

2005-02-21 Thread Litton, Tom - CEPM
2:33 PM To: Batik Users Subject: Re: loading images from classpath Hi, On Tue, 2005-02-22 at 01:09, Litton, Tom - CEPM wrote: > Is there anyway of loading linked images from the classpath during the > transcoding process? I'm trying to link a jpg image into an svg image > built during

Re: loading images from classpath

2005-02-21 Thread Tonny Kohar
Hi, On Tue, 2005-02-22 at 01:09, Litton, Tom - CEPM wrote: > Is there anyway of loading linked images from the classpath during the > transcoding process? I'm trying to link a jpg image into an svg image > built during runtime, then transcode it. I'm getting the error: I am

loading images from classpath

2005-02-21 Thread Litton, Tom - CEPM
Title: loading images from classpath Is there anyway of loading linked images from the classpath during the transcoding process?  I'm trying to link a jpg image into an svg image built during runtime, then transcode it.  I'm getting the error: Caused by: java.lang.NullPointe

Re: Poor quality results rasterizing SVG images (Samples attached).

2004-03-31 Thread John Parisi
om: "Tonny Kohar" <[EMAIL PROTECTED]> To: "Batik Users" <[EMAIL PROTECTED]> Sent: Tuesday, March 30, 2004 10:08 PM Subject: Re: Poor quality results rasterizing SVG images (Samples attached). > Hi, > > > Thanks for the reply. I tried turning anti-a

Re: Poor quality results rasterizing SVG images (Samples attached).

2004-03-30 Thread Tonny Kohar
Hi, > Thanks for the reply. I tried turning anti-aliasing off ... by adding > shape-rendering="crispEdges" > to the outermost element. This produces a slightly better image... > but still not nearly as good as the one ImageMagick produced. I think the quality of batik transcoder, it more or le

Re: Poor quality results rasterizing SVG images (Samples attached).

2004-03-30 Thread John Parisi
uot;Tonny Kohar" <[EMAIL PROTECTED]> To: "Batik Users" <[EMAIL PROTECTED]> Sent: Tuesday, March 30, 2004 1:24 PM Subject: Re: Poor quality results rasterizing SVG images (Samples attached). > Hi, > > On Tue, 2004-03-30 at 22:25, John Parisi wrote: > > Just so you

Re: Poor quality results rasterizing SVG images (Samples attached).

2004-03-30 Thread Tonny Kohar
Hi, On Tue, 2004-03-30 at 22:25, John Parisi wrote: > Just so you can see what I'm talking about, I've attached the source SVG > image as well as the converted PNGs. You can clearly see that the image > created with Batik is distorted for some reason, whereas the image created > via ImageMagick l

Poor quality results rasterizing SVG images (Samples attached).

2004-03-30 Thread John Parisi
al Message - > From: John Parisi > To: [EMAIL PROTECTED] > Sent: Monday, March 29, 2004 9:53 AM > Subject: Poor quality results rasterizing SVG images. > Hi, > I'm trying to convert a 50x50 (pixels) SVG image to a PNG with batik. Using the command line > tool 'ba

Poor quality results rasterizing SVG images.

2004-03-29 Thread John Parisi
Hi,   I'm trying to convert a 50x50 (pixels) SVG image to a PNG with batik.  Using the command line tool 'batik-rasterizer.jar' to convert a source SVG file to a PNG (or any other format) I get a choppy looking output image.  I get the same result using the PNGTranscoder programatically in a

R: Images in jar. Sample

2003-12-03 Thread Fabio Biscaro
Thank for help! This morning i noticed that my error was really the "/" after !. Thanks! Fabio -Messaggio originale- Da: Thomas DeWeese [mailto:[EMAIL PROTECTED] Inviato: martedì 2 dicembre 2003 19.24 A: Batik Users Oggetto: Re: Images in jar. Sample Fabio Biscaro wrote:

Re: Images in jar. Sample

2003-12-02 Thread Thomas DeWeese
Fabio Biscaro wrote: Here i post an example of an svg that i would like to have in a jar. You can unzip it in your root directory. I tried to load it by using this java code: svgCanvas.setUri("jar:file:/jar/qco.jar!prova.svg"); ( I tried other combinations too) The following is what I used on

Images in jar. Sample

2003-12-02 Thread Fabio Biscaro
Here i post an example of an svg that i would like to have in a jar. You can unzip it in your root directory. I tried to load it by using this java code: svgCanvas.setUri("jar:file:/jar/qco.jar!prova.svg"); ( I tried other combinations too) But no way. I cant get rid of "Unable to make sense of

Re: R: R: Images

2003-12-01 Thread Thomas DeWeese
Fabio Biscaro wrote: Can I use this protocol for images in svg too? Yes. How should i change xlink:href attribute to load images in jar? I would suggest putting the document and all the images in the jar file. Then you can just use relative URL's and it will just work (your files can

R: R: Images

2003-12-01 Thread Fabio Biscaro
Can I use this protocol for images in svg too? How should i change xlink:href attribute to load images in jar? Thanks, Fabio -Messaggio originale- Da: Thomas DeWeese [mailto:[EMAIL PROTECTED] Inviato: lunedì 1 dicembre 2003 13.31 A: Batik Users Oggetto: Re: R: Images Fabio Biscaro

Re: R: Images

2003-12-01 Thread Thomas DeWeese
originale- Da: Thomas DeWeese [mailto:[EMAIL PROTECTED] Inviato: venerdì 28 novembre 2003 13.44 A: Batik Users Oggetto: Re: Images Fabio Biscaro wrote: Hi! I would like to know if someone knows a way, using batik, to pack all files used by an svg document in a zip file or similar

R: Images

2003-12-01 Thread Fabio Biscaro
Can you give me a sample to allow batik load jar files? Thanks! Fabio -Messaggio originale- Da: Thomas DeWeese [mailto:[EMAIL PROTECTED] Inviato: venerdì 28 novembre 2003 13.44 A: Batik Users Oggetto: Re: Images Fabio Biscaro wrote: > Hi! I would like to know if someone knows a

Re: Images

2003-11-28 Thread Thomas DeWeese
Fabio Biscaro wrote: Hi! I would like to know if someone knows a way, using batik, to pack all files used by an svg document in a zip file or similar. Batik should support the 'jar' file Protocol. For example: svg loads some images and javascript files. Now I use to put all files

Images

2003-11-27 Thread Fabio Biscaro
Hi! I would like to know if someone knows a way, using batik, to pack all files used by an svg document in a zip file or similar. For example: svg loads some images and javascript files. Now I use to put all files in subdir. Can I make a single zip file of everything? Thanks! Fabio

Re: huge memory usage when loading raster images

2003-10-20 Thread Thomas DeWeese
age I am loading. When I load the same raster image as PNG (also 1.8 MB) - the memory usage increases by 270 MB. Is that because Batik uses 4 Bytes for each Pixel (4429 * 4101 * 4 = ~ 72 MB) ? Yes, Each of those 4Kx4K images takes about 72MB of memory. Is there another way to show raster i

huge memory usage when loading raster images

2003-10-17 Thread Gold Martin
d the same raster image as PNG (also 1.8 MB) - the memory usage increases by 270 MB. Is that because Batik uses 4 Bytes for each Pixel (4429 * 4101 * 4 = ~ 72 MB) ? Is there another way to show raster images without increasing the memory usage so much ? I want the user to click to an area in the C

Re: Re: Batik and fo issues with unfound images

2003-10-15 Thread Jay Chiu
Thomas, Thank you. I develop xslt files on xp using XMLSpy and fop.bat. But the real application is on Solaris 8 using fop.sh. We actually treat the text as within a text area and we position the text area. In other words, it is just to map html section to section. We thus have problem to u

Re: Batik and fo issues with unfound images

2003-10-14 Thread Thomas DeWeese
Jay Chiu wrote: Thomas, Thank you for response. I am not sure the version of Batik. The modified date for the directories under xml-batik is 7/24/2003. But fop version is 0.20.5. > The major issue is FOP should not hang if the embedded svg > references an unfound image. Agreed, however I susp

Re: Batik and fo issues with unfound images

2003-10-13 Thread Thomas DeWeese
Hi Jay, I added Batik-users to the CC list as it seemed many of your questions are really SVG/Batik questions. Jay Chiu wrote: I have tried to embed a svg into a fo file to generate pdf file. The svg contains a reference to an image that can not be found. I got fop hanging problem. I hope Bati

Re: Adding raster images

2003-10-10 Thread Tonny Kohar
hi, you could do something like this: - since JSVGCanvas is a JComponent, you can add mouse listener - on the mouse click event SVDocument doc = canvas.getSVGDocument(); // create the image SVGImageElement imgElt = (SVGImageElement)doc.createElement("img"); // set the image attribute imgElt.setAtt

Adding raster images

2003-10-09 Thread maria teresa
Hi, I am developing a Java application that has to meet the following requirements: 1) load and display an SVG image on a JSVGCanvas; 2) when mouse is double clicked, a small jpg image should appear on the canvas at the coordinates where double click occurs; 3) the SVG file should be modified in

RE: Loading Images

2003-09-09 Thread Shan Kajendran
The document has a element with local name 'pre' and the namespace is the official SVG namespace. This is illegal - you can put what ever elements you want in your own namespace but you can not add elements to the SVG namespace - otherwise what is the point of a standard? Thanks a lot for the c

Re: Loading Images

2003-09-09 Thread Thomas DeWeese
Shan Kajendran wrote: Thanks for your quick reply. What do you mean by 'pre' element in the SVG namespace, The document has a element with local name 'pre' and the namespace is the official SVG namespace. This is illegal - you can put what ever elements you want in your own namespace but you

RE: Loading Images

2003-09-09 Thread Shan Kajendran
Thanks for your quick reply. What do you mean by 'pre' element in the SVG namespace, Also is Batik supports SVGZ? Shan Shan Kajendran wrote: > The batik application is failed to open the svg files which don't have > the header. Then i have inserted the following header and it is working >

Re: Loading Images

2003-09-09 Thread Thomas DeWeese
Shan Kajendran wrote: The batik application is failed to open the svg files which don't have the header. Then i have inserted the following header and it is working fine. [...] now i am having problem with opening the attached svg file. It looks compressed format but not svgz. any idea? It

RE: Loading Images

2003-09-09 Thread Shan Kajendran
Title: Message Thanks Kevin   The batik application is failed to open the svg files which don't have the header.  Then i have inserted the following header and it is working fine. ---

Re: Loading Images

2003-09-05 Thread Kevin Lindsey
Title: Message From: Shan Kajendran > ...the application is throwing the following error.>>"The prefix "xlink" for attribute "xlink:href" is not bound"Sounds like you are missing a namespace declaration.  Typically, people define this on the top-most svg element, like so:       http://www.w3

Loading Images

2003-09-05 Thread Shan Kajendran
Title: Message Hi Genies   With the help of this forum I did manage to setup my working environment for Batik project.  Specially Mr Thomas DeWeese helped me a lot. THANKS FOR THAT !!!   Now I have started to compile and run some example codes which I found in the Batik project web site.  

RE: Loading images in ECMA scripts

2003-07-11 Thread Kari Hoijarvi
Thanks for correcting!   Quite an inconsistency in the API. I would not have spotted it myself.   Kari -Original Message-From: Vincent Hardy [mailto:[EMAIL PROTECTED]Sent: 11 July 2003 02:11To: Batik UsersSubject: Re: Loading images in ECMA scriptsHello Kari

Re: Loading images in ECMA scripts

2003-07-11 Thread Vincent Hardy
example "samples/tests/spec/scripting/imageRefUpdate.svg" in order to clearify what went wrong in my file. Batik 1.5 beta4b didn't perform the dynamic reference update and Batik 1.5 beta5 raised a security exception while loading the newly specified images on my computer. I had to

Re: Loading images in ECMA scripts

2003-07-11 Thread Jens Heidrich
ile loading the newly specified images on my computer. I had to put the images and "imageRefUpdate.svg" into one directory before Batik 1.5 beta5 performed the update correctly. I just tested my example with Batik 1.5 beta5 and it worked as expected as soon as I put all images into one dir

Re: Loading images in ECMA scripts

2003-07-11 Thread Vincent Hardy
;); image.getAttributeNS(xlinkNS, "xlink:href") is not there image.getAttributeNS(xlinkNS, "href") == "http://whatever"; Yet another bug in ASV3? I wonder then what's wrong then with the original script. In my experience, checking that no parameter is undefined

RE: Loading images in ECMA scripts

2003-07-10 Thread Kari Hoijarvi
olved a lot of problems. Kari -Original Message- From: Vincent Hardy [mailto:[EMAIL PROTECTED] Sent: 10 July 2003 08:29 To: Batik Users Subject: Re: Loading images in ECMA scripts Actually, the second parameter on setAttributeNS takes a qualified name, so "xlink:href" is

Re: Loading images in ECMA scripts

2003-07-10 Thread Vincent Hardy
ttributeNS(xlinkNS, "href", url); without the "xlink:" in the attribute name. The namespace is identified by the namespace URI only. Kari -Original Message- From: Jens Heidrich [mailto:[EMAIL PROTECTED] Sent: 10 July 2003 04:05 To: [EMAIL PROTECTED] Subject: Loading ima

RE: Loading images in ECMA scripts

2003-07-10 Thread Kari Hoijarvi
ED] Subject: Loading images in ECMA scripts Hello, we are using SVG in order to display charts, that use JavaScript to support some simple interaction. We discovered a strange behavior when trying to change the "href" attribute of an image by an ECMA script: funct

Loading images in ECMA scripts

2003-07-10 Thread Jens Heidrich
Hello, we are using SVG in order to display charts, that use JavaScript to support some simple interaction. We discovered a strange behavior when trying to change the "href" attribute of an image by an ECMA script: function load_image(url) { image = document.getElementById("image"); image.s

Possible Memory Leak rendering PNG images?

2003-06-30 Thread tomas lin
Hi, There might be a memory leak when rendering embedded images in Batik. I am working on Windows 2000 SP4 and JDK 1.3.1. Using CVS Batik from 6/24/03, I start an instance of the JSVGCanvas and set it to be be dynamic. I add a node with the following SVG properties: In this case, blah.png

Re: [Batik 1.5b5] PNGTranscoder creating blank images

2003-06-06 Thread Robert Gash
the root node was a plain "svg" element. Manually setting the prefix of the root node to "svg" corrected the problem, and the transcoder now produces the expected images. For those interested parties, here is the relevant snippet of code to create a new SVGGraphics2D that you c

Re: [Batik 1.5b5] PNGTranscoder creating blank images

2003-06-06 Thread Vincent Hardy
quot;svg" element. Manually setting the prefix of the root node to "svg" corrected the problem, and the transcoder now produces the expected images. For those interested parties, here is the relevant snippet of code to create a new SVGGraphics2D that you can draw on and then transcode

RE: [Batik 1.5b5] PNGTranscoder creating blank images

2003-06-04 Thread Thomas E Deweese
RG> JPEGTranscoder) continuously produce appropriately sized, but RG> blank images (IE- a big image full of background color). RG> I have saved the SVG that I am attemting to rasterize, and Adobe's RG> SVG viewer displays is properly. What might I be missing that RG> could c

[Batik 1.5b5] PNGTranscoder creating blank images

2003-06-04 Thread Robert Gash
I am using the SVG generator to create a new SVG by drawing on a Graphics2D object. Once updates are complete, I need to rasterize this image to a PNG. When I do so, the PNGTranscoder (and JPEGTranscoder) continuously produce appropriately sized, but blank images (IE- a big image full of

RE: Layering multiple SVG images

2003-05-30 Thread Harm Cuppens
Found out what I was doing wrong Number 3 works if you do: canvas.setBackground(new Color(255,255,255,0)) So yes, it is possible to layer different canvasses over each other ! Harm. > "GWJ" == G Wade Johnson <[EMAIL PROTECTED]> writes: GWJ> 3. There have been a few questions in the past o

RE: Layering multiple SVG images

2003-05-30 Thread Harm Cuppens
> "GWJ" == G Wade Johnson <[EMAIL PROTECTED]> writes: GWJ> 3. There have been a few questions in the past on this list about GWJ> layering JSVGCanvas objects and displaying one on top of another. GWJ> a. I don't know if anyone has ever gotten this approach to GWJ>work. >

Re: Layering multiple SVG images

2003-05-30 Thread G. Wade Johnson
Thanks, Thomas. I'll keep looking at alternate approaches. (I'm hoping to redefine the problem to one I can solve.) G. Wade Thomas E Deweese wrote: > > >>>>> "GWJ" == G Wade Johnson <[EMAIL PROTECTED]> writes: > > GWJ> I panned around a

Re: Layering multiple SVG images

2003-05-30 Thread Thomas E Deweese
>>>>> "GWJ" == G Wade Johnson <[EMAIL PROTECTED]> writes: GWJ> I panned around all over the place with no update of the GWJ> images. I even panned far enough to move the image off the GWJ> canvas, but when I brought it back the images weren't updat

Re: Layering multiple SVG images

2003-05-30 Thread G. Wade Johnson
I panned around all over the place with no update of the images. I even panned far enough to move the image off the canvas, but when I brought it back the images weren't updated. I take it that this is not expected? G. Wade Thomas E Deweese wrote: > > >>>>> "

Re: Layering multiple SVG images

2003-05-30 Thread Thomas E Deweese
>>>>> "GWJ" == G Wade Johnson <[EMAIL PROTECTED]> writes: GWJ> Well, it almost does what I need. - I can find the GWJ> documents attached to the images. - I can manipulate those GWJ> documents. - The changes appear in the DOM for the subdocuments. GWJ&g

Re: Layering multiple SVG images

2003-05-30 Thread G. Wade Johnson
Well, it almost does what I need. - I can find the documents attached to the images. - I can manipulate those documents. - The changes appear in the DOM for the subdocuments. - The changes don't appear on the screen. Unless I can find a way to get the images to update after they change,

Re: Layering multiple SVG images

2003-05-30 Thread G. Wade Johnson
not sure if the lazy evaluation will > >> cause me grief or not, so I'll save it. > >> > >> I'll try and post what I find for anyone else who runs into this > >> idea. > >> > >> Later, G. Wade > >> > >> Thomas E D

Re: Layering multiple SVG images

2003-05-30 Thread Thomas E Deweese
f >> it. >> >> >> >> 3. Multiple JSVGCanvas objects. - I had thought about not >> needing >> to rerender unchanged layers. >> >> >> >> With the multiImage idea, I'm not sure if the lazy evaluation >> will >> c

Re: Layering multiple SVG images

2003-05-30 Thread G. Wade Johnson
27;t think of > >> it. > >> > >> 3. Multiple JSVGCanvas objects. - I had thought about not needing > >> to rerender unchanged layers. > >> > >> With the multiImage idea, I'm not sure if the lazy evaluation will > >> cause me grief or not, so I'll

Re: Layering multiple SVG images

2003-05-29 Thread Thomas E Deweese
Image idea, I'm not sure if the lazy evaluation will >> cause me grief or not, so I'll save it. >> >> I'll try and post what I find for anyone else who runs into this >> idea. >> >> Later, G. Wade >> >> Thomas E Deweese wrote: >>

Re: Layering multiple SVG images

2003-05-29 Thread G. Wade Johnson
; Thomas E Deweese wrote: > > > > >>>>> "GWJ" == G Wade Johnson <[EMAIL PROTECTED]> writes: > > > > GWJ> I think I know the answer already, but I'm going to ask anyway. > > GWJ> Overview: I have an application where I will need to dis

Re: Layering multiple SVG images

2003-05-29 Thread G. Wade Johnson
a. Later, G. Wade Thomas E Deweese wrote: > > >>>>> "GWJ" == G Wade Johnson <[EMAIL PROTECTED]> writes: > > GWJ> I think I know the answer already, but I'm going to ask anyway. > GWJ> Overview: I have an application where I will need to display

RE: Layering multiple SVG images

2003-05-29 Thread Thomas E Deweese
>>>>> "GWJ" == G Wade Johnson <[EMAIL PROTECTED]> writes: GWJ> I think I know the answer already, but I'm going to ask anyway. GWJ> Overview: I have an application where I will need to display GWJ> multiple SVG images on top of (or behind) one another

Layering multiple SVG images

2003-05-29 Thread G. Wade Johnson
I think I know the answer already, but I'm going to ask anyway. Overview: I have an application where I will need to display multiple SVG images on top of (or behind) one another. I will also need to manipulate various elements on various images. The some of these layers may be invisible

Re: AW: Not able to href images with absolute path

2003-02-21 Thread J.Pietschmann
Lolling, Jan wrote: Try UNIX like URLs ... file://C|/Images/xyz.gif ... Very bad idea, see http://www.rfc-editor.org/rfc/rfc2396.txt Use xlink:href="file:///C:/Images/xyz.gif" instead. J.Pietschmann - To unsu

RE: Not able to href images with absolute path

2003-02-21 Thread Prasanna Chetty
Thanks Jan. Its working if the file path is given like this.(with 3 slashes ) file:///C:/Program Files/xyz.gif   Pras.   -Original Message- From: Prasanna Chetty Sent: Friday, 21 February 2003 2:59 PM To: 'Batik Users' Subject: RE: Not able to href images with abs

RE: Not able to href images with absolute path

2003-02-21 Thread Prasanna Chetty
Tried. But not working   -Original Message- From: Lolling, Jan [mailto:[EMAIL PROTECTED]] Sent: Friday, 21 February 2003 1:50 PM To: [EMAIL PROTECTED] Subject: AW: Not able to href images with absolute path   Try UNIX like URLs ... file://C|/Images/xyz.gif

AW: Not able to href images with absolute path

2003-02-21 Thread Lolling, Jan
Try UNIX like URLs ... file://C|/Images/xyz.gif ...   Jan -Ursprüngliche Nachricht-Von: Prasanna Chetty [mailto:[EMAIL PROTECTED]]Gesendet: Freitag, 21. Februar 2003 09:16An: 'Batik Users'Betreff: Not able to href images with absolute path The batik

Not able to href images with absolute path

2003-02-21 Thread Prasanna Chetty
The batik rasterizer doesn't work with images if the absolute file path of the image is given. For eg. xlink:href="C:\Images\xyz.gif" /> It is working fine if I give relative path of the reference images, like this xlink:href="xyz.gif" />   any solut

RE: How to overlap 2 images generated using JPEGTranscoder

2002-10-11 Thread Arvind Sareen
Hi Thomas, I will try with PNG. Arvind >From: Thomas E Deweese <[EMAIL PROTECTED]> >Reply-To: "Batik Users" <[EMAIL PROTECTED]> >To: Batik Users <[EMAIL PROTECTED]> >Subject: RE: How to overlap 2 images generated using JPEGTranscoder >Date: Th

RE: How to overlap 2 images generated using JPEGTranscoder

2002-10-10 Thread Thomas E Deweese
y can't you do all these things with PNG files? AS> If there is any other way I can meet all these points. Please let AS> me know so that I can proceed on those lines. There is no standard way to express transparency in JPEG. If you were incredibly desperate you could create sepera

RE: How to overlap 2 images generated using JPEGTranscoder

2002-10-09 Thread Arvind Sareen
. Regards Arvind >From: Thomas E Deweese <[EMAIL PROTECTED]> >Reply-To: "Batik Users" <[EMAIL PROTECTED]> >To: Batik Users <[EMAIL PROTECTED]> >Subject: RE: How to overlap 2 images generated using JPEGTranscoder >Date: Wed, 9 Oct 2002 07:40:05 -0400 > &

RE: How to overlap 2 images generated using JPEGTranscoder

2002-10-09 Thread Thomas E Deweese
>>>>> "AS" == Arvind Sareen <[EMAIL PROTECTED]> writes: AS> I have created 2 svg files and then converted them to images using AS> JPEGTranscoder. Now when I call these 2 images in another svg AS> file. The file which is called in the last is displa

How to overlap 2 images generated using JPEGTranscoder

2002-10-09 Thread Arvind Sareen
Hi I have created 2 svg files and then converted them to images using JPEGTranscoder. Now when I call these 2 images in another svg file. The file which is called in the last is displayed whereas the file below it is not displayed. Can anybody provide me with a solution or workaround to

Re: How to improve load time of PNG images?

2002-08-19 Thread Charles H. Woloszynski
roblem as ImageTagRegistry does cache images and my > application may display many in one session. > 2. CVS batik is used. Nothing noticeable. > 3. The all-at-once rendering is used. > 4. Bypassing the PNG decoder has a large impact. Rendering times were > reduced to ~1200ms from ~3500

Re: How to improve load time of PNG images?

2002-08-19 Thread Mark Vidov
Thanks very much for the response. Progress so far: 1. The memory settings were -Xms128m -Xmx512m. I can see that memory does become a problem as ImageTagRegistry does cache images and my application may display many in one session. 2. CVS batik is used. Nothing noticeable. 3. The all-at-once

How to improve load time of PNG images?

2002-08-13 Thread Thomas E Deweese
>>>>> "MV" == Mark Vidov <[EMAIL PROTECTED]> writes: MV> What can be done to improve load times of PNG images? Hard to know without more information on what the bottle neck is. MV> Can batik be made to use JAI and its native libraries? It can be,

How to improve load time of PNG images?

2002-08-12 Thread Mark Vidov
What can be done to improve load times of PNG images? Can batik be made to use JAI and its native libraries? Is there a portion of batik that that can be optimized or skipped to improve this specific case (eg decoding, scaling, rendering)? Some details: I'm using batik to display very s

Creating transparent images

2002-08-12 Thread Thomas E Deweese
> "TP" == Tim Pritlove <[EMAIL PROTECTED]> writes: TP> I want to create web site buttons using SVG with some script TP> foo. The buttons should be text on transparent background. TP> Viewing the result after conversion with Batik and the Adobe SVG TP> Plug-In, I always get a white background

Creating transparent images

2002-08-09 Thread Tim Pritlove
Hello, I know this might be a bit off-topic but I hope this is easy to answer so I just go ahead :-) I want to create web site buttons using SVG with some script foo. The buttons should be text on transparent background. Studying the SVG specs I got the impression that the default background of

Re: failed to generated proper images using batik1.5

2002-07-30 Thread monojit
, Gopalkrishna Complex, Residency Road, Bangalore-560025. Ph : +91080-5597622 e-Mail Id : [EMAIL PROTECTED] - Original Message - From: "Thomas E Deweese" <[EMAIL PROTECTED]> To: "Batik Users" <[EMAIL PROTECTED]> Sent: Tuesday, July 30, 2002 4:42 PM Subject: Re: f

Re: failed to generated proper images using batik1.5

2002-07-30 Thread Thomas E Deweese
> "monojit" == monojit <[EMAIL PROTECTED]> writes: monojit> Here is the svg file i had generated. You don't specify a width and height on the outermost svg, so the rasterizer defaults to 400x400. You can set the width and height of the outermost svg by calling 'setSVGCanvasSize(Dimensi

Re: failed to generated proper images using batik1.5

2002-07-30 Thread monojit
Hi Here is the svg file i had generated. - Original Message - From: "Thomas E Deweese" <[EMAIL PROTECTED]> To: "Batik Users" <[EMAIL PROTECTED]> Sent: Monday, July 29, 2002 4:32 PM Subject: failed to generated proper images using batik1.5

failed to generated proper images using batik1.5

2002-07-29 Thread Thomas E Deweese
jpg doesnt show up.But everything goes fine when i use m> batik1.0. Any clues why this is happening? I am attaching the m> images created using both the versions . Including, the svg content you are trying to render would be more useful than the JPGS, also some indication of how you a

failed to generated proper images using batik1.5

2002-07-26 Thread monojit
? I am attaching the images created using both the versions .   regards monojit   <><> - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Dynamic size to images

2002-05-22 Thread Ytai Ben-Tsvi
Title: Message hi, does anybody have an idea of a trick to dynamically adjust images to the size of a text content. i know the answer will probably be to use the "getComputedTextLength()" in the DOM, but this feature isn't yet supported by batik (correct me if i'm

RE: problem printing images embedded in SVG file

2002-05-17 Thread Fayyad, Elias
]] Sent: Thursday, May 16, 2002 7:20 AM To: Batik Users Subject: RE: problem printing images embedded in SVG file >>>>> "FE" == Fayyad, Elias <[EMAIL PROTECTED]> writes: FE> Just as a follow-up, I successfully loaded colorProfile.svg and FE> dataProtocol.svg (bo

RE: problem printing images embedded in SVG file

2002-05-16 Thread Thomas E Deweese
however, I FE> got two solid boxes where the images needed to go in the FE> dataProtocol test, and checkered boxes in the colorProfile test. FE> No images. FE> Any ideas, anyone? I don't use JDK 1.4, but yesterday I committed a fix for drawing to opaque destinations that m

RE: problem printing images embedded in SVG file

2002-05-14 Thread Fayyad, Elias
Just as a follow-up, I successfully loaded colorProfile.svg and dataProtocol.svg (both are files supplied as samples with Batik 1.5 beta 2) into Batik's svgbrowser.  Printing them, however, I got two solid boxes where the images needed to go in the dataProtocol test, and checkered box

RE: problem printing images embedded in SVG file

2002-05-14 Thread Fayyad, Elias
tik's svgbrowser.  Loads perfectly fine, images and all.  However, when I print the document (from the svgbrowser) the text and lines are there, but no images.   Could somebody out there help me out, please, by possibly loading the attached SVG doc into their batik svgbrowser and see if the im

problem printing images embedded in SVG file

2002-05-07 Thread Fayyad, Elias
DK 1.4 and then I had a printing problem...  Let me set up the scenario.   I have a JFrame with a Graphics2D object on it, containing rendered images, lines, and text.  I use the Batik rasterizer to create an SVG out of the Graphics2D object.  The SVG file renders fabulously on the JSVGCanvas (

RE: Using GIF, JPEG, and SVG images interchangeably

2002-03-14 Thread Tangent
Todd, It will be nice to use different formats for icons on a button just like images on the web. In most cases, for a small icon that is 64 by 64 or smaller, GIF should do most of its trick. If you want to shoot something higher with descent transparency, I will suggest PNG. I might stay

Re: Using GIF, JPEG, and SVG images interchangeably

2002-03-14 Thread Justin Couch
Todd Wilson wrote: > We're building a client-side Java app in which we'd like to > interchangeably use JPG, GIF, and SVG images as transparently as > possible. So, for example, we could pass a GIF, JPEG, or SVG to a > JButton to use as an icon, and it wouldn't ca

Using GIF, JPEG, and SVG images interchangeably

2002-03-14 Thread Todd Wilson
We're building a client-side Java app in which we'd like to interchangeably use JPG, GIF, and SVG images as transparently as possible. So, for example, we could pass a GIF, JPEG, or SVG to a JButton to use as an icon, and it wouldn't care what the file format was. There

Re: Problem with images

2001-11-06 Thread Vincent Hardy
Bruno, I think that either the xlink:href attribute is missing on the element or that you omited the SVG DOCTYPE declaration at the top of your SVG file. I hope this helps. Vincent. Bruno Polder wrote: > > Hi, > > i want to use batik, to convert SVG's to PDF. I've built a test-svg to see if

Problem with images

2001-11-05 Thread Bruno Polder
Hi,   i want to use batik, to convert SVG's to PDF. I've built a test-svg to see if it works. Everytime i try to convert the svg, i get th following BridgeException:   org.apache.batik.bridge.BridgeException: file:/e:/testsvg/test1.svg:0The attribute 'xlink:href' of the element is required 

Font Discrepencies in rastered images

2001-08-01 Thread Scott Neufeld
We're using Batik to convert SVG to JPEG, and have noticed inconsistencies between how SVG Viewer displays the SVG, and how the Batik-generated JPEG looks, specifically with regards to the fonts. I have included a PDF file that contains images showing the problem: 64.252.15.147/font_proble

Images

2001-07-05 Thread Thomas E Deweese
DV> worked, either by base 64 or referenced. TD> This is strange, I have a fairly large collection of tiff TD> image variants and it reads the _vast_ majority of them. DV> Gif files work if I reference them. I didn't try base 64 encoding DV> and including them. TD>

Re: Images

2001-06-28 Thread Bill Haneman
David VanderBrooke wrote: > > I've tried various experiments with the image tag and have not had much success. I >can't find much documentation on supported features so hopefully, someone can help. I believe that Batik supports the tag completely. Your best documentation for the tag is the

Images

2001-06-28 Thread Thomas E Deweese
nd encoding only DV> the file contents. DV> I tried various forms of tiff files as well, mime type tiff. None DV> worked, either by base 64 or referenced. This is strange, I have a fairly large collection of tiff image variants and it reads the _vast_ majority of them. DV> Gif fil

Images

2001-06-28 Thread David VanderBrooke
I've tried various experiments with the image tag and have not had much success. I can't find much documentation on supported features so hopefully, someone can help. Using batik 1.0 I would like to include the image in the svg via base64 encoding. The examples work for png but any pngs I ge