empezar_lote
Starts background batch conversion of folders or many images, including subfolders, without overwriting files, and immediately returns an ID for later status checks.
Instructions
Converts folders or many images in the background, subfolders included, without overwriting anything, and comes back right away with an id. By default, WebP at score 80, in a folder next to the input one (photos-webp, or photos-apolo with several formats); with loose images, in a subfolder next to them (webp/, apolo/). One at a time. Afterwards, ver_lote. Example: {"entradas": ["~/Photos/trip"], "formatos": ["webp", "avif"], "mas_ligero": true}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alto | No | Maximum height, in pixels: scales down if larger and never enlarges (with ancho alone, proportional). | |
| ancho | No | Maximum width, in pixels: scales down if larger and never enlarges (with alto alone, proportional). | |
| medir | No | Measure the score of each file (takes longer). | |
| orden | No | Options of the official tool (only with one format). | |
| paleta | No | Reduce the palette to this number of colors (2 to 256), with dithering. | |
| preset | No | A saved preset, the base for everything. | |
| salida | No | Output folder. By default, next to the input one with -webp, -apolo…; with loose images, a webp/, apolo/… subfolder next to them. | |
| calidad | No | Fixed quality from 0 to 100. Not together with nota_objetivo. | |
| entradas | Yes | Folders or images, absolute paths (~ is accepted). | |
| formatos | No | Output formats (one or several). By default, the preset's or webp. | |
| enderezar | No | Auto-rotate each photo according to its EXIF orientation if it needs it. Yes by default. | |
| lado_mayor | No | Maximum longest side, in pixels: the width if landscape, the height if portrait; never enlarges. Not together with ancho, alto or porcentaje. | |
| mas_ligero | No | With several formats: keep only the lightest one of each image. | |
| porcentaje | No | Reduce to this percentage (50 = half the width and height). From above 0 to 100. Not together with ancho, alto or lado_mayor. | |
| sin_perdida | No | Lossless (WebP, AVIF, JPEG XL). PNG and QOI always are. | |
| nota_objetivo | No | Search, image by image, for the quality that gives this score. 80 by default. |