-
-
Notifications
You must be signed in to change notification settings - Fork 152
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
SVGs render to an empty PNG #399
Comments
Huh, interesting! I am using CairoSVG version 2.7.1 on Windows. I did experience a lot of trouble getting it installed though, and ultimately had to install the libcairo-2.dll from some other source and use that DLL. Could that be the issue, that this particular DLL is outdated? Edit: Pretty sure this is what I followed: https://stackoverflow.com/questions/46265677/get-cairosvg-working-in-windows I installed uiconverter, got the DLLs and added them to my SystemPath. I also installled GTK3-runtime and added that to the path as well. There may be other things I have done, to be honest.... im not entirely sure. All I know is, I had to really finagle |
Okay, I am not sure what to do. According to this issue, GTK3 should be good? I have uninstalled everything, reinstalled CairoSVG with GTK3, and still.... nothing. |
Yes, you need the DLL files, and the GTK3 installer is probably the easiest way to get them.
Do you mean that the error is gone but that the image is empty? |
Yes, the errors are gone (which is why i deleted the message - my bad, I should have edited or something). I installed GTK3 and included it in my SystemPath on Windows. However, I get the same issue where the image is still basically empty or just a block of black/white.
This is the code im running:
These are the images I get: ... issues with AMD? |
CairoSVG does not use the graphic card. Do you have the same problem by launching |
Yes, unfortunately, I do... seems like exactly the same output. So you dont think the issue is with a... weird |
I don’t think so. I really don’t know where it could come from. Could you please share the result of |
I really don’t know where your problem comes from. I’ve tried two different versions of Cairo on two different computers, and it works well for me.
That’s really, really strange, because your file is pretty easy SVG and should give correct results with many converters. Are you sure that the input SVG are exactly the ones you provided in this issue? Is the original SVG correctly displayed in a browser on your computer for example? The only "strange" thing in this files is the "ex" unit used in the |
I truly have no idea... I am certain that the SVG files are the same. Well, I'm going to go bang my head against the wall for a bit and see if any divine intervention occurs. Thank you so much for your time man! |
I have a couple of SVG files that I wish to convert to PNG or JPEG - doesn't matter really. Unfortunately, whenever I try to render them to JPG or PNG using CairoSVG, the pictures are empty (contain nothing). I am not sure where the issue is, but actually, when I try to do it online using any other SVG -> PNG tools, the same thing happens. Would love some guidance as to why this is happening.
I have included three SVG files here as an example that you can see in SVG-Viewer.
N-Sqaured
Additions
3x3
So, yeah - what could be the reason for this issue?
The text was updated successfully, but these errors were encountered: