flutter_blurhash icon indicating copy to clipboard operation
flutter_blurhash copied to clipboard

Get the hash from an image?

Open RoyalCoder88 opened this issue 2 years ago • 4 comments

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!

RoyalCoder88 avatar May 30 '22 14:05 RoyalCoder88

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

SoftWyer avatar May 30 '22 19:05 SoftWyer

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.

Robert-Scub avatar Jun 21 '22 07:06 Robert-Scub

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.

dhikshithrm avatar Jul 23 '23 17:07 dhikshithrm

@dhikshith12 thanks, although it does not support Web

zs-dima avatar Oct 14 '23 10:10 zs-dima