Skip to content

Conversation

Thearas
Copy link

@Thearas Thearas commented Mar 7, 2024

So we can get data url quickly:

local hash=$(thumbhash encode "$img" | awk -F ': ' '{print $NF}' | xargs thumbhash decode - | awk -F ': ' '{print $NF}')
echo "data:image/png;base64,$hash"

@Thearas
Copy link
Author

Thearas commented Mar 7, 2024

PTAL @Astropilot

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.

1 participant