You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't think image variants is the right fit for this. In the output filter we are already scanning for images and applying the amp-img tag, maybe we could check here if the width and height is set and if not get the image and find the width and height and insert them into the amp-img tag. Since we are doing it server-side it would still elminate the need for the client to download the image to get the aspect ratio for amp and amp cache should make this call only happen once per (cache expiration) right? what do you think?
So what you are suggesting is that we parse the image URL, figure out whether the image is an attachment, cms.file, media file, or whathever else and then call a respective method through the API to get the dimensions?
The text was updated successfully, but these errors were encountered: