LottieImage
ImageOptions
Image data of the image. Can be of type: string | ArrayBuffer | Blob
Mandatory file name of the image asset.
Mandatory id of the image asset.
The LottieAnimation to which belongs the LottieImage.
Optional URL to the image.
Methods
Export and util methods
Renames the id and file name to newName
.
Returns a generated string of 1s and 0s resulting from the dhash algorithm if used on a browser environment, or the phash algorithm if used in a Node environment.
Returns the image as a Base64 encoded string.
Returns the image as an ArrayBuffer
.
Returns the image as a Blob
.
Calculates the distance of hash values between the current LottieImage
and imageToCompare
.