You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Rajesh Boddepalli <bo...@yahoo.com> on 2003/10/07 13:40:35 UTC

Converting .svg to .jpg

Hi,

When i try to Converting ac.svg to samples\ac.jpg 

The .jpg image created some time but i am not able to
preview that .jpg in my browser. 

i am getting messages like this in my console.

I am using Windows-98,jdk1.3.1,svg,javascript


C:\WINDOWS\Desktop\batik-1.1.1>java -jar
batik-rasterizer.jar samples/ac.svg -m
image/jpeg
About to transcode 1 SVG file(s)

Converting ac.svg to samples\ac.jpg ... ERROR: null
Enclosed Exception:
unknown language:
ERROR: null
Enclosed Exception:
unknown language:
ERROR: null
Enclosed Exception:
unknown language:
ERROR: null
Enclosed Exception:
unknown language:
ERROR: The JPEG quality has not been specified. Use
the default one: no compress
ion
... success




Is there any specific system configurations are there?

Thank you,
RajeshB

__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


Re: Converting .svg to .jpg

Posted by Thomas DeWeese <Th...@Kodak.com>.
Rajesh Boddepalli wrote:

> As per your suggestion i added  ECMA script now i am
> getting new errors. still that jpg not comming
> 
> C:\WINDOWS\Desktop\batik-1.1.1>java -jar
                            ^^^^^^

     Gahhh, you should be using Batik-1.5  it is much better
for everything including just static content.

I am 99% certain that this will fix your problems (it
ran fine with current CVS).
BTW the new errors are because the file is trying to
create ECMA Script objects that you haven't provided.

     This doesn't matter for Batik 1.5 because unless
you say '-onload' it won't even look at the script
elements.  If you want to run onload script you will
need to provide those objects (ToolTip, etc) to Batik.

> batik-rasterizer.jar samples/ac.svg -m
> image/jpeg
> About to transcode 1 SVG file(s)



> 
> Converting ac.svg to samples\ac.jpg ... ERROR: null
> Enclosed Exception:
> scripting error: "ToolTip" is not defined.
> ERROR: null
> Enclosed Exception:
> scripting error: "Opacity" is not defined.
> ERROR: null
> Enclosed Exception:
> scripting error: "CrossBars" is not defined.
> ERROR: The JPEG quality has not been specified. Use
> the default one: no compress
> ion
> ... success
> 
> Here  i am attaching the svg file also for your
> reference.
> 
> Thank you,
> Rajesh
> 
> --- Thomas DeWeese <Th...@Kodak.com> wrote:
> 
>>Rajesh Boddepalli wrote:
>>
>>
>>>When i try to Converting ac.svg to samples\ac.jpg 
>>>
>>>The .jpg image created some time but i am not able
>>
>>to
>>
>>>preview that .jpg in my browser. 
>>>
>>>i am getting messages like this in my console.
>>>
>>>I am using Windows-98,jdk1.3.1,svg,javascript
>>
>>   The exception makes me think that you are using
>>the
>>improper name for ECMA script (the variant of
>>jscript/javascript
>>that the SVG standard uses).  Your script elements
>>should look
>>something like:
>>
>><script type="text/ecmascript">
>>
>>   If this isn't the problem sample content would
>>help a lot.
>>
>>
>>>
>>>C:\WINDOWS\Desktop\batik-1.1.1>java -jar
>>>batik-rasterizer.jar samples/ac.svg -m
>>>image/jpeg
>>>About to transcode 1 SVG file(s)
>>>
>>>Converting ac.svg to samples\ac.jpg ... ERROR:
>>
>>null
>>
>>>Enclosed Exception:
>>>unknown language:
>>>ERROR: null
>>>Enclosed Exception:
>>>unknown language:
>>>ERROR: null
>>>Enclosed Exception:
>>>unknown language:
>>>ERROR: null
>>>Enclosed Exception:
>>>unknown language:
>>>ERROR: The JPEG quality has not been specified.
>>
>>Use
>>
>>>the default one: no compress
>>>ion
>>>... success
>>>
>>>
>>>
>>>
>>>Is there any specific system configurations are
>>
>>there?
>>
>>>Thank you,
>>>RajeshB
>>>
>>>__________________________________
>>>Do you Yahoo!?
>>>The New Yahoo! Shopping - with improved product
>>
>>search
>>
>>>http://shopping.yahoo.com
>>>
>>>
>>
> ---------------------------------------------------------------------
> 
>>>To unsubscribe, e-mail:
>>
>>batik-users-unsubscribe@xml.apache.org
>>
>>>For additional commands, e-mail:
>>
>>batik-users-help@xml.apache.org
>>
>>>
>>
>>
>>
>>
> ---------------------------------------------------------------------
> 
>>To unsubscribe, e-mail:
>>batik-users-unsubscribe@xml.apache.org
>>For additional commands, e-mail:
>>batik-users-help@xml.apache.org
>>
> 
> 
> 
> __________________________________
> Do you Yahoo!?
> The New Yahoo! Shopping - with improved product search
> http://shopping.yahoo.com
> 
> 
> ------------------------------------------------------------------------
> 
> <?xml version="1.0" encoding="iso-8859-1"?>
> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20000303 Stylable//EN"   "http://www.w3.org/TR/2000/03/WD-SVG-20000303/DTD/svg-20000303-stylable.dtd">
> <svg width="530.0" height="330.0" >
> <svg id="AC2D6163499" width="530.0" height="330.0"  onclick="AC2D6163499CrossBarsOBJ.CrossBarsClick(evt);" onmouseover="AC2D6163499CrossBarsOBJ.CrossBarsMove(evt);" onmousemove="AC2D6163499CrossBarsOBJ.CrossBarsMove(evt);" >
> <rect style="fill:white;fill-opacity:1.0;stroke:blue;stroke-width:1.0;stroke-opacity:1.0" x="0" y="0" width="530.0" height="330.0" />
>  
> <rect x="3.0" y="3.0" width="524.0" height="20.0" style="fill:blue;fill-opacity:0.4;stroke:black;stroke-width:0.0;stroke-opacity:1.0"/>
> <text x="263.5" y="16.9"  style="font-weight:normal;font-style:normal;text-anchor:middle ;font-family:comic;font-size:13.0;fill:white"> Market Share </text>
> <rect x="3.0" y="307.0" width="524.0" height="20.0" style="fill:blue;fill-opacity:0.4;stroke:black;stroke-width:0.0;stroke-opacity:1.0"/>
> <text x="263.5" y="321.3333333333333"  style="font-weight:normal;font-style:normal;text-anchor:middle ;font-family:comic;font-size:13.0;fill:white"> Of Various Sectors </text>
> <desc> Writing SVG Axis </desc>
> 
> <line x1="57.0" y1="263.25" x2="493.0" y2="263.25" style="fill:black;stroke:black;stroke-width:0.5" />
> <g transform=" translate(57.0 275.1) rotate(45.0)" >
> <text  style="font-weight:normal;font-style:normal;text-anchor:start;font-family:Arial;font-size:12.0;fill:black;stroke:black;stroke-width:0.0">
> 01-Jan-2002
> </text>
> </g>
> <g transform=" translate(493.0 275.1) rotate(45.0)" >
> <text  style="font-weight:normal;font-style:normal;text-anchor:start;font-family:Arial;font-size:12.0;fill:black;stroke:black;stroke-width:0.0">
> 31-Jan-2002
> </text>
> </g>
> <line x1="56.75" y1="37.0" x2="56.75" y2="263.0" style="fill:black;stroke:black;stroke-width:0.5" />
> <g transform=" translate(54.5 269.0) rotate(0)" >
> <text  style="font-weight:normal;font-style:normal;text-anchor:end;font-family:Arial;font-size:12.0;fill:black;stroke:black;stroke-width:0.0">
> -100
> </text>
> </g>
> <g transform=" translate(54.5 193.66666666666669) rotate(0)" >
> <text  style="font-weight:normal;font-style:normal;text-anchor:end;font-family:Arial;font-size:12.0;fill:black;stroke:black;stroke-width:0.0">
> 0
> </text>
> </g>
> <g transform=" translate(54.5 118.33333333333336) rotate(0)" >
> <text  style="font-weight:normal;font-style:normal;text-anchor:end;font-family:Arial;font-size:12.0;fill:black;stroke:black;stroke-width:0.0">
> 100
> </text>
> </g>
> <g transform=" translate(54.5 43.00000000000003) rotate(0)" >
> <text  style="font-weight:normal;font-style:normal;text-anchor:end;font-family:Arial;font-size:12.0;fill:black;stroke:black;stroke-width:0.0">
> 200
> </text>
> </g>
> 
> <rect style=" fill:white;fill-opacity:1.0;" x="57.0" y="37.0" width="436.0" height="226.0" />
> <line x1="57.0" y1="187.66666666666669" x2="493.0" y2="187.66666666666669" style="fill:red;fill-opacity:1.0; stroke:red;stroke-width:0.0"/>
> <defs>
> <linearGradient id="AC2D6163499MyGradient0" x1="0" y1="0" x2="0%" y2="100%" spreadMethod="reflect">
> <stop offset="0%" style="stop-color:#00CC33"/>
> <stop offset="100%" style="stop-color:white"/>
> </linearGradient>
> </defs>
> <g id="AC2D6163499graph0" onload="AC2D6163499changeChildren('graphcircles0',evt)" >
> <g id="graphcircles0" >
> <g id="AC2D616349900" style="fill:black;opacity:1;">
> <circle cx="57.0" cy="247.93333333333334" r="0.8" style="fill:black;" onmouseover="AC2D6163499ToolTipOBJ.ToolTipShow('(01-Jan-2002,:-80)',evt)" onmouseout="AC2D6163499ToolTipOBJ.ToolTipHide(evt)" />
> </g>
> <g id="AC2D616349910" style="fill:black;opacity:1;">
> <circle cx="57.01009259259259" cy="240.4" r="0.8" style="fill:black;" onmouseover="AC2D6163499ToolTipOBJ.ToolTipShow('(01-Jan-2002,:-70)',evt)" onmouseout="AC2D6163499ToolTipOBJ.ToolTipHide(evt)" />
> </g>
> <g id="AC2D616349920" style="fill:black;opacity:1;">
> <circle cx="57.020185185185184" cy="217.8" r="0.8" style="fill:black;" onmouseover="AC2D6163499ToolTipOBJ.ToolTipShow('(01-Jan-2002,:-40)',evt)" onmouseout="AC2D6163499ToolTipOBJ.ToolTipHide(evt)" />
> </g>
> <g id="AC2D616349930" style="fill:black;opacity:1;">
> <circle cx="57.030277777777776" cy="180.13333333333333" r="0.8" style="fill:black;" onmouseover="AC2D6163499ToolTipOBJ.ToolTipShow('(01-Jan-2002,:10)',evt)" onmouseout="AC2D6163499ToolTipOBJ.ToolTipHide(evt)" />
> </g>
> <g id="AC2D616349940" style="fill:black;opacity:1;">
> <circle cx="57.04037037037037" cy="172.6" r="0.8" style="fill:black;" onmouseover="AC2D6163499ToolTipOBJ.ToolTipShow('(01-Jan-2002,:20)',evt)" onmouseout="AC2D6163499ToolTipOBJ.ToolTipHide(evt)" />
> </g>
> <g id="AC2D616349950" style="fill:black;opacity:1;">
> <circle cx="57.05046296296296" cy="165.06666666666666" r="0.8" style="fill:black;" onmouseover="AC2D6163499ToolTipOBJ.ToolTipShow('(01-Jan-2002,:30)',evt)" onmouseout="AC2D6163499ToolTipOBJ.ToolTipHide(evt)" />
> </g>
> <g id="AC2D616349960" style="fill:black;opacity:1;">
> <circle cx="57.06055555555555" cy="157.53333333333333" r="0.8" style="fill:black;" onmouseover="AC2D6163499ToolTipOBJ.ToolTipShow('(01-Jan-2002,:40)',evt)" onmouseout="AC2D6163499ToolTipOBJ.ToolTipHide(evt)" />
> </g>
> <g id="AC2D616349970" style="fill:black;opacity:1;">
> <circle cx="57.070648148148145" cy="165.06666666666666" r="0.8" style="fill:black;" onmouseover="AC2D6163499ToolTipOBJ.ToolTipShow('(01-Jan-2002,:30)',evt)" onmouseout="AC2D6163499ToolTipOBJ.ToolTipHide(evt)" />
> </g>
> <g id="AC2D616349980" style="fill:black;opacity:1;">
> <circle cx="57.080740740740744" cy="172.6" r="0.8" style="fill:black;" onmouseover="AC2D6163499ToolTipOBJ.ToolTipShow('(01-Jan-2002,:20)',evt)" onmouseout="AC2D6163499ToolTipOBJ.ToolTipHide(evt)" />
> </g>
> <g id="AC2D616349990" style="fill:black;opacity:1;">
> <circle cx="57.090833333333336" cy="157.53333333333333" r="0.8" style="fill:black;" onmouseover="AC2D6163499ToolTipOBJ.ToolTipShow('(01-Jan-2002,:40)',evt)" onmouseout="AC2D6163499ToolTipOBJ.ToolTipHide(evt)" />
> </g>
> <g id="AC2D6163499100" style="fill:black;opacity:1;">
> <circle cx="57.10092592592593" cy="127.4" r="0.8" style="fill:black;" onmouseover="AC2D6163499ToolTipOBJ.ToolTipShow('(01-Jan-2002,:80)',evt)" onmouseout="AC2D6163499ToolTipOBJ.ToolTipHide(evt)" />
> </g>
> <g id="AC2D6163499110" style="fill:black;opacity:1;">
> <circle cx="57.11101851851852" cy="119.86666666666667" r="0.8" style="fill:black;" onmouseover="AC2D6163499ToolTipOBJ.ToolTipShow('(01-Jan-2002,:90)',evt)" onmouseout="AC2D6163499ToolTipOBJ.ToolTipHide(evt)" />
> </g>
> </g>
> <g id="AC2D6163499A2D0" style="fill:#00CC33;fill-opacity:0.5;stroke:black;stroke-width:0.3;"   >
> <path style="fill:url(#AC2D6163499MyGradient0);" d="M 57.0 247.93333333333334 L 57.01009259259259 240.4 L 57.020185185185184 217.8 L 57.030277777777776 180.13333333333333 L 57.04037037037037 172.6 L 57.05046296296296 165.06666666666666 L 57.06055555555555 157.53333333333333 L 57.070648148148145 165.06666666666666 L 57.080740740740744 172.6 L 57.090833333333336 157.53333333333333 L 57.10092592592593 127.4 L 57.11101851851852 119.86666666666667 L 493.0 187.66666666666669 L 57.0 187.66666666666669 z"/>
> </g>
> </g>
> <defs>
> <linearGradient id="AC2D6163499MyGradient1" x1="0" y1="0" x2="0%" y2="100%" spreadMethod="reflect">
> <stop offset="0%" style="stop-color:#6666FF"/>
> <stop offset="100%" style="stop-color:white"/>
> </linearGradient>
> </defs>
> <g id="AC2D6163499graph1" onload="AC2D6163499changeChildren('graphcircles1',evt)" >
> <g id="graphcircles1" >
> <g id="AC2D616349901" style="fill:black;opacity:1;">
> <circle cx="57.0" cy="142.46666666666667" r="0.8" style="fill:black;" onmouseover="AC2D6163499ToolTipOBJ.ToolTipShow('(01-Jan-2002,:60)',evt)" onmouseout="AC2D6163499ToolTipOBJ.ToolTipHide(evt)" />
> </g>
> <g id="AC2D616349911" style="fill:black;opacity:1;">
> <circle cx="57.01009259259259" cy="195.2" r="0.8" style="fill:black;" onmouseover="AC2D6163499ToolTipOBJ.ToolTipShow('(01-Jan-2002,:-10)',evt)" onmouseout="AC2D6163499ToolTipOBJ.ToolTipHide(evt)" />
> </g>
> <g id="AC2D616349921" style="fill:black;opacity:1;">
> <circle cx="57.020185185185184" cy="232.86666666666667" r="0.8" style="fill:black;" onmouseover="AC2D6163499ToolTipOBJ.ToolTipShow('(01-Jan-2002,:-60)',evt)" onmouseout="AC2D6163499ToolTipOBJ.ToolTipHide(evt)" />
> </g>
> <g id="AC2D616349931" style="fill:black;opacity:1;">
> <circle cx="57.030277777777776" cy="247.93333333333334" r="0.8" style="fill:black;" onmouseover="AC2D6163499ToolTipOBJ.ToolTipShow('(01-Jan-2002,:-80)',evt)" onmouseout="AC2D6163499ToolTipOBJ.ToolTipHide(evt)" />
> </g>
> <g id="AC2D616349941" style="fill:black;opacity:1;">
> <circle cx="57.04037037037037" cy="255.46666666666667" r="0.8" style="fill:black;" onmouseover="AC2D6163499ToolTipOBJ.ToolTipShow('(01-Jan-2002,:-90)',evt)" onmouseout="AC2D6163499ToolTipOBJ.ToolTipHide(evt)" />
> </g>
> <g id="AC2D616349951" style="fill:black;opacity:1;">
> <circle cx="57.05046296296296" cy="240.4" r="0.8" style="fill:black;" onmouseover="AC2D6163499ToolTipOBJ.ToolTipShow('(01-Jan-2002,:-70)',evt)" onmouseout="AC2D6163499ToolTipOBJ.ToolTipHide(evt)" />
> </g>
> <g id="AC2D616349961" style="fill:black;opacity:1;">
> <circle cx="57.06055555555555" cy="210.26666666666665" r="0.8" style="fill:black;" onmouseover="AC2D6163499ToolTipOBJ.ToolTipShow('(01-Jan-2002,:-30)',evt)" onmouseout="AC2D6163499ToolTipOBJ.ToolTipHide(evt)" />
> </g>
> <g id="AC2D616349971" style="fill:black;opacity:1;">
> <circle cx="57.070648148148145" cy="142.46666666666667" r="0.8" style="fill:black;" onmouseover="AC2D6163499ToolTipOBJ.ToolTipShow('(01-Jan-2002,:60)',evt)" onmouseout="AC2D6163499ToolTipOBJ.ToolTipHide(evt)" />
> </g>
> <g id="AC2D616349981" style="fill:black;opacity:1;">
> <circle cx="57.080740740740744" cy="104.80000000000001" r="0.8" style="fill:black;" onmouseover="AC2D6163499ToolTipOBJ.ToolTipShow('(01-Jan-2002,:110)',evt)" onmouseout="AC2D6163499ToolTipOBJ.ToolTipHide(evt)" />
> </g>
> <g id="AC2D616349991" style="fill:black;opacity:1;">
> <circle cx="57.090833333333336" cy="78.43333333333334" r="0.8" style="fill:black;" onmouseover="AC2D6163499ToolTipOBJ.ToolTipShow('(01-Jan-2002,:145)',evt)" onmouseout="AC2D6163499ToolTipOBJ.ToolTipHide(evt)" />
> </g>
> <g id="AC2D6163499101" style="fill:black;opacity:1;">
> <circle cx="57.10092592592593" cy="44.53333333333333" r="0.8" style="fill:black;" onmouseover="AC2D6163499ToolTipOBJ.ToolTipShow('(01-Jan-2002,:190)',evt)" onmouseout="AC2D6163499ToolTipOBJ.ToolTipHide(evt)" />
> </g>
> <g id="AC2D6163499111" style="fill:black;opacity:1;">
> <circle cx="57.11101851851852" cy="162.05333333333334" r="0.8" style="fill:black;" onmouseover="AC2D6163499ToolTipOBJ.ToolTipShow('(01-Jan-2002,:34)',evt)" onmouseout="AC2D6163499ToolTipOBJ.ToolTipHide(evt)" />
> </g>
> </g>
> <g id="AC2D6163499A2D1" style="fill:#6666FF;fill-opacity:0.5;stroke:black;stroke-width:0.3;"   >
> <path style="fill:url(#AC2D6163499MyGradient1);" d="M 57.0 142.46666666666667 L 57.01009259259259 195.2 L 57.020185185185184 232.86666666666667 L 57.030277777777776 247.93333333333334 L 57.04037037037037 255.46666666666667 L 57.05046296296296 240.4 L 57.06055555555555 210.26666666666665 L 57.070648148148145 142.46666666666667 L 57.080740740740744 104.80000000000001 L 57.090833333333336 78.43333333333334 L 57.10092592592593 44.53333333333333 L 57.11101851851852 162.05333333333334 L 493.0 187.66666666666669 L 57.0 187.66666666666669 z"/>
> </g>
> </g>
> <defs>
> <linearGradient id="AC2D6163499MyGradient2" x1="0" y1="0" x2="0%" y2="100%" spreadMethod="reflect">
> <stop offset="0%" style="stop-color:#FF6666"/>
> <stop offset="100%" style="stop-color:white"/>
> </linearGradient>
> </defs>
> <g id="AC2D6163499graph2" onload="AC2D6163499changeChildren('graphcircles2',evt)" >
> <g id="graphcircles2" >
> <g id="AC2D616349902" style="fill:black;opacity:1;">
> <circle cx="57.0" cy="82.19999999999999" r="0.8" style="fill:black;" onmouseover="AC2D6163499ToolTipOBJ.ToolTipShow('(01-Jan-2002,:140)',evt)" onmouseout="AC2D6163499ToolTipOBJ.ToolTipHide(evt)" />
> </g>
> <g id="AC2D616349912" style="fill:black;opacity:1;">
> <circle cx="57.01009259259259" cy="112.33333333333334" r="0.8" style="fill:black;" onmouseover="AC2D6163499ToolTipOBJ.ToolTipShow('(01-Jan-2002,:100)',evt)" onmouseout="AC2D6163499ToolTipOBJ.ToolTipHide(evt)" />
> </g>
> <g id="AC2D616349922" style="fill:black;opacity:1;">
> <circle cx="57.020185185185184" cy="119.86666666666667" r="0.8" style="fill:black;" onmouseover="AC2D6163499ToolTipOBJ.ToolTipShow('(01-Jan-2002,:90)',evt)" onmouseout="AC2D6163499ToolTipOBJ.ToolTipHide(evt)" />
> </g>
> <g id="AC2D616349932" style="fill:black;opacity:1;">
> <circle cx="57.030277777777776" cy="112.33333333333334" r="0.8" style="fill:black;" onmouseover="AC2D6163499ToolTipOBJ.ToolTipShow('(01-Jan-2002,:100)',evt)" onmouseout="AC2D6163499ToolTipOBJ.ToolTipHide(evt)" />
> </g>
> <g id="AC2D616349942" style="fill:black;opacity:1;">
> <circle cx="57.04037037037037" cy="97.26666666666668" r="0.8" style="fill:black;" onmouseover="AC2D6163499ToolTipOBJ.ToolTipShow('(01-Jan-2002,:120)',evt)" onmouseout="AC2D6163499ToolTipOBJ.ToolTipHide(evt)" />
> </g>
> <g id="AC2D616349952" style="fill:black;opacity:1;">
> <circle cx="57.05046296296296" cy="82.19999999999999" r="0.8" style="fill:black;" onmouseover="AC2D6163499ToolTipOBJ.ToolTipShow('(01-Jan-2002,:140)',evt)" onmouseout="AC2D6163499ToolTipOBJ.ToolTipHide(evt)" />
> </g>
> <g id="AC2D616349962" style="fill:black;opacity:1;">
> <circle cx="57.06055555555555" cy="89.73333333333332" r="0.8" style="fill:black;" onmouseover="AC2D6163499ToolTipOBJ.ToolTipShow('(01-Jan-2002,:130)',evt)" onmouseout="AC2D6163499ToolTipOBJ.ToolTipHide(evt)" />
> </g>
> <g id="AC2D616349972" style="fill:black;opacity:1;">
> <circle cx="57.070648148148145" cy="104.80000000000001" r="0.8" style="fill:black;" onmouseover="AC2D6163499ToolTipOBJ.ToolTipShow('(01-Jan-2002,:110)',evt)" onmouseout="AC2D6163499ToolTipOBJ.ToolTipHide(evt)" />
> </g>
> <g id="AC2D616349982" style="fill:black;opacity:1;">
> <circle cx="57.080740740740744" cy="142.46666666666667" r="0.8" style="fill:black;" onmouseover="AC2D6163499ToolTipOBJ.ToolTipShow('(01-Jan-2002,:60)',evt)" onmouseout="AC2D6163499ToolTipOBJ.ToolTipHide(evt)" />
> </g>
> <g id="AC2D616349992" style="fill:black;opacity:1;">
> <circle cx="57.090833333333336" cy="180.13333333333333" r="0.8" style="fill:black;" onmouseover="AC2D6163499ToolTipOBJ.ToolTipShow('(01-Jan-2002,:10)',evt)" onmouseout="AC2D6163499ToolTipOBJ.ToolTipHide(evt)" />
> </g>
> <g id="AC2D6163499102" style="fill:black;opacity:1;">
> <circle cx="57.10092592592593" cy="225.33333333333334" r="0.8" style="fill:black;" onmouseover="AC2D6163499ToolTipOBJ.ToolTipShow('(01-Jan-2002,:-50)',evt)" onmouseout="AC2D6163499ToolTipOBJ.ToolTipHide(evt)" />
> </g>
> <g id="AC2D6163499112" style="fill:black;opacity:1;">
> <circle cx="57.11101851851852" cy="153.01333333333332" r="0.8" style="fill:black;" onmouseover="AC2D6163499ToolTipOBJ.ToolTipShow('(01-Jan-2002,:46)',evt)" onmouseout="AC2D6163499ToolTipOBJ.ToolTipHide(evt)" />
> </g>
> </g>
> <g id="AC2D6163499A2D2" style="fill:#FF6666;fill-opacity:0.5;stroke:black;stroke-width:0.3;"   >
> <path style="fill:url(#AC2D6163499MyGradient2);" d="M 57.0 82.19999999999999 L 57.01009259259259 112.33333333333334 L 57.020185185185184 119.86666666666667 L 57.030277777777776 112.33333333333334 L 57.04037037037037 97.26666666666668 L 57.05046296296296 82.19999999999999 L 57.06055555555555 89.73333333333332 L 57.070648148148145 104.80000000000001 L 57.080740740740744 142.46666666666667 L 57.090833333333336 180.13333333333333 L 57.10092592592593 225.33333333333334 L 57.11101851851852 153.01333333333332 L 493.0 187.66666666666669 L 57.0 187.66666666666669 z"/>
> </g>
> </g>
> <script type="text/ecmascript">
> <![CDATA[
> 
> var AC2D6163499ToolTipOBJ=new ToolTip();
> 	AC2D6163499ToolTipOBJ.FontType='Arial';
> 	AC2D6163499ToolTipOBJ.FontSize=12.0;
> 	AC2D6163499ToolTipOBJ.FontColor='black';
> 	AC2D6163499ToolTipOBJ.FontBase=16.0;
> 
> 	AC2D6163499ToolTipOBJ.BackGroundColor='yellow';
> 	AC2D6163499ToolTipOBJ.BorderColor='black';
> 	AC2D6163499ToolTipOBJ.RectHeight=24.0;
> 
> 	AC2D6163499ToolTipOBJ.RatioX=1;
> 	AC2D6163499ToolTipOBJ.RatioY=1;
> 
> 	AC2D6163499ToolTipOBJ.StartX=0.0;
> 	AC2D6163499ToolTipOBJ.StartY=0.0;
> 	AC2D6163499ToolTipOBJ.EndX=530.0;
> 	AC2D6163499ToolTipOBJ.EndY=330.0;
> 
> ]]></script>
> <script type="text/ecmascript">
> <![CDATA[
> 
> var AC2D6163499OpacityOBJ=new Opacity();
> AC2D6163499OpacityOBJ.where = 0;
> AC2D6163499OpacityOBJ.windowName = '';
> AC2D6163499OpacityOBJ.windowLeft = 0;
> AC2D6163499OpacityOBJ.windowTop = 0;
> AC2D6163499OpacityOBJ.windowWidth = 400;
> AC2D6163499OpacityOBJ.windowHeight = 300;
> AC2D6163499OpacityOBJ.windowProps = '';
> ]]></script>
> <script type="text/ecmascript">
> <![CDATA[
> 
> var AC2D6163499CrossBarsOBJ=new CrossBars();
> 	AC2D6163499CrossBarsOBJ.BarsColor='black';
> 	
> 	AC2D6163499CrossBarsOBJ.RatioX=1;
> 	AC2D6163499CrossBarsOBJ.RatioY=1;
> 	
> 	AC2D6163499CrossBarsOBJ.StartX=57.0;
> 	AC2D6163499CrossBarsOBJ.StartY=37.0;
> 	AC2D6163499CrossBarsOBJ.EndX=493.0;
> 	AC2D6163499CrossBarsOBJ.EndY=263.0;
> 
> 	AC2D6163499CrossBarsOBJ.CrossBarGap=3;
> 	
> 	AC2D6163499CrossBarsOBJ.appear='hidden';
> 	
> ]]></script>
> <script type="text/ecmascript">
> <![CDATA[
> 
> function AC2D6163499changeChildren(id,evt)
> {
> 	var svgDoc = evt.getTarget().getOwnerDocument()
> 	var svgobject=svgDoc.getElementById(id)
> 	var parent = svgobject.getParentNode();
> 	parent.removeChild(svgobject);
> 	parent.appendChild(svgobject);
>  	return true;
> }
> ]]></script>
> </svg>
> <g  transform="translate(510.0 165.0) rotate(90) ">
> <text  style="font-weight:bold;font-style:italic;text-anchor:middle;font-family:Arial;font-size:20;fill:black;stroke:black;stroke-width:2;stroke-opacity:0.1;fill-opacity:0.1">
> EVALUATION
> </text>
> </g>
> <g  transform="translate(490.0 165.0) rotate(90) ">
> <text  style="font-weight:bold;font-style:italic;text-anchor:middle;font-family:Arial;font-size:20;fill:black;stroke:black;stroke-width:2;stroke-opacity:0.1;fill-opacity:0.1">
> COPY
> </text>
> </g>
> <g  transform="translate(4 165.0) rotate(90) ">
> <text  style="font-weight:bold;font-style:italic;text-anchor:middle;font-family:Arial;font-size:20;fill:black;stroke:black;stroke-width:2;stroke-opacity:0.1;fill-opacity:0.1">
> COPY
> </text>
> </g>
> <g  transform="translate(24 165.0) rotate(90) ">
> <text  style="font-weight:bold;font-style:italic;text-anchor:middle;font-family:Arial;font-size:20;fill:black;stroke:black;stroke-width:2;stroke-opacity:0.1;fill-opacity:0.1">
> EVALUATION
> </text>
> </g>
> </svg>
> 
> 
> ------------------------------------------------------------------------
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: batik-users-help@xml.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


Re: Converting .svg to .jpg

Posted by Rajesh Boddepalli <bo...@yahoo.com>.
Hi Thomas,

As per your suggestion i added  ECMA script now i am
getting new errors. still that jpg not comming

C:\WINDOWS\Desktop\batik-1.1.1>java -jar
batik-rasterizer.jar samples/ac.svg -m
image/jpeg
About to transcode 1 SVG file(s)

Converting ac.svg to samples\ac.jpg ... ERROR: null
Enclosed Exception:
scripting error: "ToolTip" is not defined.
ERROR: null
Enclosed Exception:
scripting error: "Opacity" is not defined.
ERROR: null
Enclosed Exception:
scripting error: "CrossBars" is not defined.
ERROR: The JPEG quality has not been specified. Use
the default one: no compress
ion
... success

Here  i am attaching the svg file also for your
reference.

Thank you,
Rajesh

--- Thomas DeWeese <Th...@Kodak.com> wrote:
> Rajesh Boddepalli wrote:
> 
> > When i try to Converting ac.svg to samples\ac.jpg 
> > 
> > The .jpg image created some time but i am not able
> to
> > preview that .jpg in my browser. 
> > 
> > i am getting messages like this in my console.
> > 
> > I am using Windows-98,jdk1.3.1,svg,javascript
> 
>    The exception makes me think that you are using
> the
> improper name for ECMA script (the variant of
> jscript/javascript
> that the SVG standard uses).  Your script elements
> should look
> something like:
> 
> <script type="text/ecmascript">
> 
>    If this isn't the problem sample content would
> help a lot.
> 
> > 
> > 
> > C:\WINDOWS\Desktop\batik-1.1.1>java -jar
> > batik-rasterizer.jar samples/ac.svg -m
> > image/jpeg
> > About to transcode 1 SVG file(s)
> > 
> > Converting ac.svg to samples\ac.jpg ... ERROR:
> null
> > Enclosed Exception:
> > unknown language:
> > ERROR: null
> > Enclosed Exception:
> > unknown language:
> > ERROR: null
> > Enclosed Exception:
> > unknown language:
> > ERROR: null
> > Enclosed Exception:
> > unknown language:
> > ERROR: The JPEG quality has not been specified.
> Use
> > the default one: no compress
> > ion
> > ... success
> > 
> > 
> > 
> > 
> > Is there any specific system configurations are
> there?
> > 
> > Thank you,
> > RajeshB
> > 
> > __________________________________
> > Do you Yahoo!?
> > The New Yahoo! Shopping - with improved product
> search
> > http://shopping.yahoo.com
> > 
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> batik-users-unsubscribe@xml.apache.org
> > For additional commands, e-mail:
> batik-users-help@xml.apache.org
> > 
> > 
> 
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> batik-users-unsubscribe@xml.apache.org
> For additional commands, e-mail:
> batik-users-help@xml.apache.org
> 


__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

Re: Converting .svg to .jpg

Posted by Thomas DeWeese <Th...@Kodak.com>.
Rajesh Boddepalli wrote:

> When i try to Converting ac.svg to samples\ac.jpg 
> 
> The .jpg image created some time but i am not able to
> preview that .jpg in my browser. 
> 
> i am getting messages like this in my console.
> 
> I am using Windows-98,jdk1.3.1,svg,javascript

   The exception makes me think that you are using the
improper name for ECMA script (the variant of jscript/javascript
that the SVG standard uses).  Your script elements should look
something like:

<script type="text/ecmascript">

   If this isn't the problem sample content would help a lot.

> 
> 
> C:\WINDOWS\Desktop\batik-1.1.1>java -jar
> batik-rasterizer.jar samples/ac.svg -m
> image/jpeg
> About to transcode 1 SVG file(s)
> 
> Converting ac.svg to samples\ac.jpg ... ERROR: null
> Enclosed Exception:
> unknown language:
> ERROR: null
> Enclosed Exception:
> unknown language:
> ERROR: null
> Enclosed Exception:
> unknown language:
> ERROR: null
> Enclosed Exception:
> unknown language:
> ERROR: The JPEG quality has not been specified. Use
> the default one: no compress
> ion
> ... success
> 
> 
> 
> 
> Is there any specific system configurations are there?
> 
> Thank you,
> RajeshB
> 
> __________________________________
> Do you Yahoo!?
> The New Yahoo! Shopping - with improved product search
> http://shopping.yahoo.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: batik-users-help@xml.apache.org
> 
> 




---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org