Re: How to turn anti-alias off when using rasterizer

2003-12-01 Thread Robert McKinnon
I found that setting the rasterizer "-indexed" parameter to 1 effectively turns off anti-aliasing as it forces there to be only 2^1=2 colors in the result PNG image: java -jar batik-rasterizer.jar -indexed 1 The indexed parameter is not listed on the rasterizer web docs: http://xml.apache.

Re: HTML image map transcoder: great but some problems

2003-12-01 Thread Thomas DeWeese
Robert Casties wrote: First of all, thanks to the Batik people and Torsten Knodt for Batik in general and the experimental image map transcoder in special! I had already been wracking my mind about how to get HTML image maps out of Batik when I found Torstens patch in his mail from 2 September

HTML image map transcoder: great but some problems

2003-12-01 Thread Robert Casties
First of all, thanks to the Batik people and Torsten Knodt for Batik in general and the experimental image map transcoder in special! I had already been wracking my mind about how to get HTML image maps out of Batik when I found Torstens patch in his mail from 2 September 2002. (http://koala.il

Re: Document bloat

2003-12-01 Thread Thomas DeWeese
[EMAIL PROTECTED] wrote: I did not realise that the DTD would be read by a non validating parser. I did not include a DOCTYPE in my svg so it seems that the SAXSVGDocumentFactory is including a DTD for me which was another suprise. Actually, the Batik SVG DOM implementation is providing the de

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 be in

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 wro

RE: Document bloat

2003-12-01 Thread pegan
Title: RE: Document bloat Hi Thomas, I did not realise that the DTD would be read by a non validating parser.   I did not include a DOCTYPE in my svg so it seems that the SAXSVGDocumentFactory is including a DTD for me which was another suprise. I just wanted to cut down on the file size, l

Re: R: Text selection

2003-12-01 Thread Thomas DeWeese
Fabio Biscaro wrote: Excuse me, I did the wrong question: Is there a way, in javascript, to get the text that is selected in batik? Ahhh (figured I was missing something), currently the answer is basically no. It wouldn't be very hard to add methods to get it but right now it is essentially i

R: Text selection

2003-12-01 Thread Fabio Biscaro
Excuse me, I did the wrong question: Is there a way, in javascript, to get the text that is selected in batik? Thanks, Fabio -Messaggio originale- Da: Thomas DeWeese [mailto:[EMAIL PROTECTED] Inviato: lunedì 1 dicembre 2003 13.24 A: Batik Users Oggetto: Re: Text selection Fabio Bisca

Re: Document bloat

2003-12-01 Thread Thomas DeWeese
[EMAIL PROTECTED] wrote: Does anybody know what is going on here? All of these are all defined by the SVG specification. These are the default values (or fixed values) defined by the DTD. I am using SAXSVGDocumentFactory ( initialised with Xerces SAX Parser ) to load svg file. SVGDocument

Document bloat

2003-12-01 Thread pegan
Title: Document bloat Does anybody know what is going on here? I am using SAXSVGDocumentFactory ( initialised with  Xerces SAX Parser ) to load svg file. SVGDocument doc = fac.createSVGDocument(fileuri); After loading the doc I find that for example has become http://www.w3.org/1

Re: Internal Frames still don't work

2003-12-01 Thread Mathias Schroeder
Well, i think i have to apologize. To be sure i deleted all my class files to make a clean build and it works now. But i still don' know where the problem was thanks for patience :) Mathias - Original Message - From: "Thomas DeWeese" <[EMAIL PROTECTED]> To: "Batik Users" <[EMAIL PROT

Re: Internal Frames still don't work

2003-12-01 Thread Thomas DeWeese
Mathias Schroeder wrote: my problem with the internal frames still exits. I tried the cvs build dated 26.11.03 with sdk 1.4.1 and 1.4.2 and it doesn't work. If you load a SVG in the Canvas, then activate another internal frame und reactivate the frame with the canvas the installed SVGDocument i

Re: Compress created TIFF-image

2003-12-01 Thread Robert Casties
Gergely Hajdu wrote: Hi Thomas, The quality of the picture is REALLY not important. It will just contain plain text, so resolution/number of colours etc. etc. is absolutely not important. As long as the text can be seen it is enough. The reason why I think it can be compressed this much is that t

RE: Compress created TIFF-image

2003-12-01 Thread Gergely Hajdu
Hi Thomas, The quality of the picture is REALLY not important. It will just contain plain text, so resolution/number of colours etc. etc. is absolutely not important. As long as the text can be seen it is enough. The reason why I think it can be compressed this much is that the TIFF without any c

Internal Frames still don't work

2003-12-01 Thread Mathias Schroeder
Hello Thomas,     my problem with the internal frames still exits. I tried the cvs build dated 26.11.03 with sdk 1.4.1 and 1.4.2 and it doesn't work. If you load a SVG in the Canvas, then activate another internal frame und reactivate the frame with the canvas the installed SVGDocument is nul

Re: Compress created TIFF-image

2003-12-01 Thread Thomas DeWeese
Thomas DeWeese wrote: Gergely Hajdu wrote: I have created a TIFF-image by converting a svg-file(called Image.xml) to a TIFF : My problem is that the image is WAY to big in bytesize (4GB..). I would need to compress it to app. max 50 000 bytes. How do I compress this image as MUCH as possible ?

Re: R: Images

2003-12-01 Thread Thomas DeWeese
Fabio Biscaro wrote: Can you give me a sample to allow batik load jar files? The format of a jar URL is: jar:! Example: jar:http://www.example.org/some/jarfile.jar!samples/image.svg Yes it looks a little weird with the two protocols but it should work. Thanks! Fabio -Messaggio

Re: Text selection

2003-12-01 Thread Thomas DeWeese
Fabio Biscaro wrote: Hi, I would like to know how i can get text selection in svg. Click and drag on text? It should just work. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

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 way,

Text selection

2003-12-01 Thread Fabio Biscaro
Title: Messaggio Hi, I would like to know how i can get text selection in svg.   Thanks, Fabio

Re: R: R: performance 2

2003-12-01 Thread Thomas DeWeese
Fabio Biscaro wrote: Questions: You told me about bounding boxes for events. What are exactly? When we try to figure out what element to send the event to we check if the 'clientX/Y' lies within the bounding box of the element (a bounding box is the smallest rectangle that will hold the elemen

Re: rasterizer on linux : process don't die

2003-12-01 Thread Thomas DeWeese
[EMAIL PROTECTED] wrote: I just installed batik & fop on a linux machine. I use it to export svg to pdf files. The pdf export is successfull, but the java process don't die, and use a lot of memory. Does anyone know where this problem comes from ? (I tried it before on a windows system, it worke

Re: How to turn anti-alias off when using rasterizer

2003-12-01 Thread Thomas DeWeese
Robert McKinnon wrote: Is it possible to turn anti-aliasing off when using the Batik SVG rasterizer to convert SVG to PNG? The easiest way to do this is to add 'shape-rendering="crispEdges"' to the outermost SVG element, this can be done as part of the transcoding processes if you can't change

rasterizer on linux : process don't die

2003-12-01 Thread DGIGON
Hello everyone, I just installed batik & fop on a linux machine. I use it to export svg to pdf files. The pdf export is successfull, but the java process don't die, and use a lot of memory. Does anyone know where this problem comes from ? (I tried it before on a windows system, it worked fine) -