How can I update a named transformation?

If you need to update an existing transformation, the simplest solution is to either create a new transformation under a new name, or to use dynamic transformations rather than named transformations.


If you still want to keep the current transformation's name, then:

  • If you have less than 1000 images associated with this transformation, you can use our management console (or admin API) to delete the current transformation, including associated derived images, and create a new one under the same name.
  • If you have more than 1000 images associated with this transformation, you can use our admin API to update the transformation, but the new settings will only be applied to newly generated images.
    Here are two examples:
Cloudinary::Api.update_transformation("my_named_transformation", :unsafe_update=>{"crop"=>"scale", "width"=>103}) 
Cloudinary::Api.update_transformation("my_named_transformation", :unsafe_update=>[ {"crop"=>"scale", "width"=>103}, {:overlay => "badge", :gravity => :north} ]) 

 

The :unsafe_update parameter updates a named transformation parameters without regenerating existing images

 

Note that if you choose to keep the same transformation's name, only newly transformed images will be using the new transformation.

Have more questions? Submit a request

Comments

Powered by Zendesk