Named image transformation with $dpr variable
Is it possible to create a named image transformation with DPR passed as a variable?
In the management console, dpr setting is a drop down menu with discrete values to choose, unlike width for example, which allows manual entry of $myWidth as a variable name.
Just wondering if there is any work around, as looking to use named transformations exclusively and turn on strict mode. But would rather not create a separate named transformation for each DPR required by the client.
Thanks
-
Hi,
Thanks for reaching out.
You can use the
dprparameter to set the DPR value of the delivered video. The parameter accepts a float value specifying the DPR multiplier.Please check out the details at https://cloudinary.com/documentation/video_manipulation_and_delivery#set_device_pixel_ratio_dpr
Hope this helps, please let me know if you have any further questions.
Best regards,
Mo0
Post is closed for comments.
Comments
1 comment