Did NetSuite start serving item images in AVIF for...
# suitecommerce
j
Did NetSuite start serving item images in AVIF format? I've downloaded a couple of images from the site (that are JPGs) and they've saved out as AVIFs. I don't see anything in past release notes that says anything about it...
s
Nope.
j
@Steve Goldberg I've tested it on three different sites in different browsers and the behavior is the same. It's not terribly consistent, though. Initially it seemed like it was only happening when images were run through the resize utility, but I have custom content types in the CMS that also use the image resize utility and they're being served as the source JPGs. On one site, product images that are run through the utility come out as AVIFs, but their source is still served as JPGs if I navigate directly the the image. One two other sites, though, all product images are AVIFs, regardless of whether they're resized or not. I was thinking that the "Compress All Item Website Images" checkbox in the website setup might have an affect, but toggling on and off in the sandbox of the site I have backend access to doesn't seem to change anything. And it only seems to happen to JPGs. If an item image is a PNG (ugh), it's always served as a PNGs It's not a huge issue. Just something I noticed the other day. If anything, it might help get the SEO guys off my back about serving product images in next-gen formats.
s
So, the STR is: 1. Have a JPG product image 2. Enable resizing on it 3. Visit the PDP 4. Right-click -> save image 5. Marvel at how it's an AVIF?
If you could send me a link of a page where this is happening, I'd like to see it
j
@Steve Goldberg Yeah, that's pretty much the long and short of it. Not sure if step 2 is necessary or not. I've seen it happen on both the resized images and the source images Examples: • https://www.mackspw.com/Avery-Universal-Boat-Seat ◦ Product Image (Resized - AVIF): https://www.mackspw.com/site/Images/Products%20-%20NEW/AVE2439+10.jpg?resizeid=4&resizeh=1200&resizew=1200 ◦ Product Image (Not Resized - AVIF):

https://www.mackspw.com/site/Images/Products%20-%20NEW/AVE2439+10.jpg

https://www.zevtechnologies.com/ZEV-Optimized-Match-Barrel-G19-Gen1-5-1-2x28-Threading-DLC ◦ Product Image (Resized - AVIF): https://www.zevtechnologies.com/assets/images/products/BBL-19-OPT-TH-DLC_10-(Pointing%20Left).jpg?resizeid=4&resizeh=1600&resizew=1600 ◦ Product Image (Not Resized - JPG):

https://www.zevtechnologies.com/assets/images/products/BBL-19-OPT-TH-DLC_10-(Pointing%20Left).jpg

https://www.klim.com/Lochsa-One-Piece-3262-003?quantity=1&color=1917 ◦ Product Image ( Resized - AVIF): https://www.klim.com/images/3262-003_Electric%20Blue%20Lemonade%20-%20Monument%20Gray_01.jpeg?resizeid=3&resizeh=1200&resizew=1200 ◦ Product Image (Not Resized - AVIF):

https://www.klim.com/images/3262-003_Electric%20Blue%20Lemonade%20-%20Monument%20Gray_01.jpeg

s
Are you using Akamai
j
That would be the default CDN cache for NetSuite, right? If that's the case, yes
s
Sorry yeah, duh.
For a brief moment I was like "we use Cloudflare" but we don't
j
Well, the main site that I first noticed it on (none of the above) is using Cloudflare in some capacity, but the behavior is the same
I don't think it's the CDN, though.
s
No, no. Don't worry. I forgot to look into this and I need to dive deeper. Looking at my own demo site, I can see that PNGs are being upgraded to AVIF and that GIFs are being upgraded to WEBPs
I will need to chase the team but it looks like they enabled it on the CDN
j
Looks like it. I wonder why it can be so inconsistent.
s
My guess is that it will only serve newer formats if the converted image is lighter weight than the original.
j
Ah, that makes sense
s
But yes, can confirm, it was turned on as a feature last month.
j
Cool. Thanks for investigating. I'm totally going to take credit for it! 🤣
😂 1