Cloudinary Blog

5 Ways for Effective Facebook Image Optimization

5 Ways for Effective Facebook Image Optimization

As a website/app developer or owner, you’ve undoubtedly experienced your fair share of glitches and mishaps when it comes to users or site visitors sharing your content. Many outlets such as news and media sites, social networks, or e-commerce sites include the option to "like" or "share" content such as blog posts or images. Once shared, the social network site displays a snippet of the shared content alongside a featured image. This way, your site content gets maximum exposure in social networks and attracts additional visitors.

But, have you ever noticed that sometimes the content that you shared isn’t what you expected it to be, displaying the wrong featured image for a post, or if the correct image is displayed, its quality is subpar? Are you given credit for every image or piece of content that’s shared from your site? In this article, we list five ways to overcome these challenges and create a consistent user experience when sharing images on sites such as social networks.

While a text abstract is important, a piece of content’s featured image is even more so. Images on popular social networks like Facebook and LinkedIn play a bigger role nowadays and have more prominent placements within a post. Image quality and content is crucial to creating deeper user engagement, and ultimately, leads to more shares. Therefore, it’s even more important that the correct image is displayed in the appropriate high resolution for the best look and feel of the content.

There are a few ways to ensure that your image is shared in its optimal form. The first is by giving Facebook access to a version of the image with a high enough resolution within Facebook’s required aspect ratio for maximum quality. You may also want to be credited for the image so it doesn’t get lost in the sea of web images or re-branded by someone else. This can be done by adding a watermark of your logo or simply a text overlay. You may want to create a different snippet of an image specifically for sharing purposes. For example, you can display two pictures in a single image to show a comparison of people or products.  

Cloudinary allows you to easily solve all of these issues by enabling you to upload a single high resolution image and then adjusting it to build your social network snippet. Here are five ways in which images can be optimized for sharing on social networks:

1. Choosing the correct high resolution image

Social networks usually guess which image to use as the cover according to resolution and page placement. This can be counteracted by adding a meta tag to your post, allowing you to decide which one is used. The meta tag for Facebook defines a property named og:image in the header of your HTML page, other networks require the use of other property names, such as itemprop='image' for Google+. In addition, social networks have specific requirements for images. In order to boost your engagement in Facebook, for example, you need to comply with specific restraints, such as minimum image size and aspect ratio. This is particularly important for images in Facebook Ads as well as images shown on mobile devices.

Let’s say an image on your e-commerce site is too small to fit the requirements laid out by Facebook. Usually you would need two separate images: one for your site and one to share. In addition, if you use a CMS that allows you to set a link to the image for your meta tag, you can simply fill it in with a URL for a high resolution image that is within Facebook’s required aspect ratio.

With Cloudinary's dynamic image manipulation, you can use the same original high resolution image and programmatically adjust it to be used anywhere. The image on the page can be a small thumbnail while the image you want to share on Facebook (using the the meta property URL) can be a full-size, high resolution or custom resolution image:

For example, the following hi-res (2464x1640) image was uploaded with the leather_bag ID.

Ruby:
cl_image_tag("leather_bag.jpg")
PHP:
cl_image_tag("leather_bag.jpg")
Python:
CloudinaryImage("leather_bag.jpg").image()
Node.js:
cloudinary.image("leather_bag.jpg")
Java:
cloudinary.url().imageTag("leather_bag.jpg");
JS:
cloudinary.imageTag('leather_bag.jpg').toHtml();
jQuery:
$.cloudinary.image("leather_bag.jpg")
React:
<Image publicId="leather_bag.jpg" >

</Image>
Angular:
<cl-image public-id="leather_bag.jpg" >

</cl-image>
.Net:
cloudinary.Api.UrlImgUp.BuildImageTag("leather_bag.jpg")
Android:
MediaManager.get().url().generate("leather_bag.jpg");
iOS:
imageView.cldSetImage(cloudinary.createUrl().generate("leather_bag.jpg")!, cloudinary: cloudinary)
Original bag photo

In your web pages you might want to include a small thumbnail of the image. The example below generated a 300x220 thumbnail that can fit well in a web page.

Ruby:
cl_image_tag("leather_bag.jpg", :width=>300, :height=>220, :gravity=>"custom", :crop=>"thumb")
PHP:
cl_image_tag("leather_bag.jpg", array("width"=>300, "height"=>220, "gravity"=>"custom", "crop"=>"thumb"))
Python:
CloudinaryImage("leather_bag.jpg").image(width=300, height=220, gravity="custom", crop="thumb")
Node.js:
cloudinary.image("leather_bag.jpg", {width: 300, height: 220, gravity: "custom", crop: "thumb"})
Java:
cloudinary.url().transformation(new Transformation().width(300).height(220).gravity("custom").crop("thumb")).imageTag("leather_bag.jpg");
JS:
cloudinary.imageTag('leather_bag.jpg', {width: 300, height: 220, gravity: "custom", crop: "thumb"}).toHtml();
jQuery:
$.cloudinary.image("leather_bag.jpg", {width: 300, height: 220, gravity: "custom", crop: "thumb"})
React:
<Image publicId="leather_bag.jpg" >
  <Transformation width="300" height="220" gravity="custom" crop="thumb" />
</Image>
Angular:
<cl-image public-id="leather_bag.jpg" >
  <cl-transformation width="300" height="220" gravity="custom" crop="thumb">
  </cl-transformation>
</cl-image>
.Net:
cloudinary.Api.UrlImgUp.Transform(new Transformation().Width(300).Height(220).Gravity("custom").Crop("thumb")).BuildImageTag("leather_bag.jpg")
Android:
MediaManager.get().url().transformation(new Transformation().width(300).height(220).gravity("custom").crop("thumb")).generate("leather_bag.jpg");
iOS:
imageView.cldSetImage(cloudinary.createUrl().setTransformation(CLDTransformation().setWidth(300).setHeight(220).setGravity("custom").setCrop("thumb")).generate("leather_bag.jpg")!, cloudinary: cloudinary)
Photo thumbnail for web page

Now you can add a meta tag to your HTML page telling Facebook to use a much larger image of 1200x900 pixels for example:

<meta content='https://res.cloudinary.com/demo/image/upload/w_1200,h_900,g_custom,c_thumb/leather_bag.jpg' property='og:image'>

2. Add a watermark or image overlay

If the content you created goes viral, you will probably want credit and not have it simply spread all over the internet without any connection to the original post. Making an image traceable back to you is simple, just add a watermark of your logo, create a new image and set the meta tag accordingly. With Cloudinary you can programmatically add your logo or any specific image as an overlay on top of the shared blog post’s featured image.

As you can see below, when shared on Facebook, the image has the Cloudinary logo as a watermark overlay. A previously uploaded image was dynamically added as an overlay while the color brightness was increased and the opacity was reduced to 25% to create a semi-transparent result:

Ruby:
cl_image_tag("leather_bag.jpg", :transformation=>[
  {:width=>400, :height=>300, :gravity=>"custom", :crop=>"thumb"},
  {:overlay=>"cloudinary_icon", :opacity=>25, :effect=>"brightness:200", :width=>0.5, :flags=>"relative"}
  ])
PHP:
cl_image_tag("leather_bag.jpg", array("transformation"=>array(
  array("width"=>400, "height"=>300, "gravity"=>"custom", "crop"=>"thumb"),
  array("overlay"=>"cloudinary_icon", "opacity"=>25, "effect"=>"brightness:200", "width"=>0.5, "flags"=>"relative")
  )))
Python:
CloudinaryImage("leather_bag.jpg").image(transformation=[
  {'width': 400, 'height': 300, 'gravity': "custom", 'crop': "thumb"},
  {'overlay': "cloudinary_icon", 'opacity': 25, 'effect': "brightness:200", 'width': 0.5, 'flags': "relative"}
  ])
Node.js:
cloudinary.image("leather_bag.jpg", {transformation: [
  {width: 400, height: 300, gravity: "custom", crop: "thumb"},
  {overlay: "cloudinary_icon", opacity: 25, effect: "brightness:200", width: "0.5", flags: "relative"}
  ]})
Java:
cloudinary.url().transformation(new Transformation()
  .width(400).height(300).gravity("custom").crop("thumb").chain()
  .overlay(new Layer().publicId("cloudinary_icon")).opacity(25).effect("brightness:200").width(0.5).flags("relative")).imageTag("leather_bag.jpg");
JS:
cloudinary.imageTag('leather_bag.jpg', {transformation: [
  {width: 400, height: 300, gravity: "custom", crop: "thumb"},
  {overlay: new cloudinary.Layer().publicId("cloudinary_icon"), opacity: 25, effect: "brightness:200", width: "0.5", flags: "relative"}
  ]}).toHtml();
jQuery:
$.cloudinary.image("leather_bag.jpg", {transformation: [
  {width: 400, height: 300, gravity: "custom", crop: "thumb"},
  {overlay: new cloudinary.Layer().publicId("cloudinary_icon"), opacity: 25, effect: "brightness:200", width: "0.5", flags: "relative"}
  ]})
React:
<Image publicId="leather_bag.jpg" >
  <Transformation width="400" height="300" gravity="custom" crop="thumb" />
  <Transformation overlay="cloudinary_icon" opacity="25" effect="brightness:200" width="0.5" flags="relative" />
</Image>
Angular:
<cl-image public-id="leather_bag.jpg" >
  <cl-transformation width="400" height="300" gravity="custom" crop="thumb">
  </cl-transformation>
  <cl-transformation overlay="cloudinary_icon" opacity="25" effect="brightness:200" width="0.5" flags="relative">
  </cl-transformation>
</cl-image>
.Net:
cloudinary.Api.UrlImgUp.Transform(new Transformation()
  .Width(400).Height(300).Gravity("custom").Crop("thumb").Chain()
  .Overlay(new Layer().PublicId("cloudinary_icon")).Opacity(25).Effect("brightness:200").Width(0.5).Flags("relative")).BuildImageTag("leather_bag.jpg")
Android:
MediaManager.get().url().transformation(new Transformation()
  .width(400).height(300).gravity("custom").crop("thumb").chain()
  .overlay(new Layer().publicId("cloudinary_icon")).opacity(25).effect("brightness:200").width(0.5).flags("relative")).generate("leather_bag.jpg");
iOS:
imageView.cldSetImage(cloudinary.createUrl().setTransformation(CLDTransformation()
  .setWidth(400).setHeight(300).setGravity("custom").setCrop("thumb").chain()
  .setOverlay("cloudinary_icon").setOpacity(25).setEffect("brightness:200").setWidth(0.5).setFlags("relative")).generate("leather_bag.jpg")!, cloudinary: cloudinary)
Photo with a watermark for branded social sharing

3. Personalized images with a stylized text caption

Text can also be added to create a recognizable image. You may wish to add your brand name, your site's name, the photographer, product name, or teaser text with a call to action such as "Sign up to receive updates". With Cloudinary, text can be added dynamically. Again, simply add an overlay and insert your desired text, specifying the font style and size. You may want to take a look at how-to use Cloudinary to create a watermark or text overlay on your image.

The following image shows one of the many ways text can dynamically added as an overlay to an image and manipulated for best placement and recognition. The caption 'Leather laptop bag' using the Arial font was dynamically added as an overlay above a semi-transparent black bar.

Ruby:
cl_image_tag("leather_bag.jpg", :transformation=>[
  {:width=>350, :height=>250, :gravity=>"custom", :crop=>"thumb"},
  {:overlay=>"black_bar", :width=>1.0, :height=>0.1, :flags=>"relative", :gravity=>"south", :opacity=>50},
  {:overlay=>{:font_family=>"Arial", :font_size=>16, :font_weight=>"bold", :text=>"Leather%20laptop%20bag"}, :color=>"white", :gravity=>"south", :y=>4}
  ])
PHP:
cl_image_tag("leather_bag.jpg", array("transformation"=>array(
  array("width"=>350, "height"=>250, "gravity"=>"custom", "crop"=>"thumb"),
  array("overlay"=>"black_bar", "width"=>1.0, "height"=>0.1, "flags"=>"relative", "gravity"=>"south", "opacity"=>50),
  array("overlay"=>array("font_family"=>"Arial", "font_size"=>16, "font_weight"=>"bold", "text"=>"Leather%20laptop%20bag"), "color"=>"white", "gravity"=>"south", "y"=>4)
  )))
Python:
CloudinaryImage("leather_bag.jpg").image(transformation=[
  {'width': 350, 'height': 250, 'gravity': "custom", 'crop': "thumb"},
  {'overlay': "black_bar", 'width': 1.0, 'height': 0.1, 'flags': "relative", 'gravity': "south", 'opacity': 50},
  {'overlay': {'font_family': "Arial", 'font_size': 16, 'font_weight': "bold", 'text': "Leather%20laptop%20bag"}, 'color': "white", 'gravity': "south", 'y': 4}
  ])
Node.js:
cloudinary.image("leather_bag.jpg", {transformation: [
  {width: 350, height: 250, gravity: "custom", crop: "thumb"},
  {overlay: "black_bar", width: "1.0", height: "0.1", flags: "relative", gravity: "south", opacity: 50},
  {overlay: {font_family: "Arial", font_size: 16, font_weight: "bold", text: "Leather%20laptop%20bag"}, color: "white", gravity: "south", y: 4}
  ]})
Java:
cloudinary.url().transformation(new Transformation()
  .width(350).height(250).gravity("custom").crop("thumb").chain()
  .overlay(new Layer().publicId("black_bar")).width(1.0).height(0.1).flags("relative").gravity("south").opacity(50).chain()
  .overlay(new TextLayer().fontFamily("Arial").fontSize(16).fontWeight("bold").text("Leather%20laptop%20bag")).color("white").gravity("south").y(4)).imageTag("leather_bag.jpg");
JS:
cloudinary.imageTag('leather_bag.jpg', {transformation: [
  {width: 350, height: 250, gravity: "custom", crop: "thumb"},
  {overlay: new cloudinary.Layer().publicId("black_bar"), width: "1.0", height: "0.1", flags: "relative", gravity: "south", opacity: 50},
  {overlay: new cloudinary.TextLayer().fontFamily("Arial").fontSize(16).fontWeight("bold").text("Leather%20laptop%20bag"), color: "white", gravity: "south", y: 4}
  ]}).toHtml();
jQuery:
$.cloudinary.image("leather_bag.jpg", {transformation: [
  {width: 350, height: 250, gravity: "custom", crop: "thumb"},
  {overlay: new cloudinary.Layer().publicId("black_bar"), width: "1.0", height: "0.1", flags: "relative", gravity: "south", opacity: 50},
  {overlay: new cloudinary.TextLayer().fontFamily("Arial").fontSize(16).fontWeight("bold").text("Leather%20laptop%20bag"), color: "white", gravity: "south", y: 4}
  ]})
React:
<Image publicId="leather_bag.jpg" >
  <Transformation width="350" height="250" gravity="custom" crop="thumb" />
  <Transformation overlay="black_bar" width="1.0" height="0.1" flags="relative" gravity="south" opacity="50" />
  <Transformation overlay={{fontFamily: "Arial", fontSize: 16, fontWeight: "bold", text: "Leather%20laptop%20bag"}} color="white" gravity="south" y="4" />
</Image>
Angular:
<cl-image public-id="leather_bag.jpg" >
  <cl-transformation width="350" height="250" gravity="custom" crop="thumb">
  </cl-transformation>
  <cl-transformation overlay="black_bar" width="1.0" height="0.1" flags="relative" gravity="south" opacity="50">
  </cl-transformation>
  <cl-transformation overlay="text:Arial_16_bold:Leather%20laptop%20bag" color="white" gravity="south" y="4">
  </cl-transformation>
</cl-image>
.Net:
cloudinary.Api.UrlImgUp.Transform(new Transformation()
  .Width(350).Height(250).Gravity("custom").Crop("thumb").Chain()
  .Overlay(new Layer().PublicId("black_bar")).Width(1.0).Height(0.1).Flags("relative").Gravity("south").Opacity(50).Chain()
  .Overlay(new TextLayer().FontFamily("Arial").FontSize(16).FontWeight("bold").Text("Leather%20laptop%20bag")).Color("white").Gravity("south").Y(4)).BuildImageTag("leather_bag.jpg")
Android:
MediaManager.get().url().transformation(new Transformation()
  .width(350).height(250).gravity("custom").crop("thumb").chain()
  .overlay(new Layer().publicId("black_bar")).width(1.0).height(0.1).flags("relative").gravity("south").opacity(50).chain()
  .overlay(new TextLayer().fontFamily("Arial").fontSize(16).fontWeight("bold").text("Leather%20laptop%20bag")).color("white").gravity("south").y(4)).generate("leather_bag.jpg");
iOS:
imageView.cldSetImage(cloudinary.createUrl().setTransformation(CLDTransformation()
  .setWidth(350).setHeight(250).setGravity("custom").setCrop("thumb").chain()
  .setOverlay("black_bar").setWidth(1.0).setHeight(0.1).setFlags("relative").setGravity("south").setOpacity(50).chain()
  .setOverlay("text:Arial_16_bold:Leather%20laptop%20bag").setColor("white").setGravity("south").setY(4)).generate("leather_bag.jpg")!, cloudinary: cloudinary)
Photo with text overlay for personalized social sharing

4. Multiple images

In some cases, you may want to combine multiple pictures into one in order to properly represent the content of your post. For example, letting people vote between two people or a blog post feature image that contains one image that represents the story and another to show the author. In this case, you’d want to share a collage of multiple images in Facebook. With Cloudinary’s overlay capability, you can place images next to each other (and even enhance the feeling of comparison or competition by adding a “___ vs ___” to the caption).

In addition, if you combine two pictures, the aspect ratio of the resulting image will generally change. In some cases, Facebook will arbitrarily cut images in order to have them fit into the snippet, meaning they won't look as desired, especially if the images are narrow or tall. But, you should cut or crop and combine them, which can be easily done with Cloudinary by resizing and cropping images, then placing one as an overlay, generating a single image that appears as desired on different devices.

Below you can see another image of a bag that was uploaded with the given leather_bag_gray ID.

Ruby:
cl_image_tag("leather_bag_gray.jpg")
PHP:
cl_image_tag("leather_bag_gray.jpg")
Python:
CloudinaryImage("leather_bag_gray.jpg").image()
Node.js:
cloudinary.image("leather_bag_gray.jpg")
Java:
cloudinary.url().imageTag("leather_bag_gray.jpg");
JS:
cloudinary.imageTag('leather_bag_gray.jpg').toHtml();
jQuery:
$.cloudinary.image("leather_bag_gray.jpg")
React:
<Image publicId="leather_bag_gray.jpg" >

</Image>
Angular:
<cl-image public-id="leather_bag_gray.jpg" >

</cl-image>
.Net:
cloudinary.Api.UrlImgUp.BuildImageTag("leather_bag_gray.jpg")
Android:
MediaManager.get().url().generate("leather_bag_gray.jpg");
iOS:
imageView.cldSetImage(cloudinary.createUrl().generate("leather_bag_gray.jpg")!, cloudinary: cloudinary)
Another bag photo for social sharing

Now we can use Cloudinary's image overlays to dynamically generate an image of both bags that might be compared in a web page. The URL of the combined image should be specified using a meta HTML tag for optimal Facebook sharing.

Ruby:
cl_image_tag("leather_bag.jpg", :transformation=>[
  {:width=>600, :height=>700, :gravity=>"custom", :crop=>"thumb"},
  {:overlay=>"leather_bag_gray", :width=>600, :height=>700, :x=>600, :gravity=>"west", :crop=>"fill"}
  ])
PHP:
cl_image_tag("leather_bag.jpg", array("transformation"=>array(
  array("width"=>600, "height"=>700, "gravity"=>"custom", "crop"=>"thumb"),
  array("overlay"=>"leather_bag_gray", "width"=>600, "height"=>700, "x"=>600, "gravity"=>"west", "crop"=>"fill")
  )))
Python:
CloudinaryImage("leather_bag.jpg").image(transformation=[
  {'width': 600, 'height': 700, 'gravity': "custom", 'crop': "thumb"},
  {'overlay': "leather_bag_gray", 'width': 600, 'height': 700, 'x': 600, 'gravity': "west", 'crop': "fill"}
  ])
Node.js:
cloudinary.image("leather_bag.jpg", {transformation: [
  {width: 600, height: 700, gravity: "custom", crop: "thumb"},
  {overlay: "leather_bag_gray", width: 600, height: 700, x: 600, gravity: "west", crop: "fill"}
  ]})
Java:
cloudinary.url().transformation(new Transformation()
  .width(600).height(700).gravity("custom").crop("thumb").chain()
  .overlay(new Layer().publicId("leather_bag_gray")).width(600).height(700).x(600).gravity("west").crop("fill")).imageTag("leather_bag.jpg");
JS:
cloudinary.imageTag('leather_bag.jpg', {transformation: [
  {width: 600, height: 700, gravity: "custom", crop: "thumb"},
  {overlay: new cloudinary.Layer().publicId("leather_bag_gray"), width: 600, height: 700, x: 600, gravity: "west", crop: "fill"}
  ]}).toHtml();
jQuery:
$.cloudinary.image("leather_bag.jpg", {transformation: [
  {width: 600, height: 700, gravity: "custom", crop: "thumb"},
  {overlay: new cloudinary.Layer().publicId("leather_bag_gray"), width: 600, height: 700, x: 600, gravity: "west", crop: "fill"}
  ]})
React:
<Image publicId="leather_bag.jpg" >
  <Transformation width="600" height="700" gravity="custom" crop="thumb" />
  <Transformation overlay="leather_bag_gray" width="600" height="700" x="600" gravity="west" crop="fill" />
</Image>
Angular:
<cl-image public-id="leather_bag.jpg" >
  <cl-transformation width="600" height="700" gravity="custom" crop="thumb">
  </cl-transformation>
  <cl-transformation overlay="leather_bag_gray" width="600" height="700" x="600" gravity="west" crop="fill">
  </cl-transformation>
</cl-image>
.Net:
cloudinary.Api.UrlImgUp.Transform(new Transformation()
  .Width(600).Height(700).Gravity("custom").Crop("thumb").Chain()
  .Overlay(new Layer().PublicId("leather_bag_gray")).Width(600).Height(700).X(600).Gravity("west").Crop("fill")).BuildImageTag("leather_bag.jpg")
Android:
MediaManager.get().url().transformation(new Transformation()
  .width(600).height(700).gravity("custom").crop("thumb").chain()
  .overlay(new Layer().publicId("leather_bag_gray")).width(600).height(700).x(600).gravity("west").crop("fill")).generate("leather_bag.jpg");
iOS:
imageView.cldSetImage(cloudinary.createUrl().setTransformation(CLDTransformation()
  .setWidth(600).setHeight(700).setGravity("custom").setCrop("thumb").chain()
  .setOverlay("leather_bag_gray").setWidth(600).setHeight(700).setX(600).setGravity("west").setCrop("fill")).generate("leather_bag.jpg")!, cloudinary: cloudinary)
Multiple photos merged into a single image for social sharing

5. Enhance photos for better engagement

Users show more interest in good looking photos. By making photos more eye-catching with stronger, sharper colors and improved color balance, you can enhance user engagement that could possibly lead to conversion. With Cloudinary, you can increase color saturation by setting the effect transformation parameter to saturation with a specified saturation level (e.g., saturation:80), automatically balance contrast and sharpen the photo.

See the difference below:

Ruby:
cl_image_tag("leather_bag.jpg", :transformation=>[
  {:gravity=>"custom", :height=>350, :width=>350, :crop=>"thumb"},
  {:effect=>"auto_contrast"},
  {:effect=>"saturation:80"},
  {:effect=>"sharpen"}
  ])
PHP:
cl_image_tag("leather_bag.jpg", array("transformation"=>array(
  array("gravity"=>"custom", "height"=>350, "width"=>350, "crop"=>"thumb"),
  array("effect"=>"auto_contrast"),
  array("effect"=>"saturation:80"),
  array("effect"=>"sharpen")
  )))
Python:
CloudinaryImage("leather_bag.jpg").image(transformation=[
  {'gravity': "custom", 'height': 350, 'width': 350, 'crop': "thumb"},
  {'effect': "auto_contrast"},
  {'effect': "saturation:80"},
  {'effect': "sharpen"}
  ])
Node.js:
cloudinary.image("leather_bag.jpg", {transformation: [
  {gravity: "custom", height: 350, width: 350, crop: "thumb"},
  {effect: "auto_contrast"},
  {effect: "saturation:80"},
  {effect: "sharpen"}
  ]})
Java:
cloudinary.url().transformation(new Transformation()
  .gravity("custom").height(350).width(350).crop("thumb").chain()
  .effect("auto_contrast").chain()
  .effect("saturation:80").chain()
  .effect("sharpen")).imageTag("leather_bag.jpg");
JS:
cloudinary.imageTag('leather_bag.jpg', {transformation: [
  {gravity: "custom", height: 350, width: 350, crop: "thumb"},
  {effect: "auto_contrast"},
  {effect: "saturation:80"},
  {effect: "sharpen"}
  ]}).toHtml();
jQuery:
$.cloudinary.image("leather_bag.jpg", {transformation: [
  {gravity: "custom", height: 350, width: 350, crop: "thumb"},
  {effect: "auto_contrast"},
  {effect: "saturation:80"},
  {effect: "sharpen"}
  ]})
React:
<Image publicId="leather_bag.jpg" >
  <Transformation gravity="custom" height="350" width="350" crop="thumb" />
  <Transformation effect="auto_contrast" />
  <Transformation effect="saturation:80" />
  <Transformation effect="sharpen" />
</Image>
Angular:
<cl-image public-id="leather_bag.jpg" >
  <cl-transformation gravity="custom" height="350" width="350" crop="thumb">
  </cl-transformation>
  <cl-transformation effect="auto_contrast">
  </cl-transformation>
  <cl-transformation effect="saturation:80">
  </cl-transformation>
  <cl-transformation effect="sharpen">
  </cl-transformation>
</cl-image>
.Net:
cloudinary.Api.UrlImgUp.Transform(new Transformation()
  .Gravity("custom").Height(350).Width(350).Crop("thumb").Chain()
  .Effect("auto_contrast").Chain()
  .Effect("saturation:80").Chain()
  .Effect("sharpen")).BuildImageTag("leather_bag.jpg")
Android:
MediaManager.get().url().transformation(new Transformation()
  .gravity("custom").height(350).width(350).crop("thumb").chain()
  .effect("auto_contrast").chain()
  .effect("saturation:80").chain()
  .effect("sharpen")).generate("leather_bag.jpg");
iOS:
imageView.cldSetImage(cloudinary.createUrl().setTransformation(CLDTransformation()
  .setGravity("custom").setHeight(350).setWidth(350).setCrop("thumb").chain()
  .setEffect("auto_contrast").chain()
  .setEffect("saturation:80").chain()
  .setEffect("sharpen")).generate("leather_bag.jpg")!, cloudinary: cloudinary)
Enhanced photo for optimized social sharing

Original photo

Summary

In some cases, it may be ideal to change visual results just for social network sharing without having to change your site’s graphic design. If the look and feel of your site is generally simple, basic, or neutral, you may want your image to stand out on Facebook, in turn earning you a greater level of engagement. In addition to the five use cases listed above, with Cloudinary, there are various manipulations you can make to your site/product/post to increase its chances of success when shared on Facebook and other social networks.

As the modern day direction of social network sharing is heading more and more towards images being the focal point of shared content, the importance of making them relevant and attention grabbing is increasing. Making the necessary adjustments is vital to successful shares and conversions. With Cloudinary, you can dynamically manipulate and create images that match your content and are appealing to social network users, consequently heightening engagement.

All of the features discussed above are available in our free and paid plans. If you don't have a Cloudinary account yet, you are welcome to sign up for a free account and try it out today.

Recent Blog Posts

Video Manipulations and Delivery for Angular Video Apps

On social media, videos posted by users constitute a significant amount of the content appeal on those platforms. From upload to manipulation to delivery, a smooth, efficient, and effective pipeline for the posting process is mandatory to ensure consistent user sessions and their steadily increasing volume. However, building such an infrastructure is a complex, labor-intensive, and problem-prone undertaking.

Read more
Green Screen Queen: Dynamic Video Transparency Fit For Royalty

If you were reading your social media or news feeds on or around June 11 this year, no doubt you came across your fair share of posts about Queen Elizabeth and her outfit-color faux pas. For her 90th birthday, she chose a solid neon green suit, and it didn't take long for Photoshop fanatics to suggest alternative designs for the Queen's green-screen threads.

Read more
Content-Aware Automatic Cropping for Video

Delivering videos according to the aspect ratios defined by social media for multiple devices and platforms is a growing challenge. The continuously rising volume of vertical videos and the corresponding increase in video traffic on mobile devices (now up to 57% of online videos watched) have only exacerbated the situation, with no letup in sight.

Read more
Use a custom function in the image delivery pipeline

Cloudinary offers a wide array of image manipulations and effects to apply to images as part of our image-processing pipeline, helping to ensure that your images fit the graphic design of your website or mobile application. Cloudinary is an open platform, and you can use our APIs, Widgets and UI to build the media management flow that matches your needs.

Read more
OpenText™ TeamSite – Cloudinary Plugin

Tired of depending on other teams or software to create assets in multiple sizes for your responsive web site?

Does importing asset files into TeamSite slow down your web content publishing?

Klish Group is pleased to introduce the OpenText TM TeamSite – Cloudinary connector. Customers of the OpenText TM TeamSite web content management platform can now browse and select images in the same way they always have. Authors can just browse and select the image they want to use and Cloudinary will automatically deliver it in the optimal format and quality to the customer requesting it.

Read more