fluttercommunity / flutter_blurhash

Compact representation of a placeholder for an image. Encode a blurry image under 30 caracters for instant display like used by Medium. Maintainer: @Solido
https://pub.dev/packages/flutter_blurhash
MIT License
513 stars 65 forks source link

Get the hash from an image? #50

Open RoyalCoder88 opened 2 years ago

RoyalCoder88 commented 2 years ago

Hi friends,

I have an issue with flutter_blurhash, how to get the hash code from an image in Flutter? I can't find any details for this :(

Thanks in advance!

SoftWyer commented 2 years ago

This library doesn't appear to support encoding an image, only decoding. The blurhash library should help as it has an encode method.

Robert-Scub commented 2 years ago

Ye this is alight widget as much of the same encoding as to be performed in a very efficient way and at scale where original C implementations performs best.

dhikshithrm commented 1 year ago

Hi, @RoyalCoder88

I have created this package blurhash_ffi, a fast & compact version of both flutter_blurhash and blurhash_dart, it has both encoding and decoding which runs on a separate isolate with native C bindings found in original blurha.sh implementation.

use that if you're interested.

zs-dima commented 9 months ago

@dhikshith12 thanks, although it does not support Web