In order to apply the format conversion, you should use put the format
parameter outside of the chained part of the transformation.
The SDK will add the 'format' you provide to the end of the URL.
For example, using our Ruby SDK for Rails:
<%= u.cl_image_upload(:picture, :html => { multiple: true }, :use_filename => true, :eager_async => true, :eager => [ { :format => 'jpg', :transformation => [ { :crop => :fit, :height => 300, :width => 300}, { :flags => "relative", :height => 1.0, :overlay => "my_overlay", :opacity => 60, :width => 0.8} ]} ])%>
Comments
0 comments
Please sign in to leave a comment.