(Optional) Can you provide a link to the item, model, or project in question?
N/A
(Optional) Do you have any sample code you can provide?
I am loading assets via datocmst React package and Image component. I donât think itâs a problem in the image component, as the above URL doesnât open directly as wellâŚ
Are you saying that these animated GIFs were working correctly and then stopped? With the same params?
I see your point and it makes sense to me, I was just checking if you could fix quickly your problem. Meanwhile Iâm going to contact Imgix as I think it should work with auto=format.
@mat_jack1 just for your reference, the mentioned GIF file (original file in assets) is not that big â 389.76KB. If it helps here is direct link to this asset inside DatoCMS.
@primoz.rome, for these images, should they ever exceed dpr > 1 ? Youâre just enlarging them past their native size at that point, which causes pixelation or upsampling artifacts anyway. Might be better to export them at a higher native resolution and downsample to DPRs < 1 instead?
Yes, the dpr is the way that we use to manage responsive images, so itâs automatically added.
A couple of ideas for you to try out:
can you consider using w: 1280 ? The original GIF looks 1280px wide, this might be enough to prevent the dpr=4 to kick in.
you can try using auto: format, compress, it might help reduce the size and avoid the timeout.
From Imgix they say that the problem is the rendering of the GIF with dpr=4 which makes a big image that times out. The compress can help and also avoid the dpr=4 to kick in. Let me know if these two options work for you.
@mat_jack1 This almost seems like a bug on our part to me. I wonder if we should add that to our own image component/default Imgix queries too? DPR makes sense when an image is scaled down from its native size to fit a container, in which case DPR > 1 can improve clarity on retina devices. But when we accidentally use it to scale an image past beyond its native size, at best it will look bad (upscaled), at worst it will cause an Imgix timeout like here. Itâs what Imgix suggests in their responsive images tutorial too. I think Iâve seen similar situations with other customers too, but at the time I didnât realize we were the ones doing the DPR calculations for them. My mistake!
Do you have an example where thatâs still causing a timeout?
e.g. for your image of https://www.datocms-assets.com/53444/1733259443-new-modal-test-improvements-in-measure-mode.gif?auto=format&w=1024&dpr=3, adding &fit=max still seems to work?
It may be non-deterministic in a way, like if maybe Imgix is re-rendering it on every edge node and maybe sometimes it times out and sometimes it doesnât⌠ugh That would be even harder to troubleshoot. Let me talk to Imgix about this and get back to you.
In the meantime, though, are you sure a video wonât do? By âbandwidthâ, are you worried about what the user downloads or what Dato will charge you?
An MP4 generated from your original GIF is only 1.7 MB
(and it looks like itâs dithering a bit; if you record the video straight from the app, it should be even smaller & higher quality with the right settings).