Question about applying upload presets on initial upload, are all the derived images based on these initial presets?


1 comment

  • Avatar
    Daniel Mendoza


    You are right that this will be applied globally if it's set as the default upload preset and default media library preset. The one adjustment we need to do is with regards to dpr_auto and f_auto. We actually need to list out all variations of those transformations. For instance `f_auto` would be theses:

    • f_auto
    • f_webp
    • f_webp,fl_awebp
    • f_wdp

    We would need to do the same for dpr_auto, but in order for you to use dpr_auto, you'll need to include responsive library ( If you do end up using that, you would also need to generate the variations:

    • dpr_1.0
    • dpr_2.0
    • dpr_3.0

    In the end, the eager transformations should have these combinations:

    • c_limit,dpr_1.0,f_auto,h_1000,q_auto,w_1000/jpg
    • c_limit,dpr_2.0,f_auto,h_1000,q_auto,w_1000/jpg
    • c_limit,dpr_3.0,f_auto,h_1000,q_auto,w_1000/jpg
    • c_limit,dpr_1.0,f_webp,h_1000,q_auto,w_1000/jpg
    • c_limit,dpr_2.0,f_webp,h_1000,q_auto,w_1000/jpg
    • c_limit,dpr_3.0,f_webp,h_1000,q_auto,w_1000/jpg
    • c_limit,dpr_1.0,f_webp,fl_awebp,h_1000,q_auto,w_1000/jpg
    • c_limit,dpr_2.0,f_webp,fl_awebp,h_1000,q_auto,w_1000/jpg
    • c_limit,dpr_3.0,f_webp,fl_awebp,h_1000,q_auto,w_1000/jpg
    • c_limit,dpr_1.0,f_wdp,h_1000,q_auto,w_1000/jpg
    • c_limit,dpr_2.0,f_wdp,h_1000,q_auto,w_1000/jpg
    • c_limit,dpr_3.0,f_wdp,h_1000,q_auto,w_1000/jpg

    And you'll need to remove the `dpr_auto` form the incoming transformation as this just doing dpr_1.0 which is the original. If you do this just be conscious of the number of transformations you'll be generating.

    Lastly, when you are referring to an image on your site, you'll need to use the exact transformation that you requested in the eager transformation so that we don't generate another variation. For example, if I generate eagerly `c_limit,dpr_3.0,f_wdp,h_1000,q_auto,w_1000` then my url should be `,dpr_3.0,f_wdp,h_1000,q_auto,w_1000/<public_id>.jpg`

    Comment actions Permalink

Please sign in to leave a comment.