If you Google for “Hello Cloudinary”, you will find some intriguing articles claiming that Cloudinary is a Photoshop replacement. Well, although the comparison is very flattering and we do believe that Cloudinary is a fantastic service for web developers, we never thought of our service as a replacement for Photoshop. However, some image manipulation features of Cloudinary allow web developers and web designers to dynamically modify the look & feel of their website’s images in an extremely easy way without manually processing their images using an image editing desktop software. In this blog post we wanted to describe some of Cloudinary’s newest features - applying effects and filters on images.
Effects
Applying effects on images is done using the new ‘effect’ parameter or ‘e’ for URLs. Some effects also accept an additional numeric parameter. Here are some examples:
Let’s take the following ‘horses’ image that was uploaded to Cloudinary:
https://res.cloudinary.com/demo/image/upload/horses.jpg
The following examples modify the color saturation of the image. A negative saturation value will reduce saturation and a positive will increase it:
.../image/upload/e_saturation:-70/horses.jpg .../image/upload/e_saturation:70/horses.jpg
If you’re using Cloudinary’s client-side integration libraries, applying this transformation is made even simpler:
Ruby on Rails:
PHP:
With Cloudinary’s cloud-based transformations you can also change an image’s brightness:
.../image/upload/e_brightness:-50/horses.jpg .../image/upload/e_brightness:50/horses.jpg
Chained Transformations
If you read our documentation and follow our blog posts, you probably know that Cloudinary already provides many image transformations and delivery methods. By chaining these image transformations together, you can create images that perfectly complement your graphic design.
For example, the following image is Arianna Huffington’s Facebok profile picture:
Take a look at the following Cloudinary URL that generates the image below:
What happened here? Simply accessing the above URL told Cloudinary to remotely fetch Arriana Huffington’s Facebook profile picture, created a 150x150px thumbnail using face detection based cropping, rounded the image’s corners, added a sepia effect, converted it to a transparent PNG format, added a watermark layer on the bottom-left corner, rotated the image by 10 degrees clock-wise and ultimately delivered the resulting image through a fast CDN using smart caching techniques. Isn’t that great?
Same example in Ruby on Rails: