ImgCourier.
← All posts
Ingrid Vale, CTO

Smart crop v2: keep the product in the frame

Turning a 3:2 product photo into a 1:1 grid tile or a 9:16 story card means throwing pixels away. The question is which ones. Today we’re shipping a new model behind fit=smart that makes that choice much better.

What was wrong with v1

The first version of smart crop used a saliency map: it looked for the regions with the most contrast and texture and centred the crop there. It worked well for portraits and badly for catalogues. A white sneaker on a textured wooden floor would be cropped to show the floor.

Comparison of a saliency-based crop that misses the product and a subject-based crop that centres it v1 · saliency v2 · subject
Same original, same 1:1 output. v1 followed the floor texture; v2 finds the product.

The new model

v2 is a compact detection model trained on roughly 340,000 images from catalogue, food, interiors and editorial photography, labelled for “what a merchandiser would want to keep”. It runs in about 9 ms on our render nodes and produces a box with a confidence score. When confidence is low, we fall back to the centre of mass of detected edges, which turned out to be a safer default than v1’s saliency.

On our internal benchmark of 5,000 hand-scored crops, the share of crops rated “usable without edits” went from 71% to 93%.

Using it

urls
# Square tile
https://cdn.imgcourier.online/acme/products/runner-white.jpg?w=600&h=600&fit=smart

# Portrait story card, prefer faces when present
https://cdn.imgcourier.online/acme/editorial/chef.jpg?w=1080&h=1920&fit=smart&gravity=face

Existing fit=smart URLs switch to v2 automatically as their cached variants expire. If you need to pin the old behaviour for a while, add smart=v1; we’ll keep it available until at least June 2027.

Smart crop is included on Growth and Scale plans and available as a 30-day trial on Starter. Send examples that it gets wrong to support@imgcourier.online — they go straight into our evaluation set.