You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure I'm doing it correctly but I can't apply transparency to included images.
I'm trying to do it by applying style="opacity: 0.5" to the <image/> element. This seems to produce the expected resust with inkscape but not cairosvg. I made an example graphic to demonstrate what is happening: (image is from ttps://www.w3.org/Icons/SVG/svg-logo-v.png)
Here's the result I get by converting with inkscape (0.92.4, inkscape -e inkscape.png test.svg, left) and cairosvg (2.3.0, cairosvg -o cairosvg.png $PWD/test.svg, right):
It seems that both honor the opacity style of the <rect/> element but cairosvg doesn't honor it on the <image/>.
The text was updated successfully, but these errors were encountered:
olf42
added a commit
to sophiamanns/schreibdochmalwieder
that referenced
this issue
Jul 16, 2019
Hil Thanks for a nice and useful tool/library!
I'm not sure I'm doing it correctly but I can't apply transparency to included images.
I'm trying to do it by applying
style="opacity: 0.5"
to the<image/>
element. This seems to produce the expected resust with inkscape but not cairosvg. I made an example graphic to demonstrate what is happening: (image is from ttps://www.w3.org/Icons/SVG/svg-logo-v.png)Here's the result I get by converting with inkscape (0.92.4,
inkscape -e inkscape.png test.svg
, left) and cairosvg (2.3.0,cairosvg -o cairosvg.png $PWD/test.svg
, right):It seems that both honor the
opacity
style of the<rect/>
element but cairosvg doesn't honor it on the<image/>
.The text was updated successfully, but these errors were encountered: