Cloudinary Blog

Automatic cloud-based image improvements and effects

How to Apply Artistic Filter Effects to Enhance Image Quality
 
Do you like to show your photos exactly as they were taken or do you usually tweak them a little to get that extra punch? What about applying artistic filters before sharing them with your friends and family? 
 
Just a few years ago, almost all photos were displayed and shared as-is. Image transformations and improvements were left to the Photoshop experts. Then came the more user-friendly desktop apps, like Picasa, that allowed any user to easily improve their photos. A single click on the "I'm feeling lucky" button would instantly make a photo pop, and if the result wasn't satisfactory, you could have always played with the intuitive image adjustment controls.
 
With the rising adoption of smartphone based cameras, we experienced an explosion of photo taking & sharing mobile apps such as Instagram. With a single touch, users can now enhance the colors of their photos, apply artistic filter effects that match their taste and mood, and add fancy looking frames. The photos such users share with the world are eye-catching, and with the right personal touch - look very professional. 
 
Even if you prefer your photos to be as realistic as possible and perfectly match the captured scenes, you'll probably agree that the more amateur photographers amongst us can greatly benefit from gentle photo retouches, colors and lighting fixes. After all, people neglect to pay attention to their camera’s white balance settings, and not all cameras can perform equally well on different lighting situations.
 
page load speed
 
In the comfort of your own home, you can manually retouch your images one by one. But how does this scale to your website or mobile app? When you have many visitors uploading their photos to your online service, how can you retouch these automatically?
 
In this blog post we wanted to introduce Cloudinary's image improvement filters and effects. With these new capabilities, you can now embed better looking images in your websites and mobile apps with ease. You can even mix and match multiple improvement filters together to create cool, "artistic" results.
 

A fully automated image improvement filter 

Take a look at left-most image below. This image was uploaded to Cloudinary, and doesn't look optimal. Applying Cloudinary's new cloud-based 'improve' effect (e_improve for URLs) will make it look much better, don't you think?
 
 
                         
 
     
The following Ruby on Rails code generates a transformation URL with the same 'improve' effect:
Copy to clipboard
<%= cl_image_tag("orly.jpg", :crop => :scale, :width => 200, :effect => :improve) %>
Here's another example of the powerful impact of the 'improve' effect:
 
 
     
 
 
You can simply set the 'effect' parameter to 'improve' and most images and thumbnails on your website would automatically look much better. Here's a PHP code for reaching the same result.
Copy to clipboard
<?php echo cl_image_tag("gray_mountain.jpg",
     array("width" => 300, "crop" => "scale", "effect" => "improve")); ?>
 

Automatic color, brightness and contrast balancing

The 'improve' effect gives you a powerful improvement filter. Occasionally though, you may want to fine-tune your image tweaking. To do that, Cloudinary offers granular filters you can use individually or combined, to create customized effects.
 
Automatic contrast balancing is available by setting the 'effect' parameter to 'auto_contrast' (or e_auto_contrast for URLs). The following example shows the uploaded image before and after contrast balancing.
 
 
     
 
Two additional effects are automatic color balancing and brightness balancing. You can apply them by setting the 'effect' parameter to 'auto_color' or 'auto_brightness' (e_auto_color or e_auto_brightness for URLs).
 
The following example shows the impact of applying both 'auto_color' and 'auto_brightness' on an uploaded image:
 
 
     
Same example in Django:
Copy to clipboard
cloudinary.CloudinaryImage("nice_beach.jpg").image(transformation = 
  [dict(width=300, crop="scale"), dict(effect="auto_color"), 
   dict(effect="auto_brightness")])
 

Fill light strengthening 

Brightness level adjustment is very useful to fix dark images. However, on certain scenarios, you might encounter images that have both bright and dark sections. In this case simply increasing the brightness might overexpose the brighter areas of the image.
 
The new fill-light effect can be used to fix this exact scenario. The following example increases the fill light by setting the 'effect' parameter to 'fill_light' (e_fill_light for URLs).
 
 
     
   
Same example in .NET:
Copy to clipboard
cloudinary.Api.UrlImgUp.Transform(
  new CloudinaryDotNet.Transformation().Width(300).Crop("scale").Effect("fill_light")).
    BuildImageTag("street.jpg");

"Artistic" filters 

Cloudinary's set of automatic image improvement filters, together with its custom filters and effects, allows you to easily generate 'cool' chained effects that should match your taste and graphic requirements.
 
The following example applies multiple transformations to reach a unique, custom filter. It applies the auto improve effect, increases sharpness level, reduces the red levels and increases the blues. It also increases brightness, adds a gradient fade effect, rounds the image’s corners and adds a wide border. All done via a simple URL. Isn't that cool?
 
 
                        
   
If you don't want to embed such long URLs in your website, you can always define a named transformation instead. For example, we defined a transformation named 'sample_artistic' that applies all the above effects. Simply add t_simple_artitistic your code and all images will be automatically modified accordingly. Here's a much shorter URL that generates the same result:
 
 
You can also use Cloudinary's overlays, underlays, opacity changes and text layers to dynamically and automatically create cool results, like the one below, for any uploaded image:
 
 
 
 

Summary 

Do you work on a site or app that allows you or your users to upload images? Using Cloudinary and a tiny transformation URL change, you can have your site's images look much more vibrant and professional and make your visitors happier.
 
You can always use Cloudinary's face detection based cropping to focus on the relevant parts of the photo. Now you can also improve your images, make them look more vivid and balanced. With Cloudinary you can also easily change your mind and modify the default filters being applied. With just one more change to your URLs and all your images will be dynamically recreated for you with the updated filters, delivered optimized through a fast CDN.
 
If you don't have a Cloudinary account yet, you can sign up now for free.
 

Further Reading on Image Optimization


Recent Blog Posts

Our $2B Valuation

By
Blackstone Growth Invests in Cloudinary

When we started our journey in 2012, we were looking to improve our lives as developers by making it easier for us to handle the arduous tasks of handling images and videos in our code. That initial line of developer code has evolved into a full suite of media experience solutions driven by a mission that gradually revealed itself over the course of the past 10 years: help companies unleash the full potential of their media to create the most engaging visual experiences.

Read more
Direct-to-Consumer E-Commerce Requires Compelling Visual Experiences

When brands like you adopt a direct–to-consumer (DTC) e-commerce approach with no involvement of retailers or marketplaces, you gain direct and timely insight into evolving shopping behaviors. Accordingly, you can accommodate shoppers’ preferences by continually adjusting your product offering and interspersing the shopping journey with moments of excitement and intrigue. Opportunities abound for you to cultivate engaging customer relationships.

Read more
Automatically Translating Videos for an International Audience

No matter your business focus—public service, B2B integration, recruitment—multimedia, in particular video, is remarkably effective in communicating with the audience. Before, making video accessible to diverse viewers involved tasks galore, such as eliciting the service of production studios to manually dub, transcribe, and add subtitles. Those operations were costly and slow, especially for globally destined content.

Read more
Cloudinary Helps Minted Manage Its Image-Generation Pipeline at Scale

Shoppers return time and again to Minted’s global online community of independent artists and designers because they know they can count on unique, statement-making products of the highest quality there. Concurrently, the visual imagery on Minted.com must do justice to the designs into which the creators have poured their hearts and souls. For Minted’s VP of Engineering David Lien, “Because we are a premium brand, we need to ensure that every single one of our product images matches the selected configuration exactly. For example, if you pick an 18x24 art print on blue canvas, we will show that exact combination on the hero images in the PDF.”

Read more
Highlights on ImageCon 2021 and a Preview of ImageCon 2022

New year, same trend! Visual media will continue to play a monumental role in driving online conversions. To keep up with visual-experience trends and best practices, Cloudinary holds an annual conference called ImageCon, a one-of-a-kind event that helps attendees create the most engaging visual experiences possible.

Read more