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

genalog does not work with newer versions of weasyprint #48

Open
pedromb opened this issue Sep 22, 2021 · 2 comments
Open

genalog does not work with newer versions of weasyprint #48

pedromb opened this issue Sep 22, 2021 · 2 comments

Comments

@pedromb
Copy link

pedromb commented Sep 22, 2021

Newer versions of weasyprint (53.x) removed their dependency on cairo and do not support PNG exports anymore (see Kozea/WeasyPrint#1232 and https://www.courtbouillon.org/blog/00004-weasyprint-without-cairo-what-s-different)

This breaks some parts of the genalog code, specifically the following methods are affected (as far as I have seen)

def render_png(self, target=None, split_pages=False, resolution=300):

def render_array(self, resolution=300, channel="GRAYSCALE"):

Maybe some warning should be added to the documentation regarding this and what is the plan moving forward.

Thank you :D

@laserprec
Copy link
Contributor

Thanks for pointing that out! Will keep this in mind as we proceed. If you mind me asking, is there a feature you are looking for in using the latest release of weasyprint?

@pedromb
Copy link
Author

pedromb commented Sep 30, 2021

The easiest way to design HTML layouts right now is using the CSS grid layout, however weasyprint does not currently supports it (not even in the latest release as of now). However, its on the milestones for version 54 (see here). I think this is a must have for genalog.

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