Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LinearTosRGB ¶
LinearTosRGB converts the given value in linear RGB space into sRGB space
func ReadImgFile ¶
ReadPNGFile reads the PNG image file with the given path then encodes it into an instance of `image.Image`
func SRGBToLinear ¶
SRGBToLinear converts the given value in sRGB space into linear RGB space
Types ¶
type ErrEmptyFile ¶
type ErrEmptyFile string
ErrEmptyFile occurs when a file which was opened by I/O is empty
func (ErrEmptyFile) Error ¶
func (e ErrEmptyFile) Error() string
type ErrUnknownFileType ¶
type ErrUnknownFileType string
ErrUnknownFileType occurs when the type of a specific file could not be detected
func (ErrUnknownFileType) Error ¶
func (e ErrUnknownFileType) Error() string
type ErrUnsupportedFile ¶
type ErrUnsupportedFile string
ErrUnsupportedFile occurs when a file other than PNG or JPG is read to do blurhash encode
func (ErrUnsupportedFile) Error ¶
func (e ErrUnsupportedFile) Error() string
Click to show internal directories.
Click to hide internal directories.