Herofab marketplace image rules
v1.0.0Product-image rules of marketplaces and ad platforms, from official pages, with an image spec check.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_image_requirements Marketplace image requirements
Official product-image rules of a marketplace or ad platform such as Amazon, eBay, Etsy, Shopify, Walmart, TikTok Shop or Google Shopping (size, file size, formats, main-image background and fill), each read from the platform's own help page, with the source and the day it was read. Omit platform to list all platforms. It does not test an image: with a photo link use check_image_url, with known dimensions use check_image_spec.
| Parameter | Type | Description |
|---|---|---|
platform | string | Platform key, for example amazon, ebay, etsy, shopify, google-shopping, zalando. Omit to list every platform. |
check_image_spec Check an image against marketplace rules
Check an image's width, height, format and file size, and its declared main-image background and product fill, against a platform's published rules (Amazon, eBay, Etsy, Shopify, Walmart and others). Returns pass, the failing rules, notes, the rules that need the photo itself, and a link to fix the image. Use it when the dimensions are known; it never sees the photo, so background and fill are only as declared. When the photo is at a public https link, use check_image_url instead.
| Parameter | Type | Description |
|---|---|---|
format * | string | File format. |
height * | integer | Image height in pixels. |
platform * | string | Platform key (see get_image_requirements). |
width * | integer | Image width in pixels. |
background | string | Main-image background as seen in the photo: pure-white (RGB 255), white (off-white), light (light grey or neutral), coloured (plain colour), busy (scene or texture), transparent. |
file_size_bytes | integer | File size in bytes; without it the file size limit is not checked. |
product_fill | number | Share of the frame the product covers on its longest axis, 0 to 1 (0.85 = 85%). |
check_image_url Measure an image from a link against marketplace rules
Fetch a product photo from a public https link and check it against a marketplace's published image rules, for example an Amazon, eBay, Etsy, Shopify, Walmart, TikTok Shop or Google Shopping main image. Herofab reads the real width, height, format and file size from the file, and estimates from the pixels whether the background is pure white (RGB 255), how much of the frame the product fills and whether it touches an edge (cut off). Pixel measurements are estimates; rules that could not be measured are listed under not_checked. Returns the same verdict as check_image_spec plus the measured val…
| Parameter | Type | Description |
|---|---|---|
image_url * | string | Public https link to the image file itself (JPEG, PNG, WebP or GIF are measured; up to 15 MB), not to the product page. |
platform * | string | Platform key, for example amazon, ebay, etsy, shopify, walmart, tiktok-shop, google-shopping (see get_image_requirements). |