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 un...@web.de on 2003/08/02 21:54:57 UTC

Exception Running SaveAsJPEG

hi,

when running SaveAsJPEG on any svg file I get the following message:

org.apache.batik.transcoder.TranscoderException: null
Enclosed Exception:
Width (0) and height (0) cannot be <= 0
	at org.apache.batik.transcoder.image.ImageTranscoder.transcode(Unknown Source)
	at org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(Unknown Source)
	at SaveAsJPG.main(SaveAsJPG.java:32)
Exception in thread "main" 

where line 32 is 
   t.transcode(input, output);

The simplest svg I tried looks as follows:
 

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20001102//EN"
      "http://www.w3.org/TR/2000/CR-SVG-20001102/DTD/svg-20001102.dtd">
<svg width="650" height="500"> 
 <g>
<rect fill="red" x="10" y="10" width="50" height="30"/>      
  </g>
</svg>

Now what seems to be the problem?

Thanks in advance

Simpleton
______________________________________________________________________________
Spam-Filter fuer alle - bester Spam-Schutz laut ComputerBild 15-03
WEB.DE FreeMail - Deutschlands beste E-Mail - http://s.web.de/?mc=021120


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