Preview asset
preview_assetDisplays a PNG asset from an RPG Maker MV img folder as an image with its pixel dimensions and file size, including character/face sheet layout, scaled to a maximum edge size.
Instructions
Show a PNG from an img/* folder as an image so you can see it, with its pixel size, file size and, for img/characters and img/faces, the sheet layout implied by the name and size. name is the file name without .png and must match an existing file exactly (see list_assets). The image is scaled down (nearest neighbour, aspect kept) to at most maxSize pixels on its longer edge; smaller images are shown as they are. Files over 32 MiB or 16 million pixels, interlaced PNGs and files that are not valid PNGs are refused. Only names that pass the asset name rule (1-64 characters from A-Z a-z 0-9 space _ ! $ ( ) -) can be opened, even though list_assets may show files with other names. Audio cannot be previewed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | File name without extension, e.g. Actor1 | |
| folder | Yes | Image folder, e.g. img/characters | |
| maxSize | No | Longest edge of the returned image in pixels |