Cloud-based API for applying effects on images
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:
http://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:
<%= cl_image_tag("horses.jpg", :effect => "saturation:70") %>PHP:
<?php echo cl_image_tag("horses.jpg", array("effect" => "saturation:70")) ?>
{% cloudinary "horses.jpg" effect="saturation:70" %}
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:
<%= facebook_profile_image_tag("AriannaHuffington.png", :angle => 10,
:transformation =>
[{:width => 150, :height => 150, :crop => :thumb,
:gravity => :face, :radius => 20, :effect => :sepia},
{:overlay => "techcrunch", :gravity => :south_west,
:x => 5, :y => 5, :width => 50}]) %>
Tweaking a Website’s Color Scheme

<img src="site_bg.jpg" width="350" height="135" data-src="site_bg.jpg" class="bg_image"/>

$('.bg_image').cloudinary({ effect: "hue:50"});


Several years ago, a good friend of mine showed me a cool graphic design concept for his new web-based startup company. It looked pretty great. What really caught my eye was the designer’s unique use of visitor profile photos. You see, when a visitor registered to the service and uploaded his photo, the designer envisioned a large, faded, B&W, slightly rotated version of the same profile photo being used as the background image for the visitor’s personal home page. I thought for a minute and told my friend to let this one go.



Incidentally, we saw the need for auto-rotated images at the website of one of Cloudinary’s customers. The service, 




