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
| Challenge | What it looks like |
|---|---|
| Too many sizes | One product image needs a dozen or more sizes, and merchants upload originals with all kinds of aspect ratios |
| Inconsistent style | White-background margins vary, and the product sits off-center |
| Heavy pages | Detail pages have dozens of large images and load slowly on mobile |
| Image theft | Other stores and reseller sites hotlink your product images |
| Finding similar items | Shoppers want to "find the same item" or "filter by color" |
| Big-sale peaks | Traffic 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
mainstyle:trim=autofirst removes the white margins around the edges, thenmode=fillfits the product proportionally onto a square white canvas, so products appear the same size; - Add
enhanceto casual product snapshots to improve them in one step, and usefmt=tpngto 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=autooutputs AVIF/WebP based on the browser, so images are noticeably smaller in regions with poor networks; - Use
fmt=featureprintfor reverse image search and "similar products" recommendations, andfmt=palettefor 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
| Capability | What it does here |
|---|---|
| S4 object storage | Stores a single copy of each original product image and the static page assets |
| Presigned URLs | The merchant dashboard uploads product images directly, bypassing your application servers |
| Trim borders | Automatically removes white or transparent margins around product images so products appear the same size |
| Resize and smart crop | Outputs every size (list, detail, thumbnail, share) from one original, and pos=smart keeps the product in frame |
| Shapes and canvas | Adds uniform padding and rounded corners for consistent product cards |
| Color adjustment and auto enhance | enhance improves casual merchant snapshots in one step |
| Image format conversion | fmt=auto outputs AVIF/WebP and greatly reduces detail page size; fmt=tpng compresses PNGs with transparency |
| Image watermarks | Overlays a brand or store logo on product images |
| Image analysis | fmt=featureprint powers "find the same item", fmt=palette powers color filters, and fmt=tags categorizes automatically |
| BlurHash / ThumbHash | Lists show a blurred placeholder first for smoother scrolling |
| CDN and cache rules | Cache product images and static assets for a long time while keeping entry pages up to date |
| Hotlink protection | Allows only your own website, app, and mini programs to embed product images |
| Purge and prefetch | Prefetch campaign page assets before a big sale, and purge old images after replacing them |
| Mirror back-to-origin | Migrates large numbers of product images from an old platform without interrupting business |
| Usage / Top content | Track per-minute bandwidth, best-selling products, and hotlinking sources during big sales |
Recommended architecture
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
| Purpose | Style name | Example parameters |
|---|---|---|
| List | list | trim=auto&w=480&h=480&mode=fill&fmt=auto |
| Main detail image | main | trim=auto&w=1200&h=1200&mode=fill&fmt=auto |
| Long detail image | detail | w=1080&fmt=auto&q=80 |
| Share card | share | w=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.
Distribute through the CDN with hotlink protection
Bind a CDN domain and use edge rules to:
- Cache product images and hashed JS/CSS for a long time, and don't cache HTML entry pages or cache them only briefly.
- Allow only your own domains as the Referer (hotlink protection), and allow an empty Referer as needed for apps and mini programs.
- Block known image scraping tools.
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.
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=autousually 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