Skip to content
Orsnap
← All posts

Bulk Product Images From a CSV: What Actually Breaks

A catalog-sized image batch is mostly a data problem. Here is how to keep crops, filenames and image URLs from turning sixty product cards into an afternoon of cleanup.

Four product photos with different subjects arranged on a spreadsheet contact sheet
Consistent furniture, inconsistent photography. The layout has to survive both.

A catalog refresh is not a design problem. The design already exists; it shipped last season and worked. The problem is that sixty product photos arrived from three photographers, the prices live in a spreadsheet maintained by someone in operations, and the marketing manager wants the whole set as square images by Thursday.

Duplicating the artboard sixty times is the obvious plan, and it is the one that costs the most. Each duplicate needs a photo, a name, a price and a filename, and each of those four steps is a chance to introduce an error that nobody notices until a customer does.

Start from the column list, not the design

Before opening the template, export the product data and look at what you actually have. A useful catalog CSV has four kinds of columns:

  • Identity — SKU, product name, slug. At least one of these should be unique and stable.
  • Copy — headline, short description, price, maybe a badge like "New".
  • Media — one URL per image. Direct image files, not product pages.
  • Classification — category, collection, or whatever groups the products into families.

The fourth kind is the one people forget. A catalog is rarely one design; it is usually three or four layouts: a hero card for the flagship product, a compact card for accessories, a sale variant with a different badge. If the source data has a layout column, the batch can be split by layout and each template can be designed properly. If it does not, someone will try to force everything into one card and the accessories will look like small flagship products.

In Orsnap, a batch runs one template version over many rows, so splitting by layout means two batches, not two templates in one run. That is a feature rather than a limitation: each batch has its own rows, its own checks and its own archive, and the flagship batch does not fail because an accessory photo was missing.

Make the image slot honest about crops

Product photography is not consistent, and no template fixes that. What a template can do is make the inconsistency visible before it reaches a customer.

The image slot has a crop policy. If the slot is square and the photo is 4:5, something is getting cut. The question is what: the top of the bottle, the bottom of the box, or the whitespace around the subject. Look at the tallest and widest photos in the set, not the average one, and decide the crop against those.

A few practical rules that survive most catalogs:

  • Leave room around the subject. A slot that crops tightly looks sharp on a centered product and terrible on one photographed off-center.
  • Do not mix background styles in one batch. White-background cutouts and lifestyle shots can share a layout, but they cannot share a crop rule. Split them.
  • Check the alpha channel. Transparent PNGs and flat white JPEGs look identical in a file browser and completely different on a colored card background.

The image URLs are fetched when the rows are checked, and the file is frozen for the run. That is good for reproducibility — the batch does not change because someone replaced a photo on the CDN mid-run — but it also means a URL that is temporarily down fails the check. Fix the link, re-check the row, and only the failed row needs to run again.

Prices, currencies and the typography trap

Prices look like the simplest column and are usually the most inconsistent. "$49", "49.00", "USD 49", "49,00 €" are four strings, and they will not line up in a column of cards even if the font supports all the characters.

Decide the display format before the batch, and normalize the column to match it. If the template shows a currency symbol, the symbol belongs in the design, not in the data, otherwise a row that already includes "$" will render "$$49". If the catalog spans currencies, make the symbol a text variable with a sensible default and fill it per row.

The same discipline applies to product names. A fixed headline style that works for "Linen Tote" will mangle "Linen Tote — Large, Natural, With Inner Pocket". Either shorten the display name in the data or give the headline a second line and test it against the longest name in the set.

Filenames and the archive

The downloaded ZIP contains the rendered files and a table that maps each file back to its row. Name files by the identity column rather than by position: northfield-1042.png is worth more than image-014.png when someone needs to replace one product a week later.

This is also how you answer the inevitable question, "which one is missing?" The batch keeps a per-row status, so a failed row is identifiable rather than a gap in a sequence of numbers. If you are generating for a marketplace that requires a specific filename convention, build that convention into the identity column before import rather than renaming sixty files afterwards.

What the batch costs

At standard resolution, one page is one credit. Sixty single-page cards cost sixty credits; at 2× they cost 240, because the higher resolution covers four times the pixels. That is well inside the US$9 pack of 300 credits, which does not expire. A catalog that refreshes monthly and needs 2× output is the case for the US$19 monthly plan with 1,000 credits.

The 100-row ceiling is the number to plan around. A 60-product refresh fits with room to spare. A 400-SKU catalog does not, and splitting it into four batches means four archives and four chances to lose track of which products were already updated. At that size the storefront should be calling the render API when a product publishes, so the image is generated from the same record that the product page uses.

When the catalog lives in a database

If the CSV is an export of a product information system, the export will be stale by the time the batch finishes. For a weekly refresh that is usually acceptable; for a marketplace where prices change hourly it is not. The API path takes a template ID, a published version and the field values, and returns the file without anyone touching a spreadsheet. The trade-off is that the CSV workflow is easier to inspect: a person can look at row 37 before it renders, and for a brand launch that review is often the point.

Start with the twelve products that span the range — the tallest photo, the longest name, the highest price, the one with a badge — and put them through the batch workspace. If those twelve look right in a grid, the other forty-eight will too. If they do not, you have found the crop or the price format while it is still cheap to change.