Skip to main content

Module blurhash

Module blurhash 

Source

StructsΒ§

BlurhashConfig

EnumsΒ§

BlurhashingError

FunctionsΒ§

blurhash_an_image πŸ”’
get_blurhash_from_request πŸ”’
Returns the blurhash or a blurhash error which implements Display.
get_format_from_data_mime_and_filename πŸ”’
Gets the Image Format value from the data,mime, and filename It first checks if the mime is a valid image format Then it checks if the filename has a format, otherwise just guess based on the binary data Assumes that mime and filename extension won’t be for a different file format than file.
get_image_decoder_with_format_and_data πŸ”’
is_image_above_size_limit πŸ”’