Confused about using Cloudinary js solution for automating responsive images

Comments

1 comment

  • Avatar
    Aleksandar Kostadinov

    Hi Jackie,

    Yes, the URLs, apart from c_scale,w_auto should also have any other transformations you would like to use, such as f_auto, q_auto, dpr_auto or any other image transformation.

    Below I've also included a sample JSFiddle that shows how the w_ value will be derived depending on how the <img/> and its parent element are defined and what widths they're given in different scenarios.
    https://jsfiddle.net/aleksandar_cloudinary/859nvqcp/

    0
    Comment actions Permalink

Please sign in to leave a comment.