tool_get_image_size
Retrieve image dimensions and format to calculate correct sprite positioning transforms in Ren'Py projects. Accepts absolute or project-relative paths.
Instructions
Get dimensions and format of an image file.
Useful for calculating correct sprite positioning transforms. Supports absolute paths or paths relative to project_path.
Args: project_path: Absolute path to the Ren'Py project root directory. image_path: Path to image file (absolute, or relative to project_path).
Returns: dict with {ok, width, height, format, file_size}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image_path | Yes | ||
| project_path | Yes |