xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Hoffer <dhoff...@gmail.com>
Subject Re: Errors converting to PNG format
Date Sat, 30 Mar 2013 13:15:04 GMT
Yeah it seems I was given bad SVG files, even newer browsers couldn't
render those.

-Dave


On Sat, Mar 30, 2013 at 6:00 AM, Thomas DeWeese <thomas.deweese@gmail.com>wrote:

> I don't think rgba(...) is allowed in SVG 1.2.   You need to use
> fill-opacity to set the alpha value.
>
> Thomas
>
>
> On Fri, Mar 29, 2013 at 3:08 PM, David Hoffer <dhoffer6@gmail.com> wrote:
>
>> Here is an example of the start of the file:
>>
>> <?xml version="1.0" standalone="no"?>
>> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
>>   "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
>> <svg width="48" height="48">
>>   <circle cx="0" cy="0" r="1" fill="none"/>
>>   <circle cx="1" cy="0" r="1" fill="none"/>
>>   <circle cx="2" cy="0" r="1" fill="none"/>
>>   <circle cx="3" cy="0" r="1" fill="none"/>
>>   <circle cx="4" cy="0" r="1" fill="none"/>
>>   <circle cx="5" cy="0" r="1" fill="none"/>
>>   <circle cx="6" cy="0" r="1" fill="none"/>
>>   <circle cx="7" cy="0" r="1" fill="none"/>
>>   <circle cx="8" cy="0" r="1" fill="none"/>
>>   <circle cx="9" cy="0" r="1" fill="none"/>
>>   <circle cx="10" cy="0" r="1" fill="rgba(179,179,179,0.027451)"/>
>>   <circle cx="11" cy="0" r="1" fill="rgba(179,179,179,0.054902)"/>
>>
>> It seems rgba is not being allowed by Batik?
>>
>> -Dave
>>
>>
>> On Fri, Mar 29, 2013 at 12:08 PM, David Hoffer <dhoffer6@gmail.com>wrote:
>>
>>> I'm new to Batik, trying to use it to convert SVG images to PNG.  I'm
>>> getting tons of the following types of errors.
>>>
>>> The attribute "fill" represents an invalid CSS value
>>> ("rgba(238,238,238,0.996078
>>> )").
>>> Original message:
>>> The "fill" property does not support function values.
>>>
>>> ***** CSSEngine: exception
>>> property.syntax.error:org.w3c.dom.DOMException: The "
>>> fill" property does not support function values.
>>>
>>> AttrValue:rgba(238,238,238,0.996078)
>>>
>>> Exception:org.w3c.dom.DOMException
>>> org.w3c.dom.DOMException: The "fill" property does not support function
>>> values.
>>>         at
>>> org.apache.batik.css.engine.value.AbstractValueFactory.createInvalidL
>>> exicalUnitDOMException(AbstractValueFactory.java:60)
>>>
>>> Any ideas what I'm doing wrong?
>>>
>>
>>
>

Mime
View raw message