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

Support CSS filter style #1972

Open
claell opened this issue Sep 25, 2023 · 5 comments
Open

Support CSS filter style #1972

claell opened this issue Sep 25, 2023 · 5 comments
Labels
feature New feature that should be supported

Comments

@claell
Copy link
Contributor

claell commented Sep 25, 2023

Doesn't seem to be supported as of now. I didn't find an issue about this or any other related documentation for this and WeasyPrint.

Since I'd find the feature helpful, I am opening this issue.

@liZe liZe added the feature New feature that should be supported label Sep 25, 2023
@liZe
Copy link
Member

liZe commented Sep 25, 2023

That would be nice to have! Some filters are already handled by the PDF specification and should be quite "easy" to support, once the whole CSS parsing/validation code is done.

If someone wants to try, I can definitely help!

Related to #1962.

@grewn0uille
Copy link
Member

Hello!

As you may know, two weeks ago was CourtBouillon 3-year anniversary 🎉.

For this occasion, we prepared a short survey to have your opinion on this year’s features and to know what you’d like to see in the future!
Don’t hesitate to give a boost to this feature ✨️

The survey is opened until November 19.

@claell
Copy link
Contributor Author

claell commented Jul 1, 2024

Just came to this again, when trying to find a way to blur an area of an image. If there is a different way how to do this within WeasyPrint, I am all ears.

Also see https://stackoverflow.com/questions/78534282/applying-css-filter-property-to-pdf-generated-with-weasyprint

@liZe
Copy link
Member

liZe commented Jul 2, 2024

Just came to this again, when trying to find a way to blur an area of an image.

Unfortunately, as far as I know, there’s no blur operation in the PDF format. Other filters may be easy to add because they exist in PDF.

@claell
Copy link
Contributor Author

claell commented Jul 2, 2024

Alright, thanks for letting me know! I plan to use a workaround for now (blurring the area of the image using Pillow beforehand). Probably less flexible, as it needs more planning and considerations, but also not too bad for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature that should be supported
Projects
None yet
Development

No branches or pull requests

3 participants