JonasKruckenberg / imagetools

Load and transform images using a toolbox :toolbox: of custom import directives!
MIT License
909 stars 56 forks source link

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

Open leoj3n opened 6 months ago

leoj3n commented 6 months ago

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.