{"id":25855,"date":"2022-12-05T08:00:00","date_gmt":"2022-12-05T15:00:00","guid":{"rendered":"https:\/\/cloudinary.com\/blog\/?p=25855"},"modified":"2023-07-25T11:31:55","modified_gmt":"2023-07-25T18:31:55","slug":"8-image-transformations-developers-can-make-on-the-fly-learning-by-example","status":"publish","type":"post","link":"https:\/\/cloudinary.com\/blog\/8-image-transformations-developers-can-make-on-the-fly-learning-by-example","title":{"rendered":"8 Image Transformations Developers Can Make On The Fly &#8211; Learning By Example"},"content":{"rendered":"<div class=\"wp-block-cloudinary-markdown \"><p>Non-developers like to use services such as Canva, Crello, Photopea to edit images and templates. With a few clicks, they can get a decent design done.<\/p>\n<p>As a developer, have you ever wondered how you can build such services or embed those Instagram-like features in your app?What if you could build these features without starting from scratch? Look no further!<\/p>\n<p>In this article, I\u2019ll show you how to transform images quickly with 8 solid examples.<\/p>\n<\/div>\n\n<div class='c-callout  c-callout--note'><strong class='c-callout__title'>Your images have to be stored on Cloudinary to have these transformations work on them seamlessly<\/strong> <p><a href=\"https:\/\/cloudinary.com\/users\/register\/free\">Sign up for free<\/a>, upload and store your images.<\/p>\n<\/div>\n\n<div class=\"wp-block-cloudinary-markdown \"><h2>1. Water Overlay<\/h2>\n<p>We will generate the image below from another image and some transformation techniques.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/f_png\/w_800\/l_text:Arial_250_bold:Water,fl_cutter,e_shadow,f_auto,q_auto\/_mmm\/freshcoloredwater.jpg\" alt=\"Water Image\" loading=\"lazy\" class=\"c-transformed-asset\"  width=\"699\" height=\"192\"\/><\/p>\n<p>Follow along the various steps:<\/p>\n<ul>\n<li>Ensure you have the image below in your Cloudinary account. Now, you\u2019ll have a URL like so:<\/li>\n<\/ul>\n<p><a href=\"https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/_mmm\/freshcoloredwater.jpg\">https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/_mmm\/freshcoloredwater.jpg<\/a><\/p>\n<ul>\n<li>Add f_png to the URL to convert and deliver the image in a png format:<\/li>\n<\/ul>\n<p><a href=\"https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/f_png\/_mmm\/freshcoloredwater.jpg\">https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/f_png\/_mmm\/freshcoloredwater.jpg<\/a><\/p>\n<ul>\n<li>Add a width, w_800 to the URL like so:<\/li>\n<\/ul>\n<p><a href=\"https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/f_png\/w_800\/_mmm\/freshcoloredwater.jpg\">https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/f_png\/w_800\/_mmm\/freshcoloredwater.jpg<\/a><\/p>\n<ul>\n<li>Add an overlay text with a value, font type, and size:<\/li>\n<\/ul>\n<p>l_text:Arial_250_bold:Water<\/p>\n<p><a href=\"https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/f_png\/w_800\/l_text:Arial_250_bold:Water\/_mmm\/freshcoloredwater.jpg\">https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/f_png\/w_800\/l_text:Arial_250_bold:Water\/_mmm\/freshcoloredwater.jpg<\/a><\/p>\n<ul>\n<li>Now, add a cutter flag to trim the image of a water drop based on the shape of the text like so:<\/li>\n<\/ul>\n<p><em>fl_cutter<\/em><\/p>\n<p><a href=\"https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/f_png\/w_800\/l_text:Arial_250_bold:Water,fl_cutter\/_mmm\/freshcoloredwater.jpg\">https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/f_png\/w_800\/l_text:Arial_250_bold:Water,fl_cutter\/_mmm\/freshcoloredwater.jpg<\/a><\/p>\n<ul>\n<li>Finally, let\u2019s add a shadow to the image<\/li>\n<\/ul>\n<p><em>e_shadow<\/em><\/p>\n<p><a href=\"https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/f_png\/w_800\/l_text:Arial_250_bold:Water,fl_cutter,e_shadow\/_mmm\/freshcoloredwater.jpg\">https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/f_png\/w_800\/l_text:Arial_250_bold:Water,fl_cutter,e_shadow\/_mmm\/freshcoloredwater.jpg<\/a><\/p>\n<h2>2. Rough Torn Image<\/h2>\n<p>We will generate the image below from another image and some transformation techniques.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/w_1000\/l__mmm:roughtornmaterial,w_1.0,h_1.0,fl_relative,fl_cutter\/l__mmm:roughtornmaterial,w_1.0,h_1.0,fl_relative,o_40,f_auto,q_auto\/_mmm\/edencartoon.jpg\" alt=\"Rough Torn Image\" loading=\"lazy\" class=\"c-transformed-asset\"  width=\"1000\" height=\"1333\"\/><\/p>\n<ul>\n<li>Ensure you have the image below in your Cloudinary account. Now, you\u2019ll have a URL like so:<\/li>\n<\/ul>\n<p><a href=\"https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/_mmm\/edencartoon.jpg\">https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/_mmm\/edencartoon.jpg<\/a><\/p>\n<ul>\n<li>Add a width, w_1000 to the URL like so:<\/li>\n<\/ul>\n<p><a href=\"https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/w_1000\/_mmm\/edencartoon.jpg\">https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/w_1000\/_mmm\/edencartoon.jpg<\/a><\/p>\n<ul>\n<li>Upload the rough image material below to your Cloudinary account<\/li>\n<\/ul>\n<p><a href=\"https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/v1583824361\/_mmm\/roughtornmaterial.png\">https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/v1583824361\/_mmm\/roughtornmaterial.png<\/a><\/p>\n<ul>\n<li>Now, go ahead and overlay the <strong>roughtornmaterial<\/strong> image over the first image like so:<\/li>\n<\/ul>\n<p><a href=\"https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/w_1000\/l__mmm:roughtornmaterial\/_mmm\/edencartoon.jpg\">https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/w_1000\/l__mmm:roughtornmaterial\/_mmm\/edencartoon.jpg<\/a><\/p>\n<p>We are gradually getting to what it should look like!<\/p>\n<ul>\n<li>Next, add a width, w_1.0, height, h_1.0, and these two flags, fl_relative, fl_cutter like so:<\/li>\n<\/ul>\n<p><a href=\"https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/w_1000\/l__mmm:roughtornmaterial,w_1.0,h_1.0,fl_relative,fl_cutter\/_mmm\/edencartoon.jpg\">https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/w_1000\/l__mmm:roughtornmaterial,w_1.0,h_1.0,fl_relative,fl_cutter\/_mmm\/edencartoon.jpg<\/a>.<\/p>\n<ul>\n<li>Finally, repeat the overlay by adding:<\/li>\n<\/ul>\n<p>l__mmm:roughtornmaterial,w_1.0,h_1.0,fl_relative,o_40<\/p>\n<p>Our output will be: <a href=\"https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/w_1000\/l__mmm:roughtornmaterial,w_1.0,h_1.0,fl_relative,fl_cutter\/l__mmm:roughtornmaterial,w_1.0,h_1.0,fl_relative,o_40\/_mmm\/edencartoon.jpg\">https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/w_1000\/l__mmm:roughtornmaterial,w_1.0,h_1.0,fl_relative,fl_cutter\/l__mmm:roughtornmaterial,w_1.0,h_1.0,fl_relative,o_40\/_mmm\/edencartoon.jpg<\/a><\/p>\n<h2>3. Advanced Facial Attributes Detection<\/h2>\n<p>Here, we\u2019ll turn an image of folks with no glasses to one with them using a pair of glasses!<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/fl_region_relative,g_adv_eyes,l__mmm:glasses,w_1.5,f_auto,q_auto\/_mmm\/finepeople.jpg\" alt=\"Facial Attributes Detection\" loading=\"lazy\" class=\"c-transformed-asset\"  width=\"1122\" height=\"1118\"\/><\/p>\n<ul>\n<li>Ensure you have the image below in your account. Now, you\u2019ll have a URL like so:<\/li>\n<\/ul>\n<p><a href=\"https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/_mmm\/finepeople.jpg\">https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/_mmm\/finepeople.jpg<\/a><\/p>\n<ul>\n<li>Upload the glasses below to your account<\/li>\n<\/ul>\n<p><a href=\"https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/_mmm\/glasses.jpg\">https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/_mmm\/glasses.jpg<\/a><\/p>\n<ul>\n<li>Next, overlay the glasses on the first image and set a width for it by adding: <strong>l__mmm:glasses,w_1.5<\/strong>\n<\/li>\n<\/ul>\n<p><a href=\"https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/l__mmm:glasses,w_1.5\/_mmm\/finepeople.jpg\">https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/l__mmm:glasses,w_1.5\/_mmm\/finepeople.jpg<\/a><\/p>\n<ul>\n<li>Position the glasses on the pair of eyes in the image. We can do that by using the facial detection attribute (for a pair of eyes), <strong>g_adv_eyes<\/strong>. Add <strong>fl_region_relative,g_adv_eyes,<\/strong> to the URl like so:<\/li>\n<\/ul>\n<p><a href=\"https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/fl_region_relative,g_adv_eyes,l__mmm:glasses,w_1.5\/_mmm\/finepeople.jpg\">https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/fl_region_relative,g_adv_eyes,l__mmm:glasses,w_1.5\/_mmm\/finepeople.jpg<\/a><\/p>\n<p>fl_region_relative is a flag to place each overlay relative to the size of each detected region.<\/p>\n<h2>4. Pixelated Face in Image(s)<\/h2>\n<p>You might have seen some images where the face is blurred or pixelated. We\u2019ll make that happen now. The finished pixelated image is shown below:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/e_pixelate_faces\/e_grayscale\/e_tint:50:red,f_auto,q_auto\/_mmm\/puppyface.jpg\" alt=\"Pixelated Face\" loading=\"lazy\" class=\"c-transformed-asset\"  width=\"3024\" height=\"4032\"\/><\/p>\n<ul>\n<li>Upload the image below, or another in your account. Now, you\u2019ll have a URL like so:<\/li>\n<\/ul>\n<p><a href=\"https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/_mmm\/puppyface.jpg\">https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/_mmm\/puppyface.jpg<\/a><\/p>\n<ul>\n<li>\n<p>To pixelate the face, use the <strong>e_pixelate_faces<\/strong> attribute like so:\n<a href=\"https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/e_pixelate_faces\/_mmm\/puppyface.jpg\">https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/e_pixelate_faces\/_mmm\/puppyface.jpg<\/a><\/p>\n<\/li>\n<li>\n<p>Yaay! We have a pixelated face. Finally, let\u2019s transform the image to the output by adding the following, <strong>e_grayscale\/e_tint:50:red<\/strong> like so:<\/p>\n<\/li>\n<\/ul>\n<p><a href=\"https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/e_pixelate_faces\/e_grayscale\/e_tint:50:red\/_mmm\/puppyface.jpg\">https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/e_pixelate_faces\/e_grayscale\/e_tint:50:red\/_mmm\/puppyface.jpg<\/a><\/p>\n<p><strong>e_grayscale<\/strong>: Converts an image to grayscale (multiple shades of gray).\n<strong>e_tint<\/strong>: Blends an image with one or more tint colors at a specified intensity. Here, we blended it with red.<\/p>\n<h2>5. Zoom Background Change<\/h2>\n<p><img decoding=\"async\" src=\"https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/w_800,f_auto,q_auto\/u__mmm:desert,h_1000\/_mmm\/human.png\" alt=\"Zoom Background\" loading=\"lazy\" class=\"c-transformed-asset\"  width=\"1490\" height=\"1000\"\/><\/p>\n<ul>\n<li>Upload the image below, or another in your account. Now, you\u2019ll have a URL like so:<\/li>\n<\/ul>\n<p><a href=\"https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/_mmm\/human.png\">https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/_mmm\/human.png<\/a><\/p>\n<ul>\n<li>Upload the desert image below as well.<\/li>\n<\/ul>\n<p><a href=\"https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/_mmm\/desert.jpg\">https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/_mmm\/desert.jpg<\/a><\/p>\n<ul>\n<li>We used overlays a lot in the previous transformations. Now, we\u2019ll use an underlay, <strong>u__<\/strong>. The desert will underlay the human like so: <strong>u__mmm:desert,h_1000<\/strong>\n<\/li>\n<\/ul>\n<p>Note: Added a height of 1000 to make it fit.<\/p>\n<p><a href=\"https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/u__mmm:desert,h_1000\/_mmm\/human.png\">https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/u__mmm:desert,h_1000\/_mmm\/human.png<\/a><\/p>\n<p><a href=\"https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/u__mmm:desert,h_1000\/_mmm\/human.png\">https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/u__mmm:desert,h_1000\/_mmm\/human.png<\/a><\/p>\n<ul>\n<li>Increase the width as well and optimize the image by adding <strong>w_800,f_auto,q_auto<\/strong> like so:<\/li>\n<\/ul>\n<p><a href=\"https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/w_800,f_auto,q_auto\/u__mmm:desert,h_1000\/_mmm\/human.png\">https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/w_800,f_auto,q_auto\/u__mmm:desert,h_1000\/_mmm\/human.png<\/a><\/p>\n<h2>6. Discbox Poster<\/h2>\n<p><img decoding=\"async\" src=\"https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/w_400,c_scale\/l__mmm:poster,w_300,h_422,e_distort:55:55:195:20:195:350:55:320,f_auto,q_auto\/_mmm\/discbox.jpg\" alt=\"Discbox Poster\" loading=\"lazy\" class=\"c-transformed-asset\"  width=\"400\" height=\"422\"\/><\/p>\n<p>We\u2019ll transform two images to get the poster above.<\/p>\n<ul>\n<li>Upload the image below, or another in your account. Now, you\u2019ll have a URL like so:<\/li>\n<\/ul>\n<p><a href=\"https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/_mmm\/poster.jpg\">https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/_mmm\/poster.jpg<\/a><\/p>\n<ul>\n<li>Upload another image below, or another in your account. Now, you\u2019ll have another URL like so:<\/li>\n<\/ul>\n<p><a href=\"https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/_mmm\/discbox.jpg\">https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/_mmm\/discbox.jpg<\/a><\/p>\n<p>Now, from what we have learned about transformations, I can safely assume you\u2019re thinking that we need to overlay the first poster image on the second. And yes, you are correct!<\/p>\n<ul>\n<li>Overlay the poster image on the discbox image by adding, <strong>l_mmm:poster<\/strong> like so:<\/li>\n<\/ul>\n<p><a href=\"https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/l__mmm:poster\/_mmm\/discbox.jpg\">https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/l__mmm:poster\/_mmm\/discbox.jpg<\/a><\/p>\n<p>Okay, but it does not seem interesting yet!<\/p>\n<ul>\n<li>Give the poster a width and height, and also adjust the width of the discbox with <strong>w_400,c_scale\/l__mmm:poster,w_300,h_422<\/strong> like so:<\/li>\n<\/ul>\n<p><a href=\"https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/w_400,c_scale\/l__mmm:poster,w_300,h_422\/_mmm\/discbox.jpg\">https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/w_400,c_scale\/l__mmm:poster,w_300,h_422\/_mmm\/discbox.jpg<\/a><\/p>\n<p><strong>Note:<\/strong> c_scale resizes the image exactly to the specified width and height.<\/p>\n<p>Well, we have not gotten our desired output yet. But, we are close. Don\u2019t fret!<\/p>\n<ul>\n<li>Now, we\u2019ll use an interesting attribute. It\u2019s called the distort attribute, <strong><a href=\"https:\/\/cloudinary.com\/documentation\/transformation_reference#e_distort\">e_distort<\/a><\/strong>. It distorts an image, or text overlay, to a new shape by adjusting its corners to achieve perception warping.<\/li>\n<\/ul>\n<p>Here, add the distort attribute, <strong>e_distort:55:55:195:20:195:350:55:320<\/strong> like so:<\/p>\n<p><a href=\"https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/w_400,c_scale\/l__mmm:poster,w_300,h_422,e_distort:55:55:195:20:195:350:55:320\/_mmm\/discbox.jpg\">https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/w_400,c_scale\/l__mmm:poster,w_300,h_422,e_distort:55:55:195:20:195:350:55:320\/_mmm\/discbox.jpg<\/a>.<\/p>\n<p>We have a fully transformed image now!<\/p>\n<h2>7. Gradient Faded Image<\/h2>\n<p>We\u2019ll transform an image to look like so:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/f_auto,q_auto,e_gradient_fade,x_0.9\/u__mmm:kqa488dfzvsetpvglq6n,e_grayscale\/_mmm\/kqa488dfzvsetpvglq6n.jpg\" alt=\"Gradient Faded Image\" loading=\"lazy\" class=\"c-transformed-asset\"  width=\"2082\" height=\"2975\"\/><\/p>\n<ul>\n<li>Upload the image below, or another in your account. Now, you\u2019ll have a URL like so:<\/li>\n<\/ul>\n<p><a href=\"https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/_mmm\/kqa488dfzvsetpvglq6n.jpg\">https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/_mmm\/kqa488dfzvsetpvglq6n.jpg<\/a><\/p>\n<ul>\n<li>Add a gradient fade to the image with <strong>e_gradient_fade<\/strong> like so:<\/li>\n<\/ul>\n<p><strong>Note:<\/strong> e_gradient_fade applies a gradient fade effect from the edge of an image. Use <em>x<\/em> or <em>y<\/em> to indicate from which edge to fade and how much of the image should be faded.<\/p>\n<p><a href=\"https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/e_gradient_fade,x_0.9\/_mmm\/kqa488dfzvsetpvglq6n.jpg\">https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/e_gradient_fade,x_0.9\/_mmm\/kqa488dfzvsetpvglq6n.jpg<\/a><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/e_gradient_fade,x_0.9,f_auto,q_auto\/_mmm\/kqa488dfzvsetpvglq6n.jpg\" alt=\"Gradient Fade image\" loading=\"lazy\" class=\"c-transformed-asset\"  width=\"2082\" height=\"2975\"\/><\/p>\n<ul>\n<li>Let\u2019s do something interesting by underlying a grayscale of the same image like so: <strong>u__mmm:kqa488dfzvsetpvglq6n,e_grayscale<\/strong>\n<\/li>\n<\/ul>\n<p>Result:\n<a href=\"https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/e_gradient_fade,x_0.9\/u__mmm:kqa488dfzvsetpvglq6n,e_grayscale\/_mmm\/kqa488dfzvsetpvglq6n.jpg\">https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/e_gradient_fade,x_0.9\/u__mmm:kqa488dfzvsetpvglq6n,e_grayscale\/_mmm\/kqa488dfzvsetpvglq6n.jpg<\/a><\/p>\n<h2>8. Rainbow Outline Transformation<\/h2>\n<p>We\u2019ll make a rainbow outline from a leave asset. Transformed image shown below:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/e_outline,co_red\/e_outline,co_rgb:FF7F00\/e_outline,co_yellow\/e_outline,co_rgb:00FF00\/e_outline,co_blue\/e_outline,co_rgb:4B0082\/e_outline,co_rgb:9400D3\/e_outline,co_red\/e_outline,co_rgb:FF7F00\/e_outline,co_yellow\/e_outline,co_rgb:00FF00\/e_outline,co_blue\/e_outline,co_rgb:4B0082\/e_outline,co_rgb:9400D3,f_auto,q_auto\/_mmm\/bottomleaves.png\" alt=\"Rainbow leaves\" loading=\"lazy\" class=\"c-transformed-asset\"  width=\"307\" height=\"443\"\/><\/p>\n<ul>\n<li>Upload the image below, or another in your account. Now, you\u2019ll have a URL like so:<\/li>\n<\/ul>\n<p><a href=\"https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/_mmm\/bottomleaves.png\">https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/_mmm\/bottomleaves.png<\/a><\/p>\n<ul>\n<li>We\u2019ll use a new attribute, <strong>e_outline<\/strong>. It adds an outline effect to an image. Specify the color of the outline using the <em>co<\/em> (color) qualifier. If no color is specified, the default outline is black.<\/li>\n<\/ul>\n<p>Add the first outline, <strong>e_outline,co_red<\/strong>, like so:<\/p>\n<p><a href=\"https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/e_outline,co_red\/_mmm\/bottomleaves.png\">https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/e_outline,co_red\/_mmm\/bottomleaves.png<\/a><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/e_outline,co_red,f_auto,q_auto\/_mmm\/bottomleaves.png\" alt=\"First outline\" loading=\"lazy\" class=\"c-transformed-asset\"  width=\"177\" height=\"313\"\/><\/p>\n<p>Add another outline, <strong>e_outline,co_rgb:FF7F00<\/strong>, like so:<\/p>\n<p><a href=\"https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/e_outline,co_red\/e_outline,co_rgb:FF7F00\/_mmm\/bottomleaves.png\">https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/e_outline,co_red\/e_outline,co_rgb:FF7F00\/_mmm\/bottomleaves.png<\/a><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/e_outline,co_red\/e_outline,co_rgb:FF7F00,f_auto,q_auto\/_mmm\/bottomleaves.png\" alt=\"Second outline\" loading=\"lazy\" class=\"c-transformed-asset\"  width=\"187\" height=\"323\"\/><\/p>\n<p>We can add as many outlines as possible. The final outline result is <strong>e_outline,co_red\/e_outline,co_rgb:FF7F00\/e_outline,co_yellow\/e_outline,co_rgb:00FF00\/e_outline,co_blue\/e_outline,co_rgb:4B0082\/e_outline,co_rgb:9400D3\/e_outline,co_red\/e_outline,co_rgb:FF7F00\/e_outline,co_yellow\/e_outline,co_rgb:00FF00\/e_outline,co_blue\/e_outline,co_rgb:4B0082\/e_outline,co_rgb:9400D3<\/strong>.<\/p>\n<p><a href=\"https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/e_outline,co_red\/e_outline,co_rgb:FF7F00\/e_outline,co_yellow\/e_outline,co_rgb:00FF00\/e_outline,co_blue\/e_outline,co_rgb:4B0082\/e_outline,co_rgb:9400D3\/e_outline,co_red\/e_outline,co_rgb:FF7F00\/e_outline,co_yellow\/e_outline,co_rgb:00FF00\/e_outline,co_blue\/e_outline,co_rgb:4B0082\/e_outline,co_rgb:9400D3\/_mmm\/bottomleaves.png\">https:\/\/res.cloudinary.com\/cdemo\/image\/upload\/e_outline,co_red\/e_outline,co_rgb:FF7F00\/e_outline,co_yellow\/e_outline,co_rgb:00FF00\/e_outline,co_blue\/e_outline,co_rgb:4B0082\/e_outline,co_rgb:9400D3\/e_outline,co_red\/e_outline,co_rgb:FF7F00\/e_outline,co_yellow\/e_outline,co_rgb:00FF00\/e_outline,co_blue\/e_outline,co_rgb:4B0082\/e_outline,co_rgb:9400D3\/_mmm\/bottomleaves.png<\/a><\/p>\n<p>There are so many other transformations you can use with <a href=\"https:\/\/cloudinary.com\/documentation\/image_transformations\">image assets<\/a>.<\/p>\n<h2>SDK Integrations<\/h2>\n<p>There are <a href=\"https:\/\/cloudinary.com\/documentation\/cloudinary_sdks\">different SDKs<\/a> for integrating Cloudinary and chaining transformations on your assets in your codebase. It\u2019s instant, easy to integrate and ships with amazing fluent interfaces.<\/p>\n<h2>Conclusion<\/h2>\n<p>Cloudinary provides a lot of transformation effects and more for media files.<\/p>\n<p>With Cloudinary, you can automate your entire image-management lifecycle, from <a href=\"https:\/\/cloudinary.com\/documentation\/image_transformations\">upload and transformation<\/a> to <a href=\"https:\/\/cloudinary.com\/documentation\/image_delivery_options\">optimization and delivery<\/a>. The platform also features numerous capabilities for editing and managing videos.<\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"","protected":false},"author":54,"featured_media":25927,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_cloudinary_featured_overwrite":false,"footnotes":""},"categories":[1],"tags":[89,165],"class_list":["post-25855","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-digital-asset-management","tag-image-transformation"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v25.6 (Yoast SEO v26.9) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>8 Image Transformations Developers Can Make On The Fly<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/cloudinary.com\/blog\/8-image-transformations-developers-can-make-on-the-fly-learning-by-example\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"8 Image Transformations Developers Can Make On The Fly - Learning By Example\" \/>\n<meta property=\"og:url\" content=\"https:\/\/cloudinary.com\/blog\/8-image-transformations-developers-can-make-on-the-fly-learning-by-example\" \/>\n<meta property=\"og:site_name\" content=\"Cloudinary Blog\" \/>\n<meta property=\"article:published_time\" content=\"2022-12-05T15:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-07-25T18:31:55+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/v1670015779\/Cld_Blog_FeatImg_Dec2k22_8-Img-Transforms-on-the-fly\/Cld_Blog_FeatImg_Dec2k22_8-Img-Transforms-on-the-fly-png?_i=AA\" \/>\n\t<meta property=\"og:image:width\" content=\"2000\" \/>\n\t<meta property=\"og:image:height\" content=\"1100\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"NewsArticle\",\"@id\":\"https:\/\/cloudinary.com\/blog\/8-image-transformations-developers-can-make-on-the-fly-learning-by-example#article\",\"isPartOf\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/8-image-transformations-developers-can-make-on-the-fly-learning-by-example\"},\"author\":{\"name\":\"\",\"@id\":\"\"},\"headline\":\"8 Image Transformations Developers Can Make On The Fly &#8211; Learning By Example\",\"datePublished\":\"2022-12-05T15:00:00+00:00\",\"dateModified\":\"2023-07-25T18:31:55+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/8-image-transformations-developers-can-make-on-the-fly-learning-by-example\"},\"wordCount\":12,\"publisher\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/8-image-transformations-developers-can-make-on-the-fly-learning-by-example#primaryimage\"},\"thumbnailUrl\":\"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1670015779\/Cld_Blog_FeatImg_Dec2k22_8-Img-Transforms-on-the-fly\/Cld_Blog_FeatImg_Dec2k22_8-Img-Transforms-on-the-fly.png?_i=AA\",\"keywords\":[\"Digital Asset Management\",\"Image Transformation\"],\"inLanguage\":\"en-US\",\"copyrightYear\":\"2022\",\"copyrightHolder\":{\"@id\":\"https:\/\/cloudinary.com\/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/cloudinary.com\/blog\/8-image-transformations-developers-can-make-on-the-fly-learning-by-example\",\"url\":\"https:\/\/cloudinary.com\/blog\/8-image-transformations-developers-can-make-on-the-fly-learning-by-example\",\"name\":\"8 Image Transformations Developers Can Make On The Fly\",\"isPartOf\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/8-image-transformations-developers-can-make-on-the-fly-learning-by-example#primaryimage\"},\"image\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/8-image-transformations-developers-can-make-on-the-fly-learning-by-example#primaryimage\"},\"thumbnailUrl\":\"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1670015779\/Cld_Blog_FeatImg_Dec2k22_8-Img-Transforms-on-the-fly\/Cld_Blog_FeatImg_Dec2k22_8-Img-Transforms-on-the-fly.png?_i=AA\",\"datePublished\":\"2022-12-05T15:00:00+00:00\",\"dateModified\":\"2023-07-25T18:31:55+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/8-image-transformations-developers-can-make-on-the-fly-learning-by-example#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/cloudinary.com\/blog\/8-image-transformations-developers-can-make-on-the-fly-learning-by-example\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cloudinary.com\/blog\/8-image-transformations-developers-can-make-on-the-fly-learning-by-example#primaryimage\",\"url\":\"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1670015779\/Cld_Blog_FeatImg_Dec2k22_8-Img-Transforms-on-the-fly\/Cld_Blog_FeatImg_Dec2k22_8-Img-Transforms-on-the-fly.png?_i=AA\",\"contentUrl\":\"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1670015779\/Cld_Blog_FeatImg_Dec2k22_8-Img-Transforms-on-the-fly\/Cld_Blog_FeatImg_Dec2k22_8-Img-Transforms-on-the-fly.png?_i=AA\",\"width\":2000,\"height\":1100},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/cloudinary.com\/blog\/8-image-transformations-developers-can-make-on-the-fly-learning-by-example#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/cloudinary.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"8 Image Transformations Developers Can Make On The Fly &#8211; Learning By Example\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/cloudinary.com\/blog\/#website\",\"url\":\"https:\/\/cloudinary.com\/blog\/\",\"name\":\"Cloudinary Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/cloudinary.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/cloudinary.com\/blog\/#organization\",\"name\":\"Cloudinary Blog\",\"url\":\"https:\/\/cloudinary.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cloudinary.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1649718331\/Web_Assets\/blog\/cloudinary_logo_for_white_bg_1937437aa7_19374666c7_193742f877\/cloudinary_logo_for_white_bg_1937437aa7_19374666c7_193742f877.png?_i=AA\",\"contentUrl\":\"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1649718331\/Web_Assets\/blog\/cloudinary_logo_for_white_bg_1937437aa7_19374666c7_193742f877\/cloudinary_logo_for_white_bg_1937437aa7_19374666c7_193742f877.png?_i=AA\",\"width\":312,\"height\":60,\"caption\":\"Cloudinary Blog\"},\"image\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"8 Image Transformations Developers Can Make On The Fly","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/cloudinary.com\/blog\/8-image-transformations-developers-can-make-on-the-fly-learning-by-example","og_locale":"en_US","og_type":"article","og_title":"8 Image Transformations Developers Can Make On The Fly - Learning By Example","og_url":"https:\/\/cloudinary.com\/blog\/8-image-transformations-developers-can-make-on-the-fly-learning-by-example","og_site_name":"Cloudinary Blog","article_published_time":"2022-12-05T15:00:00+00:00","article_modified_time":"2023-07-25T18:31:55+00:00","og_image":[{"width":2000,"height":1100,"url":"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/v1670015779\/Cld_Blog_FeatImg_Dec2k22_8-Img-Transforms-on-the-fly\/Cld_Blog_FeatImg_Dec2k22_8-Img-Transforms-on-the-fly-png?_i=AA","type":"image\/png"}],"twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"NewsArticle","@id":"https:\/\/cloudinary.com\/blog\/8-image-transformations-developers-can-make-on-the-fly-learning-by-example#article","isPartOf":{"@id":"https:\/\/cloudinary.com\/blog\/8-image-transformations-developers-can-make-on-the-fly-learning-by-example"},"author":{"name":"","@id":""},"headline":"8 Image Transformations Developers Can Make On The Fly &#8211; Learning By Example","datePublished":"2022-12-05T15:00:00+00:00","dateModified":"2023-07-25T18:31:55+00:00","mainEntityOfPage":{"@id":"https:\/\/cloudinary.com\/blog\/8-image-transformations-developers-can-make-on-the-fly-learning-by-example"},"wordCount":12,"publisher":{"@id":"https:\/\/cloudinary.com\/blog\/#organization"},"image":{"@id":"https:\/\/cloudinary.com\/blog\/8-image-transformations-developers-can-make-on-the-fly-learning-by-example#primaryimage"},"thumbnailUrl":"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1670015779\/Cld_Blog_FeatImg_Dec2k22_8-Img-Transforms-on-the-fly\/Cld_Blog_FeatImg_Dec2k22_8-Img-Transforms-on-the-fly.png?_i=AA","keywords":["Digital Asset Management","Image Transformation"],"inLanguage":"en-US","copyrightYear":"2022","copyrightHolder":{"@id":"https:\/\/cloudinary.com\/#organization"}},{"@type":"WebPage","@id":"https:\/\/cloudinary.com\/blog\/8-image-transformations-developers-can-make-on-the-fly-learning-by-example","url":"https:\/\/cloudinary.com\/blog\/8-image-transformations-developers-can-make-on-the-fly-learning-by-example","name":"8 Image Transformations Developers Can Make On The Fly","isPartOf":{"@id":"https:\/\/cloudinary.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/cloudinary.com\/blog\/8-image-transformations-developers-can-make-on-the-fly-learning-by-example#primaryimage"},"image":{"@id":"https:\/\/cloudinary.com\/blog\/8-image-transformations-developers-can-make-on-the-fly-learning-by-example#primaryimage"},"thumbnailUrl":"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1670015779\/Cld_Blog_FeatImg_Dec2k22_8-Img-Transforms-on-the-fly\/Cld_Blog_FeatImg_Dec2k22_8-Img-Transforms-on-the-fly.png?_i=AA","datePublished":"2022-12-05T15:00:00+00:00","dateModified":"2023-07-25T18:31:55+00:00","breadcrumb":{"@id":"https:\/\/cloudinary.com\/blog\/8-image-transformations-developers-can-make-on-the-fly-learning-by-example#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/cloudinary.com\/blog\/8-image-transformations-developers-can-make-on-the-fly-learning-by-example"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cloudinary.com\/blog\/8-image-transformations-developers-can-make-on-the-fly-learning-by-example#primaryimage","url":"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1670015779\/Cld_Blog_FeatImg_Dec2k22_8-Img-Transforms-on-the-fly\/Cld_Blog_FeatImg_Dec2k22_8-Img-Transforms-on-the-fly.png?_i=AA","contentUrl":"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1670015779\/Cld_Blog_FeatImg_Dec2k22_8-Img-Transforms-on-the-fly\/Cld_Blog_FeatImg_Dec2k22_8-Img-Transforms-on-the-fly.png?_i=AA","width":2000,"height":1100},{"@type":"BreadcrumbList","@id":"https:\/\/cloudinary.com\/blog\/8-image-transformations-developers-can-make-on-the-fly-learning-by-example#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/cloudinary.com\/blog\/"},{"@type":"ListItem","position":2,"name":"8 Image Transformations Developers Can Make On The Fly &#8211; Learning By Example"}]},{"@type":"WebSite","@id":"https:\/\/cloudinary.com\/blog\/#website","url":"https:\/\/cloudinary.com\/blog\/","name":"Cloudinary Blog","description":"","publisher":{"@id":"https:\/\/cloudinary.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/cloudinary.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/cloudinary.com\/blog\/#organization","name":"Cloudinary Blog","url":"https:\/\/cloudinary.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cloudinary.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1649718331\/Web_Assets\/blog\/cloudinary_logo_for_white_bg_1937437aa7_19374666c7_193742f877\/cloudinary_logo_for_white_bg_1937437aa7_19374666c7_193742f877.png?_i=AA","contentUrl":"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1649718331\/Web_Assets\/blog\/cloudinary_logo_for_white_bg_1937437aa7_19374666c7_193742f877\/cloudinary_logo_for_white_bg_1937437aa7_19374666c7_193742f877.png?_i=AA","width":312,"height":60,"caption":"Cloudinary Blog"},"image":{"@id":"https:\/\/cloudinary.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":""}]}},"jetpack_featured_media_url":"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1670015779\/Cld_Blog_FeatImg_Dec2k22_8-Img-Transforms-on-the-fly\/Cld_Blog_FeatImg_Dec2k22_8-Img-Transforms-on-the-fly.png?_i=AA","_links":{"self":[{"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/posts\/25855","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/users\/54"}],"replies":[{"embeddable":true,"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/comments?post=25855"}],"version-history":[{"count":11,"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/posts\/25855\/revisions"}],"predecessor-version":[{"id":30541,"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/posts\/25855\/revisions\/30541"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/media\/25927"}],"wp:attachment":[{"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/media?parent=25855"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/categories?post=25855"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/tags?post=25855"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}