nhoizey’s avatarnhoizey’s Twitter Archive—№ 109,442

    1. …in reply to @simonhearne
      @simonhearne 😮😱 I thought Cloudinary (the one I use) was using the width hint to provide an exactly sized image instead of the step from srcset! I did even test it, months ago… 🤔
  1. …in reply to @nhoizey
    @simonhearne It looks like @cloudinary uses DPR and Width CH perfectly when computing the image width. Here, I have a srcset with widths 980w and 1290w, I need an image that is 972px wide (360*0.9*3), so the browser asks for the 980w one, and Cloudinary rounds it to 1000px.
    oh my god twitter doesn’t include alt text from images in their API
    1. …in reply to @nhoizey
      @simonhearne @cloudinary I'm using w_auto, as presented here by @etportis: cloudinary.com/blog/automatic_responsive_images_with_client_hints#how_to_scale_an_image_with_automatic_width I wish Cloudinary would limit the image width to 980px instead of going up to 1000px when I write w_auto:100:980, but it's better than stuffing srcset with all dimensions with 100px steps.