Skip to content
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

bitmap image output #79

Closed
eOperationsPN opened this issue Apr 6, 2022 · 2 comments
Closed

bitmap image output #79

eOperationsPN opened this issue Apr 6, 2022 · 2 comments

Comments

@eOperationsPN
Copy link

eOperationsPN commented Apr 6, 2022

is there any fix for the bitmap image output problem also described in https://groups.google.com/g/reportlab-users/c/8CTaC8Ss8dc?

I am also getting a lot of x_order_2: colinear! errors and a broken .png file with lots of horizontal lines when I try your example.

wsl2 / ubuntu 18.04
python 3.6.9
svglib 1.1.0
reportlab 3.6.8

Or did I miss something? Many thanks:)

@claudep
Copy link
Owner

claudep commented Apr 7, 2022

Unfortunately, PNG output of standard Reportlab is known to be limited (read deeplook/svglib#299 (comment)). So either you can try changing the renderer used by Reportlab as suggested in that comment, or use a different tool that Reportlab if you want to generate PNG. I personnally only use Reportlab to generate PDF. Typically using Imagemagick's convert is generally good enough for a fair PNG output.

We may amend the README to explain this.

@eOperationsPN
Copy link
Author

Thank you for your reply, this method works well for me.

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

2 participants