Image format.
This type represents the allowed image formats.
What does it unlock?
Type alias for MIME types used in file/media handling. Defines supported file formats and media types.
Practical Application
Type alias: 'image/png' | 'image/jpeg' | 'image/webp'. Used as the format parameter in GetScreenshot.
PNG for quality/transparency, JPEG for smaller files, WebP for modern browser optimization.
AI Coding Best Practices
Pass as first param to GetScreenshot: new GetScreenshot('image/png', {x:2048, y:2048}).
Use PNG for highest quality and transparency. JPEG for smaller file size. WebP for modern browser optimization.
Match the saveImage filename extension to the format.
Image format. This type represents the allowed image formats.
What does it unlock?
Type alias for MIME types used in file/media handling. Defines supported file formats and media types.
Practical Application
Type alias: 'image/png' | 'image/jpeg' | 'image/webp'. Used as the format parameter in GetScreenshot. PNG for quality/transparency, JPEG for smaller files, WebP for modern browser optimization.
AI Coding Best Practices
Pass as first param to GetScreenshot:
new GetScreenshot('image/png', {x:2048, y:2048}). Use PNG for highest quality and transparency. JPEG for smaller file size. WebP for modern browser optimization. Match the saveImage filename extension to the format.