If you try to use the transcoder on a page that does not have a width or a height set the transcoder produces the following message (batik 1.5):
 
Error building JPEG org.apache.batik.transcoder.TranscoderException: null
Enclosed Exception:
Width (0) and height (0) cannot be <= 0
 
Would it be reasonable to change Batik such that if the width and height were both 0, viewBox data would be used as the width and height i.e. you get the width and height as the 3rd and 4th arguments of the svg viewBox attribute.
 
Obviously if there was no viewBox either you would still get the above error.
 
SVG viewers can display files with a viewBox and no width and height settings so why shouldn't the transcoder be able to convert them?

Robert Longson

 

This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.

Reply via email to