Skip to content

E-commerce and retail

Product images directly affect conversion. They need to be sharp, fast to load, and consistent in style, and fit lists, detail pages, search results, share cards, and every kind of screen. Competitors and reseller sites often hotlink product images directly. During big sales, traffic can multiply within minutes.

Typical challenges

ChallengeWhat it looks like
Too many sizesOne product image needs a dozen or more sizes, and merchants upload originals with all kinds of aspect ratios
Inconsistent styleWhite-background margins vary, and the product sits off-center
Heavy pagesDetail pages have dozens of large images and load slowly on mobile
Image theftOther stores and reseller sites hotlink your product images
Finding similar itemsShoppers want to "find the same item" or "filter by color"
Big-sale peaksTraffic spikes the moment a sale starts, and old images stay in the cache after you replace them

Industry examples

The products mentioned here only illustrate common needs in the industry and don't imply that they use Bitiful.

Marketplace stores: main image guidelines on platforms like Taobao and Pinduoduo

Background: E-commerce platforms commonly require the main product image to be square, with a clean background and the product centered. Merchants' originals vary in aspect ratio and margins, so they often have designers fix them one by one, which becomes a bottleneck as the number of SKUs grows.

How Bitiful helps:

  • Pair each original with a main style: trim=auto first removes the white margins around the edges, then mode=fill fits the product proportionally onto a square white canvas, so products appear the same size;
  • Add enhance to casual product snapshots to improve them in one step, and use fmt=tpng to compress PNGs with transparent backgrounds;
  • The same original outputs list images, detail images, and share cards, and both the storefront design and mini programs reference the same URL.

Result: New listings no longer get stuck waiting for retouching, product images look consistent across the store, and detail pages load faster.

Cross-border e-commerce: global sites like SHEIN and Temu

Background: Users are spread around the world with very different network conditions. There are huge numbers of product images, and competitor and knockoff sites copy images directly.

How Bitiful helps:

  • Turn on global nodes for the CDN domain, and fmt=auto outputs AVIF/WebP based on the browser, so images are noticeably smaller in regions with poor networks;
  • Use fmt=featureprint for reverse image search and "similar products" recommendations, and fmt=palette for filtering by color;
  • Referer hotlink protection refuses embedding by external sites, and you can confirm it works in the referring site ranking in Top content;
  • Before a big sale, prefetch campaign pages and featured product images on the Cache purge page, and watch bandwidth by the minute in Usage during the campaign.

Result: Pages open faster for overseas users, search and recommendations are more accurate, and you no longer pay for traffic from stolen images.

What each part of Bitiful does

CapabilityWhat it does here
S4 object storageStores a single copy of each original product image and the static page assets
Presigned URLsThe merchant dashboard uploads product images directly, bypassing your application servers
Trim bordersAutomatically removes white or transparent margins around product images so products appear the same size
Resize and smart cropOutputs every size (list, detail, thumbnail, share) from one original, and pos=smart keeps the product in frame
Shapes and canvasAdds uniform padding and rounded corners for consistent product cards
Color adjustment and auto enhanceenhance improves casual merchant snapshots in one step
Image format conversionfmt=auto outputs AVIF/WebP and greatly reduces detail page size; fmt=tpng compresses PNGs with transparency
Image watermarksOverlays a brand or store logo on product images
Image analysisfmt=featureprint powers "find the same item", fmt=palette powers color filters, and fmt=tags categorizes automatically
BlurHash / ThumbHashLists show a blurred placeholder first for smoother scrolling
CDN and cache rulesCache product images and static assets for a long time while keeping entry pages up to date
Hotlink protectionAllows only your own website, app, and mini programs to embed product images
Purge and prefetchPrefetch campaign page assets before a big sale, and purge old images after replacing them
Mirror back-to-originMigrates large numbers of product images from an old platform without interrupting business
Usage / Top contentTrack per-minute bandwidth, best-selling products, and hotlinking sources during big sales

Merchants upload originals directly

The merchant dashboard requests an upload link from your application server and uploads the original straight to products/{productID}/{index}.jpg. After the upload, compute fmt=thumbhash and fmt=palette once and save them with the product.

Define product image styles

PurposeStyle nameExample parameters
Listlisttrim=auto&w=480&h=480&mode=fill&fmt=auto
Main detail imagemaintrim=auto&w=1200&h=1200&mode=fill&fmt=auto
Long detail imagedetailw=1080&fmt=auto&q=80
Share cardsharew=1200&h=630&pos=smart&fmt=jpg

Trimming first and then fitting proportionally into a square canvas keeps every product the same size on a uniform background.

Find the same item and filter by color

Call ?w=512&fmt=featureprint on each new product's main image and write the feature vector to a vector database. When a shopper uploads an image or clicks "find similar", search for the closest products. Use the dominant colors returned by palette for color filters.

Prepare for big sales

The day before a sale, prefetch the campaign pages and featured product images on the Cache purge page. During the sale, monitor bandwidth at 1-minute granularity in Usage. After a last-minute image swap, submit a URL purge.

Key practices

Standardize white-background product images

Merchants upload white-background images with varying margins, so resizing them directly makes some products look large and others small. trim=auto first removes the solid-color background around the edges, then mode=fill fits the image proportionally into a canvas of uniform size, keeping list pages neat. See Trim borders and Resize images.

Replace images without waiting for the cache

Use versioned file names for product images (for example, 1-v2.jpg). When you replace an image, reference the new address directly and the old cache doesn't matter. If you must keep the original address, submit a URL purge.

Take back hotlinked traffic

The Referring site ranking in Top content shows which external websites embed your product images. Once you turn on Referer hotlink protection, the traffic charges for those requests go away.

Cost tips

  • One original with multiple styles saves storing a separate image for every size.
  • Switching detail pages to fmt=auto usually cuts data transfer charges significantly and improves mobile conversion.
  • Before a big sale, buy resource packages based on expected traffic.

Launch checklist

  • The merchant dashboard uses presigned direct uploads and doesn't expose keys
  • Lists, main images, detail pages, and share cards all use styles
  • The CDN domain has cache rules and Referer hotlink protection configured
  • Placeholders, dominant colors, and feature vectors are computed automatically for new products
  • Prefetch is done before big sales, and someone watches Usage during the sale