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

feat: transparent placeholders option (closes #5) #22

Closed
wants to merge 3 commits into from
Closed

feat: transparent placeholders option (closes #5) #22

wants to merge 3 commits into from

Conversation

tobimori
Copy link
Contributor

@tobimori tobimori commented Jan 5, 2023

This PR adds a transparent option to the supplied methods which removes the SVG filter snippet that causes the artificats without comprimising on quality for other generated placeholders.

When not explictly specified, transparency is detected by a new method that looks at each Pixel (roughly loops Pixel Target times) and checks whether they're transparent.

@johannschopplich
Copy link
Owner

Thank you! I'm actually working on an updated version of the plugin this very moment. Gonna be using a $options syntax for the file methods. I will incorporate your work manually.

johannschopplich added a commit that referenced this pull request Jan 5, 2023
@johannschopplich
Copy link
Owner

johannschopplich commented Jan 5, 2023

I have manually included your changes, since I already was working on the $options support instead of having to pass two parameters. Thank you for your work! You've earned your place in the credits with this well-crafted PR. 🙂

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