Static
createCreate thumbnail preview for a provided image path.
The URL or display object of the texture to render to a thumbnail
Additional named options passed to the compositeCanvasTexture function
The desired width of the resulting thumbnail
The desired height of the resulting thumbnail
A horizontal transformation to apply to the provided source
A vertical transformation to apply to the provided source
Whether to center the object within the thumbnail
The desired output image format
The desired output image quality
The parsed and converted thumbnail data
Static
hasStatic
compositeComposite a canvas object by rendering it to a single texture
The object to render to a texture
Optional
options: { Options which configure the resulting texture
The desired width of the output texture
The desired height of the output texture
A horizontal translation to apply to the object
A vertical translation to apply to the object
Center the texture in the rendered frame?
The composite Texture object
Static
textureExtract a texture to a base64 PNG string
The texture object to extract
Image format, e.g. "image/jpeg" or "image/webp".
JPEG or WEBP compression from 0 to 1. Default is 0.92.
A base64 png string of the texture
Static
pixiAsynchronously convert a DisplayObject container to base64 using Canvas#toBlob and FileReader
A PIXI display object to convert
The requested mime type of the output, default is image/png
A number between 0 and 1 for image quality if image/jpeg or image/webp
A processed base64 string
Static
canvasStatic
uploadUpload a base64 image string to a persisted data storage location
The base64 string
The file name to upload
The file path where the file should be uploaded
Optional
options: { Additional options which affect uploading
The data storage location to which the file should be uploaded
The MIME type of the file being uploaded
Display a UI notification when the upload is processed.
A promise which resolves to the FilePicker upload response
Static
pixelsCreate a canvas element containing the pixel data.
Buffer used to create the image data.
Buffered image width.
Buffered image height.
The element to use.
Specified width for the element (default to buffer image width).
Specified height for the element (default to buffer image height).
A helper class to provide common functionality for working with Image objects