DEV Community

Casper Tran
Casper Tran

Posted on

Adobe Scene7 tells you, in a header, how many bytes AVIF saved

Target's product photos come from Adobe's Scene7 image server, and the gallery asks for them like this:

https://target.scene7.com/is/image/Target/GUEST_bd0cfa74-...?wid=1200&hei=1200&qlt=80
Enter fullscreen mode Exit fullscreen mode

I wanted the stored file, so I fetched six of these photos with curl on 1 December 2026 with a handful of parameter sets. Each request went out twice: once with Chrome's image Accept header (image/avif,image/webp,image/apng,image/*,*/*;q=0.8) and once with no Accept header at all.

Ask the server for the stored size first

Scene7 answers ?req=imageprops with a small text file, and two of its lines are the stored size:

image.height=2000
image.width=2000
Enter fullscreen mode Exit fullscreen mode

The six photos were stored at 1000, 1000, 1001, 2000, 2400 and 2400 px square. ?scl=1 returned each one at exactly that size. ?wid=3000&hei=3000 returned 3000x3000 for all six, so it enlarged every one of them, including the 1000 px photos. Without any parameter you get a 400 px copy.

The format depends on who asks

With Chrome's header, the 1200 px gallery copy came back as AVIF for five of six photos. At scl=1 it was a mix: three AVIF, three JPEG. Without an Accept header every one of those requests returned JPEG.

The response tells you why. With Chrome's header, the responses I checked carried an x-adobe-smart-imaging header, and its value is the JPEG size minus the AVIF size:

Stored size scl=1, Chrome header scl=1, no header x-adobe-smart-imaging
2000x2000 AVIF, 363,238 bytes JPEG, 780,995 bytes 417757
1000x1000 AVIF, 16,225 bytes JPEG, 50,124 bytes 33899
1000x1000 AVIF, 7,741 bytes JPEG, 26,776 bytes 19035
1001x1001 JPEG, 93,714 bytes JPEG, 93,714 bytes -141024
2400x2400 JPEG, 338,223 bytes JPEG, 338,223 bytes -977451
2400x2400 JPEG, 124,540 bytes JPEG, 124,540 bytes -247638

780,995 minus 363,238 is 417,757, and the other two positive rows add up the same way. A negative value means the AVIF would have been bigger, so the server kept the JPEG. Adobe's Smart Imaging docs describe that rule (serve the original when it is smaller than the conversion); the header lets you watch it per request.

None of the responses had a Vary header, even though the bytes change with Accept. If you put your own cache in front of Scene7, key it on Accept yourself.

fmt does not win

fmt=png&scl=1 with Chrome's header returned AVIF for all six photos. Without the header it returned real PNGs, 87,863 bytes to 4.4 MB. The switch that stops the conversion is bfc=off: with scl=1&bfc=off, all six came back as the same JPEG bytes whichever header I sent.

So the address I use for the stored file is:

https://target.scene7.com/is/image/Target/<id>?scl=1&bfc=off
Enter fullscreen mode Exit fullscreen mode

scl=1 keeps the pixel size honest, and bfc=off keeps the file the same for every client.

The steps for doing this by hand, with the results from 29 photos, are in this guide: https://pixlasso.com/guides/download-target-product-images?src=devto. I make PixLasso, a browser extension that saves a page's images; it rewrites Target photo addresses to scl=1 and adds bfc=off for the same reason.

Top comments (0)