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

Relax requirements, workaround for weasyprint removing image rendering (due to removing cairo dep). #62

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

rwightman
Copy link

I'm planning to base a (partially) synthetic document datapipeline on generation capabilities in this lib. As is known from issues going back 2 years, in it's current state this library cannot be installed (too many out of date dependencies), and use of weasyprint is broken after they removed pdf/image rendering.

This PR

  • removes strict requirements (builds fine in recent python env)
  • adds image rendering via either fitz or pypdfium2 (both are currently soft-deps). fitz is AGPL so I won't make it a hard dep, but probably worth making pypdfium2 a hard dependency.
  • changes default demo args so that the augmentations are a little less aggressive and we can read the output (barely)

Tests for png/image output require a rethink.

I'd like to know if there'd be any intent on merging these changes. If I could be added as a maintainer? Otherwise I'll likely have to maintain a parallel fork w/ new pip package to be able to use in other projects.

Thanks!

@rwightman rwightman requested a review from a team as a code owner January 18, 2024 22:47
@rwightman
Copy link
Author

@laserprec looks like you've moved on from MS, but might know who to ping there if there's any interest in keeping this project alive. Thanks

@laserprec
Copy link
Contributor

Hi @rwightman, thanks for your support of the repo and offer to help, and I apologize for this late response. Yes, I am no longer able to help merging PRs. I think @jgc128 and/or @amitgupte should be able to help here.

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

Successfully merging this pull request may close these issues.

None yet

2 participants