Skip to content

I have a svg file ,when try to convert to png,show Can't handle color: #F72D50FF #213

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
bs111 opened this issue Oct 31, 2019 · 0 comments

Comments

@bs111
Copy link

bs111 commented Oct 31, 2019

test_Vector.zip
the attached svg file can be open by chrome ,and show it.
1

but when i try to convert it by svglib,it show all white.

2

Code As:
import svglib
from svglib.svglib import svg2rlg
from reportlab.graphics import renderPDF, renderPM

drawing = svg2rlg("test_Vector.svg")
renderPDF.drawToFile(drawing, "test_Vector.pdf")
renderPM.drawToFile(drawing, "test_Vector.png", fmt="PNG")
renderPM.drawToFile(drawing, "test_Vector.jpg", fmt="JPG")

error output
Can't handle color: #F72D50FF
Can't handle color: #FFFFFFFF

env
win10 1903
python 3.7.4
svglib 0.9.2

claudep added a commit to claudep/svglib that referenced this issue Oct 31, 2019
claudep added a commit to claudep/svglib that referenced this issue Oct 31, 2019
claudep added a commit to claudep/svglib that referenced this issue Oct 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant