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
This always produces an image tag with height=250 and width=250 regardless of how the image is cropped. cl_image_tag should not pass through the height and width if crop is set to fit or should use a different variable to pass the cloudinary vs the image options.
The text was updated successfully, but these errors were encountered:
Thank you for reporting this issue.
We should indeed fix cl_image_tag not to add the width & height attributes when 'fit' or 'limit' crop modes are used.
In the meantime, there's an easy workaround. Simply use :html_width and :html_height. For example:
When using cl_image_tag with :crop => :fit, it passes the non-dynamic height/width variables to the image tag which makes the image size incorrectly.
For example:
This always produces an image tag with height=250 and width=250 regardless of how the image is cropped. cl_image_tag should not pass through the height and width if crop is set to fit or should use a different variable to pass the cloudinary vs the image options.
The text was updated successfully, but these errors were encountered: