Inspect images
inspect_imagesUse this when the user wants to check photos or scans before making a PDF: it lists each attached JPG or PNG with its type, pixel size, EXIF orientation and the rotation it needs, DPI, colour mode, and the page size it would get, and flags files that are not usable (HEIC, WebP, GIF, TIFF, damaged or too large). Makes no file. Takes the same page options as images_to_pdf. Do not use for reading text in an image (no OCR) or for editing images.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fit | No | contain (default) shows the whole image; cover fills the page inside the margin and crops the overflow. Paper sizes only, e.g. contain. | |
| images | Yes | The JPG or PNG images, in page order, e.g. scan-1.jpg, scan-2.jpg. | |
| margin_mm | No | White margin on each side in millimetres, 0 to 25, e.g. 10. Default 0. | |
| page_size | No | Page size, e.g. a4. fit (default) makes each page the size of its image at the image's DPI (72 when the file has none). | |
| orientation | No | Paper orientation for letter, a4 or legal, e.g. auto (default: landscape for wide images, portrait otherwise). Ignored for fit. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | ||
| ready | Yes | ||
| images | Yes | ||
| refused | Yes | ||
| warnings | Yes | ||
| page_plan | Yes | ||
| total_bytes | Yes | ||
| page_plan_count | No |