Download and place a book cover under src/i-like/libros from a book title, optionally using a provided image URL first. Use when asked to fetch, download, or update a book cover image for a libros entry. Searches Open Library, downloads the cover, converts it to WebP at 180px width, and saves it with the sanitized book-title filename.
src/i-like/libros/.Use tool: optimize-web-image for the resize, conversion, and validation steps after the image has been obtained.
-src/i-like/libros/<slug>.webp.fetch_webpage tool with the image URL. If it returns usable binary content, save it to a temporary file (e.g., /tmp/<slug>-cover.jpg). This is the preferred approach.
b. Fall back to curl in the terminal only if the internal fetch tool cannot retrieve binary image data:
curl -L -o /tmp/<slug>-cover.jpg "<image-url>"
optimize-web-image with that local file and target width 180 to convert it to WebP, resize it while preserving aspect ratio, and save it at src/i-like/libros/<slug>.webp.src/i-like/libros/<slug>.webp.optimize-web-image with the exact verified conversion and validation flow instead of inventing a different image-processing flow.src/i-like/libros/<slug>.webp.