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

Error: Unable to parse color from string: ##ffaa22 #702

Open
leoj3n opened this issue Mar 6, 2024 · 0 comments
Open

Error: Unable to parse color from string: ##ffaa22 #702

leoj3n opened this issue Mar 6, 2024 · 0 comments

Comments

@leoj3n
Copy link
Contributor

leoj3n commented Mar 6, 2024

From the docs for Tint it says:

https://github.com/JonasKruckenberg/imagetools/blob/main/docs/directives.md#tint

import Image from 'example.jpg?tint=#ffaa22'
import Image from 'example.jpg?tint=rgba(10,33,127)'

However, for either variation, that results in:

Error: Unable to parse color from string: ##ffaa22

I noticed this works however:

import Image from 'example.jpg?tint=ffaa22'

Not sure what would make rgba work though. Seems like a bug or the docs need to be updated.

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

1 participant