StaticcanvasAsynchronously convert a canvas element to base64.
Optionaltype: stringOptionalquality: numberThe base64 string of the canvas.
StaticcompositeComposite a canvas object by rendering it to a single texture
The object to render to a texture
Optionaloptions: { center?: boolean; height?: number; tx?: number; ty?: number; width?: number } = {}Options which configure the resulting texture
Optionalcenter?: booleanCenter the texture in the rendered frame?
Optionalheight?: numberThe desired height of the output texture
Optionaltx?: numberA horizontal translation to apply to the object
Optionalty?: numberA vertical translation to apply to the object
Optionalwidth?: numberThe desired width of the output texture
The composite Texture object
StaticcreateCreate 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
Optionalcenter?: booleanWhether to center the object within the thumbnail
Optionalformat?: stringThe desired output image format
Optionalheight?: numberThe desired height of the resulting thumbnail
Optionalquality?: numberThe desired output image quality
Optionaltx?: numberA horizontal transformation to apply to the provided source
Optionalty?: numberA vertical transformation to apply to the provided source
Optionalwidth?: numberThe desired width of the resulting thumbnail
The parsed and converted thumbnail data
StatichasTest whether a source file has a supported image extension type
A requested image source path
Does the filename end with a valid image extension?
StaticpixelsCreate a canvas element containing the pixel data.
Buffer used to create the image data.
Buffered image width.
Buffered image height.
Optionaleh?: numberSpecified height for the element (default to buffer image height).
Optionalelement?: HTMLCanvasElementThe element to use.
Optionalew?: numberSpecified width for the element (default to buffer image width).
StaticpixiAsynchronously 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
StatictextureExtract a texture to a base64 PNG string
The texture object to extract
Optionalformat?: stringImage format, e.g. "image/jpeg" or "image/webp".
Optionalquality?: numberJPEG or WEBP compression from 0 to 1. Default is 0.92.
A base64 png string of the texture
StaticuploadUpload 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
Optionaloptions: { notify?: boolean; storage?: string; type?: string } = {}Additional options which affect uploading
Optionalnotify?: booleanDisplay a UI notification when the upload is processed.
Optionalstorage?: stringThe data storage location to which the file should be uploaded
Optionaltype?: stringThe MIME type of the file being uploaded
A promise which resolves to the FilePicker upload response
A helper class to provide common functionality for working with Image objects.