Walmart product photos come from i5.walmartimages.com, and every thumbnail URL carries its size in the query string:
https://i5.walmartimages.com/seo/<product-name>_<uuid>.<hash>.jpeg?odnHeight=180&odnWidth=180&odnBg=FFFFFF
odnHeight and odnWidth set the box, odnBg fills the padding when the photo is not square. The obvious way to get the full photo is to delete all three. That gives you the full pixel size, but it is not the file the seller uploaded.
What the bare URL returns
I took 32 product images and fetched each one twice with Chrome's Accept header (image/avif,image/webp,image/apng,image/*,*/*;q=0.8): once with no odn parameters, once with both set to 4000.
The bare URL comes back as content-type: image/avif at the full pixel size, and with two extra headers:
x-tb-optimization-original-content-size: 295370
x-tb-optimization-original-content-type: image/jpeg
The server is telling you the size and type of the file it started from. The AVIF it sent was 102,815 bytes.
Asking for a box bigger than the photo
With ?odnHeight=4000&odnWidth=4000&odnBg=FFFFFF the same image came back as image/jpeg, 295,370 bytes, the number in that header. It held on every image where the header was present:
| Pixels | Bare URL (AVIF) | 4000 box (JPEG) |
|---|---|---|
| 1600x1600 | 38,113 | 115,876 |
| 2000x1500 | 294,727 | 785,115 |
| 2200x2200 | 247,970 | 862,692 |
| 3756x3805 | 383,819 | 775,374 |
| 3300x3300 | 38,909 | 2,193,025 |
The pixel size never changed. On one image I tried 6000, 8000, 10000 and 20000: same 115,876 bytes, same 1600x1600. The server does not upscale, so a box larger than the photo means "send what you have". The largest photo in my sample was 3805 pixels tall, so I can't say what happens to an upload above 4000.
In two of the 32 the header was missing, and both requests returned identical bytes.
Why the bare URL is smaller
The Accept header is doing it. Walmart's CDN re-encodes to AVIF when the browser says it can take AVIF, and it does that whenever it resizes or reformats. A box bigger than the photo seems to skip that path and hand back the stored JPEG. None of this is documented, so treat it as an observation from November 2026, not an API.
If you are writing a scraper or a downloader, the header is the useful part: compare content-length with x-tb-optimization-original-content-size and you know whether you got the original.
I keep a list of these URL edits for about 50 sites at https://github.com/aboivz/fullsize-image-urls, and the Walmart steps for doing it by hand are here: https://pixlasso.com/guides/download-walmart-product-images?src=devto. I make PixLasso, a browser extension that applies these rules when it saves a page's images.
Top comments (0)