Most of our image optimization tips require making some adjustments to their delivery URLs.
While this can be solved using our API, or by editing your images one-by-one with the provided UI support, there are other more easy and quick ways to achieve similar results.
Using "search & replace" tools (e.g. "Better Search Replace") you can locate all Cloudinary URLs on your application and have different transformation components attached to it, for example, the following will add automatic format conversion which usually causes Bandwidth consumption to drop significantly:
"https://res.cloudinary.com/demo/image/upload/demo/" => "https://res.cloudinary.com/demo/image/upload/demo/f_auto,q_auto/"
Attention: be careful when running these operations to avoid doing damage to your LIVE production.
Comments
6 comments
Can you not give an example of how to do this on multiple URLs across a site?
Very many people simple want to host their images and apply f_auto,fl_lossy,q_auto to them. Most of the other options are irrelevant to most people building Wordpress sites. There really should be a way of applying these settings through the plugin as a simple on/off.
Hi Martin,
In order to provide bulk optimizations on your uploaded image, you can add upload preset on your [upload setting page](https://cloudinary.com/console/settings/upload) with incoming transformations and then choose it as your default upload preset.
Please note that it will only affect the new uploads. Also note that in an incoming transformation, we can include q_auto but not f_auto or fl_loosy.
Alternatively, you can add a real-time find and replace plugin and replace the string: http://res.cloudinary.com/<CLOUD NAME>/image/upload/ with the string `http://res.cloudinary.com/<CLOUD NAME>/image/upload/q_auto,f_auto/
We are always working to improve our WordPress plugin and I'll add your requests to our product team.
If you have further question please do not hesitate to contact us at support.
In my opinion this makes the plugin almost useless for regular WP users who are trying to optimize their images. I guess most of us are looking for an easy way to reach q_auto and f_auto...
Perhaps a button before I upload 900 images that says: "Which optimizations would you like to apply before uploading?" LOL
No....that would be silly and too easy! Damn lazy Democrats always want to do stuff the easy way. When I went to school I walked home in ...........!
:))
We actually working on a new version that will set the global optimizations in advanced.
Stay tuned for our updates!
I just ran through the process of moving a blog to a new site and uploaded all the images from that blog to Cloudinary (over 700). The fact that Cloudinary automatically updates all blog image URLs saved me hours of time. I then went in and used the Better Search Replace plugin to add all the parameters across the site in less than 10 mins. Thanks for making it super easy.
One helpful tip when using the Better Search Replace is to search like so:
String to search:(if you have /v after /upload/ in your URLs like most Cloudinary assets)
http://res.cloudinary.com/<CLOUD NAME>/image/upload/v
String to replace:
http://res.cloudinary.com/<CLOUD NAME>/image/upload/q_auto,f_auto/v
The reason is if you do not add the `/v` then you can only run this once without it picking up the URLs you've already added transformation components.
example: searching for http://res.cloudinary.com/<CLOUD NAME>/image/upload/ would find all these URLs too: http://res.cloudinary.com/<CLOUD NAME>/image/upload/q_auto,f_auto/
Hope that helps someone.
Please sign in to leave a comment.