{"id":37723,"date":"2025-06-04T07:00:00","date_gmt":"2025-06-04T14:00:00","guid":{"rendered":"https:\/\/cloudinary.com\/blog\/?p=37723"},"modified":"2025-11-01T06:12:03","modified_gmt":"2025-11-01T13:12:03","slug":"test-aspect-ratios-video-campaigns","status":"publish","type":"post","link":"https:\/\/cloudinary.com\/blog\/test-aspect-ratios-video-campaigns","title":{"rendered":"Using Cloudinary to Test Aspect Ratios for Video Campaigns"},"content":{"rendered":"\n<p>Video dominates social media, but a one-size-fits-all approach doesn\u2019t work when it comes to aspect ratios. A video that looks great on YouTube would be cropped at an awkward angle on TikTok or Instagram. For this reason, you need to adjust videos to fit each platform\u2019s unique requirements.<\/p>\n\n\n\n<p>This post explains how to adjust video aspect ratios in Cloudinary Studio, apply smart cropping, and use dynamic URLs to transform videos on the fly. It also covers how to test different aspect ratios through A\/B testing to see which performs best for your campaigns.&nbsp;<\/p>\n\n\n\n<p>Let\u2019s start by understanding what aspect ratios are and how they impact engagement.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Aspect Ratios and Video Engagement<\/h2>\n\n\n\n<p>Aspect ratio refers to the <strong>width and height <\/strong>of a video, typically expressed as <strong>W:H<\/strong> (e.g., <strong>16:9, 9:16, 1:1<\/strong>). Each social media platform has its preferred formats, and optimizing videos to each platform means they\u2019re more likely to be shared, liked, and commented on.<\/p>\n\n\n\n<p>But what do these aspect ratios look like in practice? Here\u2019s a quick comparison:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/cloudinary-marketing-res.cloudinary.com\/image\/upload\/v1748896169\/blog-Using_Cloudinary_to_Test_Aspect_Ratios_for_Video_Campaigns-1.png\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Comparison of different video aspect ratios on social media platforms<\/figcaption><\/figure>\n\n\n\n<p>Choosing the proper aspect ratio isn\u2019t just about making your video fit. It directly impacts how viewers engage with your content.<\/p>\n\n\n\n<p>The <a target=\"_blank\" href=\"https:\/\/www.goldenstepsaba.com\/resources\/average-attention-span\" rel=\"noreferrer noopener\">average attention span of human is 8.25 seconds<\/a> (down from 12 seconds in the last two decades). It\u2019s even shorter when we\u2019re using mobile devices. So, while someone is scrolling through their feed of endless video content, your video has only seconds to catch their eye and hold it. With a well-optimized aspect ratio, your content is displayed as intended, without awkward cropping or black bars.&nbsp;<\/p>\n\n\n\n<p>Aspect ratio also impacts how social media algorithms rank your content, as most platforms prioritize videos that fit their native format to improve user experience.<\/p>\n\n\n\n<p>Beyond algorithm ranking, using the wrong aspect ratio can negatively impact a campaign. For example, a horizontal YouTube video reposted on Instagram Stories will be cropped awkwardly and lose key details. Plus, even beyond visibility, aspect ratios influence your brand perception; a well-framed and properly formatted video appears more polished and professional, solidifying trust with your users.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to Set the Aspect Ratio for Videos in Cloudinary Studio<\/h2>\n\n\n\n<p>Cloudinary eliminates the inconvenience of manually editing videos for multiple platforms with <a target=\"_blank\" href=\"https:\/\/cloudinary.com\/documentation\/video_manipulation_and_delivery\" rel=\"noreferrer noopener\">automated transformations<\/a>, <a target=\"_blank\" href=\"https:\/\/cloudinary.com\/blog\/smart-cropping-just-got-smarter\" rel=\"noreferrer noopener\">smart cropping<\/a>, and dynamic delivery, which allow you to create multiple aspect ratios in minutes instead of hours.<\/p>\n\n\n\n<p>To adapt your campaign videos to social media platforms&#8217; preferred aspect ratios using Cloudinary, <a target=\"_blank\" href=\"https:\/\/cloudinary.com\/users\/register\/free\" rel=\"noreferrer noopener\">sign up<\/a> for a free account if you haven\u2019t already, or log in if you have. Navigate to <strong>Transformation Center<\/strong> in your dashboard and select <strong>New Transformation<\/strong>, as shown below.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/cloudinary-marketing-res.cloudinary.com\/image\/upload\/v1748896170\/blog-Using_Cloudinary_to_Test_Aspect_Ratios_for_Video_Campaigns-2.jpg\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Cloudinary\u2019s Transformation Center<\/figcaption><\/figure>\n\n\n\n<p>From here, switch from the image to the <a href=\"https:\/\/cloudinary.com\/documentation\/video_manipulation_and_delivery\">video transformation<\/a> screen by clicking the video icon shown below.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/cloudinary-marketing-res.cloudinary.com\/image\/upload\/v1748896169\/blog-Using_Cloudinary_to_Test_Aspect_Ratios_for_Video_Campaigns-3.png\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Switching to the video transformation screen in Cloudinary<\/figcaption><\/figure>\n\n\n\n<p>You can now select the <strong>Fill<\/strong> transformation among the available actions on the Video Transformation screen to crop the video to the new aspect ratio while keeping the main subject in focus.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/cloudinary-marketing-res.cloudinary.com\/image\/upload\/v1748896169\/blog-Using_Cloudinary_to_Test_Aspect_Ratios_for_Video_Campaigns-4.jpg\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Selecting the Fill transformation to adjust aspect ratios automatically<\/figcaption><\/figure>\n\n\n\n<p>This will bring up fields where you can set values such as <strong>width<\/strong> and <strong>height<\/strong> or specify the aspect ratio precisely if known. Enter your preferred aspect ratio (for example, <strong>9:16<\/strong> for TikTok videos and Instagram Reels) and set the <strong>Focus on<\/strong> option to <strong>Auto <\/strong>to automatically keep the most important part of the video in view during cropping.&nbsp;<\/p>\n\n\n\n<p>You should instantly see that the selected video has been transformed from its original size to a properly cropped TikTok or Instagram Reel video, as shown below.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/cloudinary-marketing-res.cloudinary.com\/image\/upload\/v1748896169\/blog-Using_Cloudinary_to_Test_Aspect_Ratios_for_Video_Campaigns-5.png\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Setting aspect ratio values and focus options for precise video cropping<\/figcaption><\/figure>\n\n\n\n<p>With the <strong>Focus on<\/strong> option enabled, Cloudinary\u2019s AI-powered smart cropping will automatically detect the focal point of your video and adjust the framing accordingly. However, you can also adjust the value to your preferred direction or even detect and focus on a specified object if necessary.<\/p>\n\n\n\n<p>For example, if you want the video to gravitate toward the top-left (northwest) position, you can set the <strong>Focus on<\/strong> option to <strong>Direction<\/strong> and select a point near the northwest region, as shown below.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/cloudinary-marketing-res.cloudinary.com\/image\/upload\/v1748896170\/blog-Using_Cloudinary_to_Test_Aspect_Ratios_for_Video_Campaigns-6.png\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Adjust focus direction manually for better subject positioning<\/figcaption><\/figure>\n\n\n\n<p>As you apply these values, you&#8217;ll notice that the URLs are generated automatically below the image, so you don\u2019t have to memorize numerous transformation parameters. If you prefer to skip the transformation dashboard altogether, the next section covers how to use dynamic URLs to achieve the same results.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Transformation With Dynamic URLs<\/h2>\n\n\n\n<p>As an alternative to the transformation dashboard, you can use Cloudinary&#8217;s <strong>d<\/strong><strong>ynamic URLs<\/strong> to resize your video&#8217;s aspect ratio. Dynamic URLs are parameter-based URLs that allow you to manipulate (e.g., resize, crop, filter) images and videos in real time without modifying the original file.<\/p>\n\n\n\n<p>For example, after uploading a video to Cloudinary, you can copy its URL by clicking the <strong>&lt;&gt;<\/strong> icon that appears when you hover over the video, as shown below.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/cloudinary-marketing-res.cloudinary.com\/image\/upload\/v1748896174\/blog-Using_Cloudinary_to_Test_Aspect_Ratios_for_Video_Campaigns-7.png\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Copying the video URL from the Cloudinary dashboard for dynamic URL transformations<\/figcaption><\/figure>\n\n\n\n<p>This will give you the base URL of the video, which looks something like this:<\/p>\n\n\n<cld-code-widget\n      class=\"wp-block-cloudinary-transformation-widget c-code-widget\"\n      snippets=\"[{&quot;sdkId&quot;:&quot;nodejs&quot;,&quot;framework&quot;:&quot;nodejs&quot;,&quot;language&quot;:&quot;nodejs&quot;,&quot;rawCodeSnippet&quot;:&quot;cloudinary.video(\\&quot;samples\\\/cld-sample-video\\&quot;)&quot;,&quot;codeSnippet&quot;:&quot;cloudinary.video(\\&quot;samples\\\/cld-sample-video\\&quot;)&quot;,&quot;status&quot;:0,&quot;statusText&quot;:&quot;Ok&quot;,&quot;displayName&quot;:&quot;Node.js&quot;,&quot;packageName&quot;:&quot;cloudinary&quot;,&quot;packageStatus&quot;:&quot;&quot;,&quot;packageVersion&quot;:&quot;2.x&quot;},{&quot;sdkId&quot;:&quot;react_2&quot;,&quot;framework&quot;:&quot;react_2&quot;,&quot;language&quot;:&quot;react&quot;,&quot;rawCodeSnippet&quot;:&quot;new CloudinaryVideo(\\&quot;samples\\\/cld-sample-video.mp4\\&quot;).setVersion(1737818777);&quot;,&quot;codeSnippet&quot;:&quot;new CloudinaryVideo(\\&quot;samples\\\/cld-sample-video.mp4\\&quot;).setVersion(1737818777);&quot;,&quot;status&quot;:0,&quot;statusText&quot;:&quot;Ok&quot;,&quot;displayName&quot;:&quot;React&quot;,&quot;packageName&quot;:&quot;@cloudinary\\\/react&quot;,&quot;packageStatus&quot;:&quot;&quot;,&quot;packageVersion&quot;:&quot;1.x&quot;},{&quot;sdkId&quot;:&quot;react&quot;,&quot;framework&quot;:&quot;react&quot;,&quot;language&quot;:&quot;react&quot;,&quot;rawCodeSnippet&quot;:&quot;&lt;Video publicId=\\&quot;samples\\\/cld-sample-video\\&quot; &gt; &lt;\\\/Video&gt;&quot;,&quot;codeSnippet&quot;:&quot;&lt;Video publicId=\\&quot;samples\\\/cld-sample-video\\&quot; &gt;\\n\\n&lt;\\\/Video&gt;&quot;,&quot;status&quot;:0,&quot;statusText&quot;:&quot;Ok&quot;,&quot;displayName&quot;:&quot;React&quot;,&quot;packageName&quot;:&quot;cloudinary-react&quot;,&quot;packageStatus&quot;:&quot;&quot;,&quot;packageVersion&quot;:&quot;1.x&quot;},{&quot;sdkId&quot;:&quot;vue_2&quot;,&quot;framework&quot;:&quot;vue_2&quot;,&quot;language&quot;:&quot;vue&quot;,&quot;rawCodeSnippet&quot;:&quot;new CloudinaryVideo(\\&quot;samples\\\/cld-sample-video.mp4\\&quot;).setVersion(1737818777);&quot;,&quot;codeSnippet&quot;:&quot;new CloudinaryVideo(\\&quot;samples\\\/cld-sample-video.mp4\\&quot;).setVersion(1737818777);&quot;,&quot;status&quot;:0,&quot;statusText&quot;:&quot;Ok&quot;,&quot;displayName&quot;:&quot;Vue.js&quot;,&quot;packageName&quot;:&quot;@cloudinary\\\/vue&quot;,&quot;packageStatus&quot;:&quot;&quot;,&quot;packageVersion&quot;:&quot;1.x&quot;},{&quot;sdkId&quot;:&quot;vue&quot;,&quot;framework&quot;:&quot;vue&quot;,&quot;language&quot;:&quot;vue&quot;,&quot;rawCodeSnippet&quot;:&quot;&lt;cld-video public-id=\\&quot;samples\\\/cld-sample-video\\&quot; &gt; &lt;\\\/cld-video&gt;&quot;,&quot;codeSnippet&quot;:&quot;&lt;cld-video public-id=\\&quot;samples\\\/cld-sample-video\\&quot; &gt;\\n\\n&lt;\\\/cld-video&gt;&quot;,&quot;status&quot;:0,&quot;statusText&quot;:&quot;Ok&quot;,&quot;displayName&quot;:&quot;Vue.js&quot;,&quot;packageName&quot;:&quot;cloudinary-vue&quot;,&quot;packageStatus&quot;:&quot;legacy&quot;,&quot;packageVersion&quot;:&quot;1.x&quot;},{&quot;sdkId&quot;:&quot;angular_2&quot;,&quot;framework&quot;:&quot;angular_2&quot;,&quot;language&quot;:&quot;angular&quot;,&quot;rawCodeSnippet&quot;:&quot;new CloudinaryVideo(\\&quot;samples\\\/cld-sample-video.mp4\\&quot;).setVersion(1737818777);&quot;,&quot;codeSnippet&quot;:&quot;new CloudinaryVideo(\\&quot;samples\\\/cld-sample-video.mp4\\&quot;).setVersion(1737818777);&quot;,&quot;status&quot;:0,&quot;statusText&quot;:&quot;Ok&quot;,&quot;displayName&quot;:&quot;Angular&quot;,&quot;packageName&quot;:&quot;@cloudinary\\\/ng&quot;,&quot;packageStatus&quot;:&quot;&quot;,&quot;packageVersion&quot;:&quot;1.x&quot;},{&quot;sdkId&quot;:&quot;angular&quot;,&quot;framework&quot;:&quot;angular&quot;,&quot;language&quot;:&quot;angular&quot;,&quot;rawCodeSnippet&quot;:&quot;&lt;cl-video public-id=\\&quot;samples\\\/cld-sample-video\\&quot; &gt; &lt;\\\/cl-video&gt;&quot;,&quot;codeSnippet&quot;:&quot;&lt;cl-video public-id=\\&quot;samples\\\/cld-sample-video\\&quot; &gt;\\n\\n&lt;\\\/cl-video&gt;&quot;,&quot;status&quot;:0,&quot;statusText&quot;:&quot;Ok&quot;,&quot;displayName&quot;:&quot;Angular&quot;,&quot;packageName&quot;:&quot;@cloudinary\\\/angular-5.x&quot;,&quot;packageStatus&quot;:&quot;legacy&quot;,&quot;packageVersion&quot;:&quot;1.x&quot;},{&quot;sdkId&quot;:&quot;js_2&quot;,&quot;framework&quot;:&quot;js_2&quot;,&quot;language&quot;:&quot;js&quot;,&quot;rawCodeSnippet&quot;:&quot;new CloudinaryVideo(\\&quot;samples\\\/cld-sample-video.mp4\\&quot;).setVersion(1737818777);&quot;,&quot;codeSnippet&quot;:&quot;new CloudinaryVideo(\\&quot;samples\\\/cld-sample-video.mp4\\&quot;).setVersion(1737818777);&quot;,&quot;status&quot;:0,&quot;statusText&quot;:&quot;Ok&quot;,&quot;displayName&quot;:&quot;JS&quot;,&quot;packageName&quot;:&quot;@cloudinary\\\/url-gen&quot;,&quot;packageStatus&quot;:&quot;&quot;,&quot;packageVersion&quot;:&quot;1.x&quot;},{&quot;sdkId&quot;:&quot;js&quot;,&quot;framework&quot;:&quot;js&quot;,&quot;language&quot;:&quot;js&quot;,&quot;rawCodeSnippet&quot;:&quot;cloudinary.videoTag(&#039;samples\\\/cld-sample-video&#039;).toHtml();&quot;,&quot;codeSnippet&quot;:&quot;cloudinary.videoTag(&#039;samples\\\/cld-sample-video&#039;).toHtml();&quot;,&quot;status&quot;:0,&quot;statusText&quot;:&quot;Ok&quot;,&quot;displayName&quot;:&quot;JS&quot;,&quot;packageName&quot;:&quot;cloudinary-core&quot;,&quot;packageStatus&quot;:&quot;legacy&quot;,&quot;packageVersion&quot;:&quot;2.x&quot;},{&quot;sdkId&quot;:&quot;python&quot;,&quot;framework&quot;:&quot;python&quot;,&quot;language&quot;:&quot;python&quot;,&quot;rawCodeSnippet&quot;:&quot;CloudinaryVideo(\\&quot;samples\\\/cld-sample-video\\&quot;).video()&quot;,&quot;codeSnippet&quot;:&quot;CloudinaryVideo(\\&quot;samples\\\/cld-sample-video\\&quot;).video()&quot;,&quot;status&quot;:0,&quot;statusText&quot;:&quot;Ok&quot;,&quot;displayName&quot;:&quot;Python&quot;,&quot;packageName&quot;:&quot;cloudinary&quot;,&quot;packageStatus&quot;:&quot;&quot;,&quot;packageVersion&quot;:&quot;1.x&quot;},{&quot;sdkId&quot;:&quot;php_2&quot;,&quot;framework&quot;:&quot;php_2&quot;,&quot;language&quot;:&quot;php&quot;,&quot;rawCodeSnippet&quot;:&quot;(new VideoTag(&#039;samples\\\/cld-sample-video.mp4&#039;))\\n\\t-&gt;version(1737818777);&quot;,&quot;codeSnippet&quot;:&quot;(new VideoTag(&#039;samples\\\/cld-sample-video.mp4&#039;))\\n\\t-&gt;version(1737818777);&quot;,&quot;status&quot;:0,&quot;statusText&quot;:&quot;Ok&quot;,&quot;displayName&quot;:&quot;PHP&quot;,&quot;packageName&quot;:&quot;cloudinary_php&quot;,&quot;packageStatus&quot;:&quot;&quot;,&quot;packageVersion&quot;:&quot;3.x&quot;},{&quot;sdkId&quot;:&quot;php&quot;,&quot;framework&quot;:&quot;php&quot;,&quot;language&quot;:&quot;php&quot;,&quot;rawCodeSnippet&quot;:&quot;cl_video_tag(\\&quot;samples\\\/cld-sample-video\\&quot;)&quot;,&quot;codeSnippet&quot;:&quot;cl_video_tag(\\&quot;samples\\\/cld-sample-video\\&quot;)&quot;,&quot;status&quot;:0,&quot;statusText&quot;:&quot;Ok&quot;,&quot;displayName&quot;:&quot;PHP&quot;,&quot;packageName&quot;:&quot;cloudinary_php&quot;,&quot;packageStatus&quot;:&quot;legacy&quot;,&quot;packageVersion&quot;:&quot;1.x&quot;},{&quot;sdkId&quot;:&quot;java&quot;,&quot;framework&quot;:&quot;java&quot;,&quot;language&quot;:&quot;java&quot;,&quot;rawCodeSnippet&quot;:&quot;cloudinary.url().transformation(new Transformation().videoTag(\\&quot;samples\\\/cld-sample-video\\&quot;);&quot;,&quot;codeSnippet&quot;:&quot;cloudinary.url().transformation(new Transformation().videoTag(\\&quot;samples\\\/cld-sample-video\\&quot;);&quot;,&quot;status&quot;:0,&quot;statusText&quot;:&quot;Ok&quot;,&quot;displayName&quot;:&quot;Java&quot;,&quot;packageName&quot;:&quot;cloudinary&quot;,&quot;packageStatus&quot;:&quot;&quot;,&quot;packageVersion&quot;:&quot;2.x&quot;},{&quot;sdkId&quot;:&quot;ruby&quot;,&quot;framework&quot;:&quot;ruby&quot;,&quot;language&quot;:&quot;ruby&quot;,&quot;rawCodeSnippet&quot;:&quot;cl_video_tag(\\&quot;samples\\\/cld-sample-video\\&quot;)&quot;,&quot;codeSnippet&quot;:&quot;cl_video_tag(\\&quot;samples\\\/cld-sample-video\\&quot;)&quot;,&quot;status&quot;:0,&quot;statusText&quot;:&quot;Ok&quot;,&quot;displayName&quot;:&quot;Ruby&quot;,&quot;packageName&quot;:&quot;cloudinary&quot;,&quot;packageStatus&quot;:&quot;&quot;,&quot;packageVersion&quot;:&quot;2.x&quot;},{&quot;sdkId&quot;:&quot;csharp&quot;,&quot;framework&quot;:&quot;csharp&quot;,&quot;language&quot;:&quot;csharp&quot;,&quot;rawCodeSnippet&quot;:&quot;cloudinary.Api.UrlVideoUp.BuildVideoTag(\\&quot;samples\\\/cld-sample-video\\&quot;)&quot;,&quot;codeSnippet&quot;:&quot;cloudinary.Api.UrlVideoUp.BuildVideoTag(\\&quot;samples\\\/cld-sample-video\\&quot;)&quot;,&quot;status&quot;:0,&quot;statusText&quot;:&quot;Ok&quot;,&quot;displayName&quot;:&quot;.NET&quot;,&quot;packageName&quot;:&quot;CloudinaryDotNet&quot;,&quot;packageStatus&quot;:&quot;&quot;,&quot;packageVersion&quot;:&quot;1.x&quot;},{&quot;sdkId&quot;:&quot;dart&quot;,&quot;framework&quot;:&quot;dart&quot;,&quot;language&quot;:&quot;dart&quot;,&quot;rawCodeSnippet&quot;:&quot;cloudinary.video(&#039;samples\\\/cld-sample-video.mp4&#039;).transformation(Transformation()\\n\\t.version(1737818777));&quot;,&quot;codeSnippet&quot;:&quot;cloudinary.video(&#039;samples\\\/cld-sample-video.mp4&#039;).transformation(Transformation()\\n\\t.version(1737818777));&quot;,&quot;status&quot;:0,&quot;statusText&quot;:&quot;Ok&quot;,&quot;displayName&quot;:&quot;Dart&quot;,&quot;packageName&quot;:&quot;cloudinary_dart&quot;,&quot;packageStatus&quot;:&quot;&quot;,&quot;packageVersion&quot;:&quot;1.x&quot;},{&quot;sdkId&quot;:&quot;swift&quot;,&quot;framework&quot;:&quot;swift&quot;,&quot;language&quot;:&quot;swift&quot;,&quot;rawCodeSnippet&quot;:&quot;cloudinary.createUrl().setResourceType(\\&quot;video\\&quot;).generate(\\&quot;samples\\\/cld-sample-video.mp4\\&quot;)&quot;,&quot;codeSnippet&quot;:&quot;cloudinary.createUrl().setResourceType(\\&quot;video\\&quot;).generate(\\&quot;samples\\\/cld-sample-video.mp4\\&quot;)&quot;,&quot;status&quot;:0,&quot;statusText&quot;:&quot;Ok&quot;,&quot;displayName&quot;:&quot;iOS&quot;,&quot;packageName&quot;:&quot;cloudinary&quot;,&quot;packageStatus&quot;:&quot;&quot;,&quot;packageVersion&quot;:&quot;5.x&quot;},{&quot;sdkId&quot;:&quot;android&quot;,&quot;framework&quot;:&quot;android&quot;,&quot;language&quot;:&quot;android&quot;,&quot;rawCodeSnippet&quot;:&quot;MediaManager.get().url().transformation(new Transformation().resourceType(\\&quot;video\\&quot;).generate(\\&quot;samples\\\/cld-sample-video.mp4\\&quot;);&quot;,&quot;codeSnippet&quot;:&quot;MediaManager.get().url().transformation(new Transformation().resourceType(\\&quot;video\\&quot;).generate(\\&quot;samples\\\/cld-sample-video.mp4\\&quot;);&quot;,&quot;status&quot;:0,&quot;statusText&quot;:&quot;Ok&quot;,&quot;displayName&quot;:&quot;Android&quot;,&quot;packageName&quot;:&quot;cloudinary-android&quot;,&quot;packageStatus&quot;:&quot;&quot;,&quot;packageVersion&quot;:&quot;3.x&quot;},{&quot;sdkId&quot;:&quot;flutter&quot;,&quot;framework&quot;:&quot;flutter&quot;,&quot;language&quot;:&quot;flutter&quot;,&quot;rawCodeSnippet&quot;:&quot;cloudinary.video(&#039;samples\\\/cld-sample-video.mp4&#039;).transformation(Transformation()\\n\\t.version(1737818777));&quot;,&quot;codeSnippet&quot;:&quot;cloudinary.video(&#039;samples\\\/cld-sample-video.mp4&#039;).transformation(Transformation()\\n\\t.version(1737818777));&quot;,&quot;status&quot;:0,&quot;statusText&quot;:&quot;Ok&quot;,&quot;displayName&quot;:&quot;Flutter&quot;,&quot;packageName&quot;:&quot;cloudinary_flutter&quot;,&quot;packageStatus&quot;:&quot;&quot;,&quot;packageVersion&quot;:&quot;1.x&quot;},{&quot;sdkId&quot;:&quot;kotlin&quot;,&quot;framework&quot;:&quot;kotlin&quot;,&quot;language&quot;:&quot;kotlin&quot;,&quot;rawCodeSnippet&quot;:&quot;cloudinary.video {\\n\\tpublicId(\\&quot;samples\\\/cld-sample-video.mp4\\&quot;)\\n\\t version(1737818777) \\n}.generate()&quot;,&quot;codeSnippet&quot;:&quot;cloudinary.video {\\n\\tpublicId(\\&quot;samples\\\/cld-sample-video.mp4\\&quot;)\\n\\t version(1737818777) \\n}.generate()&quot;,&quot;status&quot;:0,&quot;statusText&quot;:&quot;Ok&quot;,&quot;displayName&quot;:&quot;Kotlin&quot;,&quot;packageName&quot;:&quot;kotlin-url-gen&quot;,&quot;packageStatus&quot;:&quot;&quot;,&quot;packageVersion&quot;:&quot;1.x&quot;},{&quot;sdkId&quot;:&quot;jquery&quot;,&quot;framework&quot;:&quot;jquery&quot;,&quot;language&quot;:&quot;jquery&quot;,&quot;rawCodeSnippet&quot;:&quot;$.cloudinary.video(\\&quot;samples\\\/cld-sample-video\\&quot;)&quot;,&quot;codeSnippet&quot;:&quot;$.cloudinary.video(\\&quot;samples\\\/cld-sample-video\\&quot;)&quot;,&quot;status&quot;:0,&quot;statusText&quot;:&quot;Ok&quot;,&quot;displayName&quot;:&quot;jQuery&quot;,&quot;packageName&quot;:&quot;cloudinary-jquery&quot;,&quot;packageStatus&quot;:&quot;&quot;,&quot;packageVersion&quot;:&quot;2.x&quot;},{&quot;sdkId&quot;:&quot;react_native&quot;,&quot;framework&quot;:&quot;react_native&quot;,&quot;language&quot;:&quot;react_native&quot;,&quot;rawCodeSnippet&quot;:&quot;new CloudinaryVideo(\\&quot;samples\\\/cld-sample-video.mp4\\&quot;).setVersion(1737818777);&quot;,&quot;codeSnippet&quot;:&quot;new CloudinaryVideo(\\&quot;samples\\\/cld-sample-video.mp4\\&quot;).setVersion(1737818777);&quot;,&quot;status&quot;:0,&quot;statusText&quot;:&quot;Ok&quot;,&quot;displayName&quot;:&quot;React Native&quot;,&quot;packageName&quot;:&quot;cloudinary-react-native&quot;,&quot;packageStatus&quot;:&quot;&quot;,&quot;packageVersion&quot;:&quot;1.x&quot;}]\"\n      parsed-url=\"{&quot;url&quot;:&quot;https:\\\/\\\/res.cloudinary.com\\\/demo\\\/video\\\/upload\\\/v1737818777\\\/samples\\\/cld-sample-video.mp4&quot;,&quot;cloud_name&quot;:&quot;demo&quot;,&quot;host&quot;:&quot;res.cloudinary.com&quot;,&quot;type&quot;:&quot;upload&quot;,&quot;resource_type&quot;:&quot;video&quot;,&quot;transformation&quot;:[],&quot;transformation_string&quot;:&quot;&quot;,&quot;url_suffix&quot;:&quot;&quot;,&quot;version&quot;:&quot;1737818777&quot;,&quot;secure&quot;:true,&quot;public_id&quot;:&quot;samples\\\/cld-sample-video.mp4&quot;,&quot;extension&quot;:&quot;mp4&quot;,&quot;format&quot;:&quot;mp4&quot;,&quot;format_code&quot;:true,&quot;url_code&quot;:false,&quot;signature&quot;:&quot;&quot;,&quot;private_cdn&quot;:false,&quot;result_asset_type&quot;:&quot;video&quot;}\"\n      with-url=\"true\"\n    >\n      <span class=\"u-visually-hidden\">Loading code examples<\/span>\n    <\/cld-code-widget><video\n      controls\n      muted\n      preload=\"none\"\n      class=\"c-transformed-asset c-transformed-asset--video\"\n      poster=\"https:\/\/res.cloudinary.com\/demo\/video\/upload\/v1737818777\/samples\/cld-sample-video.jpg\"\n      \n    >\n      <source src=\"https:\/\/res.cloudinary.com\/demo\/video\/upload\/vc_h265\/v1737818777\/samples\/cld-sample-video.mp4\" type=\"video\/mp4; codecs=hevc\">\n<source src=\"https:\/\/res.cloudinary.com\/demo\/video\/upload\/vc_vp9\/v1737818777\/samples\/cld-sample-video.webm\" type=\"video\/webm; codecs=vp9\">\n<source src=\"https:\/\/res.cloudinary.com\/demo\/video\/upload\/vc_auto\/v1737818777\/samples\/cld-sample-video.mp4\" type=\"video\/mp4\">\n<source src=\"https:\/\/res.cloudinary.com\/demo\/video\/upload\/vc_auto\/v1737818777\/samples\/cld-sample-video.webm\" type=\"video\/webm\">\n    <\/video>\n\n\n<p>To modify the video&#8217;s aspect ratio dynamically, you can add <a target=\"_blank\" href=\"https:\/\/cloudinary.com\/documentation\/video_manipulation_and_delivery\" rel=\"noreferrer noopener\">transformation<\/a> parameters directly to the URL.&nbsp;<\/p>\n\n\n\n<p>For example, to convert the video into a <strong>9:16 vertical format<\/strong> (ideal for TikTok, Instagram Reels, and YouTube Shorts), you can apply the following transformations:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>ar_9:16<\/strong><strong>. <\/strong>Sets the aspect ratio to 9:16.<\/li>\n\n\n\n<li><strong>c_fill<\/strong><strong>. <\/strong>Crops the video to fit while preserving the most important content.<\/li>\n\n\n\n<li><strong>g_auto<\/strong><strong>.<\/strong> Automatically adjusts the gravity to keep the main subject in focus.<\/li>\n<\/ul>\n\n\n\n<p>The modified URL would look like this and generate the following result:<\/p>\n\n\n<cld-code-widget\n      class=\"wp-block-cloudinary-transformation-widget c-code-widget\"\n      snippets=\"[{&quot;sdkId&quot;:&quot;nodejs&quot;,&quot;framework&quot;:&quot;nodejs&quot;,&quot;language&quot;:&quot;nodejs&quot;,&quot;rawCodeSnippet&quot;:&quot;cloudinary.video(\\&quot;samples\\\/cld-sample-video\\&quot;, {aspect_ratio: \\&quot;9:16\\&quot;, gravity: \\&quot;auto\\&quot;, crop: \\&quot;fill\\&quot;})&quot;,&quot;codeSnippet&quot;:&quot;cloudinary.video(\\&quot;samples\\\/cld-sample-video\\&quot;, {aspect_ratio: \\&quot;9:16\\&quot;, gravity: \\&quot;auto\\&quot;, crop: \\&quot;fill\\&quot;})&quot;,&quot;status&quot;:0,&quot;statusText&quot;:&quot;Ok&quot;,&quot;displayName&quot;:&quot;Node.js&quot;,&quot;packageName&quot;:&quot;cloudinary&quot;,&quot;packageStatus&quot;:&quot;&quot;,&quot;packageVersion&quot;:&quot;2.x&quot;},{&quot;sdkId&quot;:&quot;react_2&quot;,&quot;framework&quot;:&quot;react_2&quot;,&quot;language&quot;:&quot;react&quot;,&quot;rawCodeSnippet&quot;:&quot;new CloudinaryVideo(\\&quot;samples\\\/cld-sample-video.mp4\\&quot;)\\n  .resize(\\n    fill()\\n      .aspectRatio(\\&quot;9:16\\&quot;)\\n      .gravity(autoGravity())\\n  )\\n  .setVersion(1737818777);&quot;,&quot;codeSnippet&quot;:&quot;new CloudinaryVideo(\\&quot;samples\\\/cld-sample-video.mp4\\&quot;)\\n  .resize(\\n    fill()\\n      .aspectRatio(\\&quot;9:16\\&quot;)\\n      .gravity(autoGravity())\\n  )\\n  .setVersion(1737818777);&quot;,&quot;status&quot;:0,&quot;statusText&quot;:&quot;Ok&quot;,&quot;displayName&quot;:&quot;React&quot;,&quot;packageName&quot;:&quot;@cloudinary\\\/react&quot;,&quot;packageStatus&quot;:&quot;&quot;,&quot;packageVersion&quot;:&quot;1.x&quot;},{&quot;sdkId&quot;:&quot;react&quot;,&quot;framework&quot;:&quot;react&quot;,&quot;language&quot;:&quot;react&quot;,&quot;rawCodeSnippet&quot;:&quot;&lt;Video publicId=\\&quot;samples\\\/cld-sample-video\\&quot; &gt; &lt;Transformation aspectRatio=\\&quot;9:16\\&quot; gravity=\\&quot;auto\\&quot; crop=\\&quot;fill\\&quot; \\\/&gt; &lt;\\\/Video&gt;&quot;,&quot;codeSnippet&quot;:&quot;&lt;Video publicId=\\&quot;samples\\\/cld-sample-video\\&quot; &gt;\\n\\t&lt;Transformation aspectRatio=\\&quot;9:16\\&quot; gravity=\\&quot;auto\\&quot; crop=\\&quot;fill\\&quot; \\\/&gt;\\n&lt;\\\/Video&gt;&quot;,&quot;status&quot;:0,&quot;statusText&quot;:&quot;Ok&quot;,&quot;displayName&quot;:&quot;React&quot;,&quot;packageName&quot;:&quot;cloudinary-react&quot;,&quot;packageStatus&quot;:&quot;&quot;,&quot;packageVersion&quot;:&quot;1.x&quot;},{&quot;sdkId&quot;:&quot;vue_2&quot;,&quot;framework&quot;:&quot;vue_2&quot;,&quot;language&quot;:&quot;vue&quot;,&quot;rawCodeSnippet&quot;:&quot;new CloudinaryVideo(\\&quot;samples\\\/cld-sample-video.mp4\\&quot;)\\n  .resize(\\n    fill()\\n      .aspectRatio(\\&quot;9:16\\&quot;)\\n      .gravity(autoGravity())\\n  )\\n  .setVersion(1737818777);&quot;,&quot;codeSnippet&quot;:&quot;new CloudinaryVideo(\\&quot;samples\\\/cld-sample-video.mp4\\&quot;)\\n  .resize(\\n    fill()\\n      .aspectRatio(\\&quot;9:16\\&quot;)\\n      .gravity(autoGravity())\\n  )\\n  .setVersion(1737818777);&quot;,&quot;status&quot;:0,&quot;statusText&quot;:&quot;Ok&quot;,&quot;displayName&quot;:&quot;Vue.js&quot;,&quot;packageName&quot;:&quot;@cloudinary\\\/vue&quot;,&quot;packageStatus&quot;:&quot;&quot;,&quot;packageVersion&quot;:&quot;1.x&quot;},{&quot;sdkId&quot;:&quot;vue&quot;,&quot;framework&quot;:&quot;vue&quot;,&quot;language&quot;:&quot;vue&quot;,&quot;rawCodeSnippet&quot;:&quot;&lt;cld-video public-id=\\&quot;samples\\\/cld-sample-video\\&quot; &gt; &lt;cld-transformation aspect-ratio=\\&quot;9:16\\&quot; gravity=\\&quot;auto\\&quot; crop=\\&quot;fill\\&quot; \\\/&gt; &lt;\\\/cld-video&gt;&quot;,&quot;codeSnippet&quot;:&quot;&lt;cld-video public-id=\\&quot;samples\\\/cld-sample-video\\&quot; &gt;\\n\\t&lt;cld-transformation aspect-ratio=\\&quot;9:16\\&quot; gravity=\\&quot;auto\\&quot; crop=\\&quot;fill\\&quot; \\\/&gt;\\n&lt;\\\/cld-video&gt;&quot;,&quot;status&quot;:0,&quot;statusText&quot;:&quot;Ok&quot;,&quot;displayName&quot;:&quot;Vue.js&quot;,&quot;packageName&quot;:&quot;cloudinary-vue&quot;,&quot;packageStatus&quot;:&quot;legacy&quot;,&quot;packageVersion&quot;:&quot;1.x&quot;},{&quot;sdkId&quot;:&quot;angular_2&quot;,&quot;framework&quot;:&quot;angular_2&quot;,&quot;language&quot;:&quot;angular&quot;,&quot;rawCodeSnippet&quot;:&quot;new CloudinaryVideo(\\&quot;samples\\\/cld-sample-video.mp4\\&quot;)\\n  .resize(\\n    fill()\\n      .aspectRatio(\\&quot;9:16\\&quot;)\\n      .gravity(autoGravity())\\n  )\\n  .setVersion(1737818777);&quot;,&quot;codeSnippet&quot;:&quot;new CloudinaryVideo(\\&quot;samples\\\/cld-sample-video.mp4\\&quot;)\\n  .resize(\\n    fill()\\n      .aspectRatio(\\&quot;9:16\\&quot;)\\n      .gravity(autoGravity())\\n  )\\n  .setVersion(1737818777);&quot;,&quot;status&quot;:0,&quot;statusText&quot;:&quot;Ok&quot;,&quot;displayName&quot;:&quot;Angular&quot;,&quot;packageName&quot;:&quot;@cloudinary\\\/ng&quot;,&quot;packageStatus&quot;:&quot;&quot;,&quot;packageVersion&quot;:&quot;1.x&quot;},{&quot;sdkId&quot;:&quot;angular&quot;,&quot;framework&quot;:&quot;angular&quot;,&quot;language&quot;:&quot;angular&quot;,&quot;rawCodeSnippet&quot;:&quot;&lt;cl-video public-id=\\&quot;samples\\\/cld-sample-video\\&quot; &gt; &lt;cl-transformation aspect-ratio=\\&quot;9:16\\&quot; gravity=\\&quot;auto\\&quot; crop=\\&quot;fill\\&quot;&gt; &lt;\\\/cl-transformation&gt; &lt;\\\/cl-video&gt;&quot;,&quot;codeSnippet&quot;:&quot;&lt;cl-video public-id=\\&quot;samples\\\/cld-sample-video\\&quot; &gt;\\n\\t&lt;cl-transformation aspect-ratio=\\&quot;9:16\\&quot; gravity=\\&quot;auto\\&quot; crop=\\&quot;fill\\&quot;&gt;\\n\\t&lt;\\\/cl-transformation&gt;\\n&lt;\\\/cl-video&gt;&quot;,&quot;status&quot;:0,&quot;statusText&quot;:&quot;Ok&quot;,&quot;displayName&quot;:&quot;Angular&quot;,&quot;packageName&quot;:&quot;@cloudinary\\\/angular-5.x&quot;,&quot;packageStatus&quot;:&quot;legacy&quot;,&quot;packageVersion&quot;:&quot;1.x&quot;},{&quot;sdkId&quot;:&quot;js_2&quot;,&quot;framework&quot;:&quot;js_2&quot;,&quot;language&quot;:&quot;js&quot;,&quot;rawCodeSnippet&quot;:&quot;new CloudinaryVideo(\\&quot;samples\\\/cld-sample-video.mp4\\&quot;)\\n  .resize(\\n    fill()\\n      .aspectRatio(\\&quot;9:16\\&quot;)\\n      .gravity(autoGravity())\\n  )\\n  .setVersion(1737818777);&quot;,&quot;codeSnippet&quot;:&quot;new CloudinaryVideo(\\&quot;samples\\\/cld-sample-video.mp4\\&quot;)\\n  .resize(\\n    fill()\\n      .aspectRatio(\\&quot;9:16\\&quot;)\\n      .gravity(autoGravity())\\n  )\\n  .setVersion(1737818777);&quot;,&quot;status&quot;:0,&quot;statusText&quot;:&quot;Ok&quot;,&quot;displayName&quot;:&quot;JS&quot;,&quot;packageName&quot;:&quot;@cloudinary\\\/url-gen&quot;,&quot;packageStatus&quot;:&quot;&quot;,&quot;packageVersion&quot;:&quot;1.x&quot;},{&quot;sdkId&quot;:&quot;js&quot;,&quot;framework&quot;:&quot;js&quot;,&quot;language&quot;:&quot;js&quot;,&quot;rawCodeSnippet&quot;:&quot;cloudinary.videoTag(&#039;samples\\\/cld-sample-video&#039;, {aspectRatio: \\&quot;9:16\\&quot;, gravity: \\&quot;auto\\&quot;, crop: \\&quot;fill\\&quot;}).toHtml();&quot;,&quot;codeSnippet&quot;:&quot;cloudinary.videoTag(&#039;samples\\\/cld-sample-video&#039;, {aspectRatio: \\&quot;9:16\\&quot;, gravity: \\&quot;auto\\&quot;, crop: \\&quot;fill\\&quot;}).toHtml();&quot;,&quot;status&quot;:0,&quot;statusText&quot;:&quot;Ok&quot;,&quot;displayName&quot;:&quot;JS&quot;,&quot;packageName&quot;:&quot;cloudinary-core&quot;,&quot;packageStatus&quot;:&quot;legacy&quot;,&quot;packageVersion&quot;:&quot;2.x&quot;},{&quot;sdkId&quot;:&quot;python&quot;,&quot;framework&quot;:&quot;python&quot;,&quot;language&quot;:&quot;python&quot;,&quot;rawCodeSnippet&quot;:&quot;CloudinaryVideo(\\&quot;samples\\\/cld-sample-video\\&quot;).video(aspect_ratio=\\&quot;9:16\\&quot;, gravity=\\&quot;auto\\&quot;, crop=\\&quot;fill\\&quot;)&quot;,&quot;codeSnippet&quot;:&quot;CloudinaryVideo(\\&quot;samples\\\/cld-sample-video\\&quot;).video(aspect_ratio=\\&quot;9:16\\&quot;, gravity=\\&quot;auto\\&quot;, crop=\\&quot;fill\\&quot;)&quot;,&quot;status&quot;:0,&quot;statusText&quot;:&quot;Ok&quot;,&quot;displayName&quot;:&quot;Python&quot;,&quot;packageName&quot;:&quot;cloudinary&quot;,&quot;packageStatus&quot;:&quot;&quot;,&quot;packageVersion&quot;:&quot;1.x&quot;},{&quot;sdkId&quot;:&quot;php_2&quot;,&quot;framework&quot;:&quot;php_2&quot;,&quot;language&quot;:&quot;php&quot;,&quot;rawCodeSnippet&quot;:&quot;(new VideoTag(&#039;samples\\\/cld-sample-video.mp4&#039;))\\n\\t-&gt;resize(Resize::fill()-&gt;aspectRatio(\\&quot;9:16\\&quot;)\\n\\t-&gt;gravity(\\n\\tGravity::autoGravity())\\n\\t)\\n\\t-&gt;version(1737818777);&quot;,&quot;codeSnippet&quot;:&quot;(new VideoTag(&#039;samples\\\/cld-sample-video.mp4&#039;))\\n\\t-&gt;resize(Resize::fill()-&gt;aspectRatio(\\&quot;9:16\\&quot;)\\n\\t-&gt;gravity(\\n\\tGravity::autoGravity())\\n\\t)\\n\\t-&gt;version(1737818777);&quot;,&quot;status&quot;:0,&quot;statusText&quot;:&quot;Ok&quot;,&quot;displayName&quot;:&quot;PHP&quot;,&quot;packageName&quot;:&quot;cloudinary_php&quot;,&quot;packageStatus&quot;:&quot;&quot;,&quot;packageVersion&quot;:&quot;3.x&quot;},{&quot;sdkId&quot;:&quot;php&quot;,&quot;framework&quot;:&quot;php&quot;,&quot;language&quot;:&quot;php&quot;,&quot;rawCodeSnippet&quot;:&quot;cl_video_tag(\\&quot;samples\\\/cld-sample-video\\&quot;, array(\\&quot;aspect_ratio\\&quot;=&gt;\\&quot;9:16\\&quot;, \\&quot;gravity\\&quot;=&gt;\\&quot;auto\\&quot;, \\&quot;crop\\&quot;=&gt;\\&quot;fill\\&quot;))&quot;,&quot;codeSnippet&quot;:&quot;cl_video_tag(\\&quot;samples\\\/cld-sample-video\\&quot;, array(\\&quot;aspect_ratio\\&quot;=&gt;\\&quot;9:16\\&quot;, \\&quot;gravity\\&quot;=&gt;\\&quot;auto\\&quot;, \\&quot;crop\\&quot;=&gt;\\&quot;fill\\&quot;))&quot;,&quot;status&quot;:0,&quot;statusText&quot;:&quot;Ok&quot;,&quot;displayName&quot;:&quot;PHP&quot;,&quot;packageName&quot;:&quot;cloudinary_php&quot;,&quot;packageStatus&quot;:&quot;legacy&quot;,&quot;packageVersion&quot;:&quot;1.x&quot;},{&quot;sdkId&quot;:&quot;java&quot;,&quot;framework&quot;:&quot;java&quot;,&quot;language&quot;:&quot;java&quot;,&quot;rawCodeSnippet&quot;:&quot;cloudinary.url().transformation(new Transformation().aspectRatio(\\&quot;9:16\\&quot;).gravity(\\&quot;auto\\&quot;).crop(\\&quot;fill\\&quot;)).videoTag(\\&quot;samples\\\/cld-sample-video\\&quot;);&quot;,&quot;codeSnippet&quot;:&quot;cloudinary.url().transformation(new Transformation().aspectRatio(\\&quot;9:16\\&quot;).gravity(\\&quot;auto\\&quot;).crop(\\&quot;fill\\&quot;)).videoTag(\\&quot;samples\\\/cld-sample-video\\&quot;);&quot;,&quot;status&quot;:0,&quot;statusText&quot;:&quot;Ok&quot;,&quot;displayName&quot;:&quot;Java&quot;,&quot;packageName&quot;:&quot;cloudinary&quot;,&quot;packageStatus&quot;:&quot;&quot;,&quot;packageVersion&quot;:&quot;2.x&quot;},{&quot;sdkId&quot;:&quot;ruby&quot;,&quot;framework&quot;:&quot;ruby&quot;,&quot;language&quot;:&quot;ruby&quot;,&quot;rawCodeSnippet&quot;:&quot;cl_video_tag(\\&quot;samples\\\/cld-sample-video\\&quot;, aspect_ratio: \\&quot;9:16\\&quot;, gravity: \\&quot;auto\\&quot;, crop: \\&quot;fill\\&quot;)&quot;,&quot;codeSnippet&quot;:&quot;cl_video_tag(\\&quot;samples\\\/cld-sample-video\\&quot;, aspect_ratio: \\&quot;9:16\\&quot;, gravity: \\&quot;auto\\&quot;, crop: \\&quot;fill\\&quot;)&quot;,&quot;status&quot;:0,&quot;statusText&quot;:&quot;Ok&quot;,&quot;displayName&quot;:&quot;Ruby&quot;,&quot;packageName&quot;:&quot;cloudinary&quot;,&quot;packageStatus&quot;:&quot;&quot;,&quot;packageVersion&quot;:&quot;2.x&quot;},{&quot;sdkId&quot;:&quot;csharp&quot;,&quot;framework&quot;:&quot;csharp&quot;,&quot;language&quot;:&quot;csharp&quot;,&quot;rawCodeSnippet&quot;:&quot;cloudinary.Api.UrlVideoUp.Transform(new Transformation().AspectRatio(\\&quot;9:16\\&quot;).Gravity(\\&quot;auto\\&quot;).Crop(\\&quot;fill\\&quot;)).BuildVideoTag(\\&quot;samples\\\/cld-sample-video\\&quot;)&quot;,&quot;codeSnippet&quot;:&quot;cloudinary.Api.UrlVideoUp.Transform(new Transformation().AspectRatio(\\&quot;9:16\\&quot;).Gravity(\\&quot;auto\\&quot;).Crop(\\&quot;fill\\&quot;)).BuildVideoTag(\\&quot;samples\\\/cld-sample-video\\&quot;)&quot;,&quot;status&quot;:0,&quot;statusText&quot;:&quot;Ok&quot;,&quot;displayName&quot;:&quot;.NET&quot;,&quot;packageName&quot;:&quot;CloudinaryDotNet&quot;,&quot;packageStatus&quot;:&quot;&quot;,&quot;packageVersion&quot;:&quot;1.x&quot;},{&quot;sdkId&quot;:&quot;dart&quot;,&quot;framework&quot;:&quot;dart&quot;,&quot;language&quot;:&quot;dart&quot;,&quot;rawCodeSnippet&quot;:&quot;cloudinary.video(&#039;samples\\\/cld-sample-video.mp4&#039;).transformation(Transformation()\\n\\t.resize(Resize.fill().aspectRatio(\\&quot;9:16\\&quot;)\\n\\t.gravity(\\n\\tGravity.autoGravity())\\n\\t)\\n\\t.version(1737818777));&quot;,&quot;codeSnippet&quot;:&quot;cloudinary.video(&#039;samples\\\/cld-sample-video.mp4&#039;).transformation(Transformation()\\n\\t.resize(Resize.fill().aspectRatio(\\&quot;9:16\\&quot;)\\n\\t.gravity(\\n\\tGravity.autoGravity())\\n\\t)\\n\\t.version(1737818777));&quot;,&quot;status&quot;:0,&quot;statusText&quot;:&quot;Ok&quot;,&quot;displayName&quot;:&quot;Dart&quot;,&quot;packageName&quot;:&quot;cloudinary_dart&quot;,&quot;packageStatus&quot;:&quot;&quot;,&quot;packageVersion&quot;:&quot;1.x&quot;},{&quot;sdkId&quot;:&quot;swift&quot;,&quot;framework&quot;:&quot;swift&quot;,&quot;language&quot;:&quot;swift&quot;,&quot;rawCodeSnippet&quot;:&quot;cloudinary.createUrl().setResourceType(\\&quot;video\\&quot;).setTransformation(CLDTransformation().setAspectRatio(\\&quot;9:16\\&quot;).setGravity(\\&quot;auto\\&quot;).setCrop(\\&quot;fill\\&quot;)).generate(\\&quot;samples\\\/cld-sample-video.mp4\\&quot;)&quot;,&quot;codeSnippet&quot;:&quot;cloudinary.createUrl().setResourceType(\\&quot;video\\&quot;).setTransformation(CLDTransformation().setAspectRatio(\\&quot;9:16\\&quot;).setGravity(\\&quot;auto\\&quot;).setCrop(\\&quot;fill\\&quot;)).generate(\\&quot;samples\\\/cld-sample-video.mp4\\&quot;)&quot;,&quot;status&quot;:0,&quot;statusText&quot;:&quot;Ok&quot;,&quot;displayName&quot;:&quot;iOS&quot;,&quot;packageName&quot;:&quot;cloudinary&quot;,&quot;packageStatus&quot;:&quot;&quot;,&quot;packageVersion&quot;:&quot;5.x&quot;},{&quot;sdkId&quot;:&quot;android&quot;,&quot;framework&quot;:&quot;android&quot;,&quot;language&quot;:&quot;android&quot;,&quot;rawCodeSnippet&quot;:&quot;MediaManager.get().url().transformation(new Transformation().aspectRatio(\\&quot;9:16\\&quot;).gravity(\\&quot;auto\\&quot;).crop(\\&quot;fill\\&quot;)).resourceType(\\&quot;video\\&quot;).generate(\\&quot;samples\\\/cld-sample-video.mp4\\&quot;);&quot;,&quot;codeSnippet&quot;:&quot;MediaManager.get().url().transformation(new Transformation().aspectRatio(\\&quot;9:16\\&quot;).gravity(\\&quot;auto\\&quot;).crop(\\&quot;fill\\&quot;)).resourceType(\\&quot;video\\&quot;).generate(\\&quot;samples\\\/cld-sample-video.mp4\\&quot;);&quot;,&quot;status&quot;:0,&quot;statusText&quot;:&quot;Ok&quot;,&quot;displayName&quot;:&quot;Android&quot;,&quot;packageName&quot;:&quot;cloudinary-android&quot;,&quot;packageStatus&quot;:&quot;&quot;,&quot;packageVersion&quot;:&quot;3.x&quot;},{&quot;sdkId&quot;:&quot;flutter&quot;,&quot;framework&quot;:&quot;flutter&quot;,&quot;language&quot;:&quot;flutter&quot;,&quot;rawCodeSnippet&quot;:&quot;cloudinary.video(&#039;samples\\\/cld-sample-video.mp4&#039;).transformation(Transformation()\\n\\t.resize(Resize.fill().aspectRatio(\\&quot;9:16\\&quot;)\\n\\t.gravity(\\n\\tGravity.autoGravity())\\n\\t)\\n\\t.version(1737818777));&quot;,&quot;codeSnippet&quot;:&quot;cloudinary.video(&#039;samples\\\/cld-sample-video.mp4&#039;).transformation(Transformation()\\n\\t.resize(Resize.fill().aspectRatio(\\&quot;9:16\\&quot;)\\n\\t.gravity(\\n\\tGravity.autoGravity())\\n\\t)\\n\\t.version(1737818777));&quot;,&quot;status&quot;:0,&quot;statusText&quot;:&quot;Ok&quot;,&quot;displayName&quot;:&quot;Flutter&quot;,&quot;packageName&quot;:&quot;cloudinary_flutter&quot;,&quot;packageStatus&quot;:&quot;&quot;,&quot;packageVersion&quot;:&quot;1.x&quot;},{&quot;sdkId&quot;:&quot;kotlin&quot;,&quot;framework&quot;:&quot;kotlin&quot;,&quot;language&quot;:&quot;kotlin&quot;,&quot;rawCodeSnippet&quot;:&quot;cloudinary.video {\\n\\tpublicId(\\&quot;samples\\\/cld-sample-video.mp4\\&quot;)\\n\\t resize(Resize.fill() { aspectRatio(\\&quot;9:16\\&quot;)\\n\\t gravity(\\n\\tGravity.autoGravity())\\n\\t })\\n\\t version(1737818777) \\n}.generate()&quot;,&quot;codeSnippet&quot;:&quot;cloudinary.video {\\n\\tpublicId(\\&quot;samples\\\/cld-sample-video.mp4\\&quot;)\\n\\t resize(Resize.fill() { aspectRatio(\\&quot;9:16\\&quot;)\\n\\t gravity(\\n\\tGravity.autoGravity())\\n\\t })\\n\\t version(1737818777) \\n}.generate()&quot;,&quot;status&quot;:0,&quot;statusText&quot;:&quot;Ok&quot;,&quot;displayName&quot;:&quot;Kotlin&quot;,&quot;packageName&quot;:&quot;kotlin-url-gen&quot;,&quot;packageStatus&quot;:&quot;&quot;,&quot;packageVersion&quot;:&quot;1.x&quot;},{&quot;sdkId&quot;:&quot;jquery&quot;,&quot;framework&quot;:&quot;jquery&quot;,&quot;language&quot;:&quot;jquery&quot;,&quot;rawCodeSnippet&quot;:&quot;$.cloudinary.video(\\&quot;samples\\\/cld-sample-video\\&quot;, {aspect_ratio: \\&quot;9:16\\&quot;, gravity: \\&quot;auto\\&quot;, crop: \\&quot;fill\\&quot;})&quot;,&quot;codeSnippet&quot;:&quot;$.cloudinary.video(\\&quot;samples\\\/cld-sample-video\\&quot;, {aspect_ratio: \\&quot;9:16\\&quot;, gravity: \\&quot;auto\\&quot;, crop: \\&quot;fill\\&quot;})&quot;,&quot;status&quot;:0,&quot;statusText&quot;:&quot;Ok&quot;,&quot;displayName&quot;:&quot;jQuery&quot;,&quot;packageName&quot;:&quot;cloudinary-jquery&quot;,&quot;packageStatus&quot;:&quot;&quot;,&quot;packageVersion&quot;:&quot;2.x&quot;},{&quot;sdkId&quot;:&quot;react_native&quot;,&quot;framework&quot;:&quot;react_native&quot;,&quot;language&quot;:&quot;react_native&quot;,&quot;rawCodeSnippet&quot;:&quot;new CloudinaryVideo(\\&quot;samples\\\/cld-sample-video.mp4\\&quot;)\\n  .resize(\\n    fill()\\n      .aspectRatio(\\&quot;9:16\\&quot;)\\n      .gravity(autoGravity())\\n  )\\n  .setVersion(1737818777);&quot;,&quot;codeSnippet&quot;:&quot;new CloudinaryVideo(\\&quot;samples\\\/cld-sample-video.mp4\\&quot;)\\n  .resize(\\n    fill()\\n      .aspectRatio(\\&quot;9:16\\&quot;)\\n      .gravity(autoGravity())\\n  )\\n  .setVersion(1737818777);&quot;,&quot;status&quot;:0,&quot;statusText&quot;:&quot;Ok&quot;,&quot;displayName&quot;:&quot;React Native&quot;,&quot;packageName&quot;:&quot;cloudinary-react-native&quot;,&quot;packageStatus&quot;:&quot;&quot;,&quot;packageVersion&quot;:&quot;1.x&quot;}]\"\n      parsed-url=\"{&quot;url&quot;:&quot;https:\\\/\\\/res.cloudinary.com\\\/demo\\\/video\\\/upload\\\/ar_9:16,c_fill,g_auto\\\/v1737818777\\\/samples\\\/cld-sample-video.mp4&quot;,&quot;cloud_name&quot;:&quot;demo&quot;,&quot;host&quot;:&quot;res.cloudinary.com&quot;,&quot;type&quot;:&quot;upload&quot;,&quot;resource_type&quot;:&quot;video&quot;,&quot;transformation&quot;:[{&quot;aspect_ratio&quot;:&quot;9:16&quot;,&quot;crop_mode&quot;:&quot;fill&quot;,&quot;gravity&quot;:&quot;auto&quot;}],&quot;transformation_string&quot;:&quot;ar_9:16,c_fill,g_auto&quot;,&quot;url_suffix&quot;:&quot;&quot;,&quot;version&quot;:&quot;1737818777&quot;,&quot;secure&quot;:true,&quot;public_id&quot;:&quot;samples\\\/cld-sample-video.mp4&quot;,&quot;extension&quot;:&quot;mp4&quot;,&quot;format&quot;:&quot;mp4&quot;,&quot;format_code&quot;:true,&quot;url_code&quot;:false,&quot;signature&quot;:&quot;&quot;,&quot;private_cdn&quot;:false,&quot;result_asset_type&quot;:&quot;video&quot;}\"\n      with-url=\"true\"\n    >\n      <span class=\"u-visually-hidden\">Loading code examples<\/span>\n    <\/cld-code-widget><video\n      controls\n      muted\n      preload=\"none\"\n      class=\"c-transformed-asset c-transformed-asset--video\"\n      poster=\"https:\/\/res.cloudinary.com\/demo\/video\/upload\/ar_9:16,c_fill,g_auto\/v1737818777\/samples\/cld-sample-video.jpg\"\n       height=\"600\"\n    >\n      <source src=\"https:\/\/res.cloudinary.com\/demo\/video\/upload\/ar_9:16,c_fill,g_auto\/vc_h265\/v1737818777\/samples\/cld-sample-video.mp4\" type=\"video\/mp4; codecs=hevc\">\n<source src=\"https:\/\/res.cloudinary.com\/demo\/video\/upload\/ar_9:16,c_fill,g_auto\/vc_vp9\/v1737818777\/samples\/cld-sample-video.webm\" type=\"video\/webm; codecs=vp9\">\n<source src=\"https:\/\/res.cloudinary.com\/demo\/video\/upload\/ar_9:16,c_fill,g_auto\/vc_auto\/v1737818777\/samples\/cld-sample-video.mp4\" type=\"video\/mp4\">\n<source src=\"https:\/\/res.cloudinary.com\/demo\/video\/upload\/ar_9:16,c_fill,g_auto\/vc_auto\/v1737818777\/samples\/cld-sample-video.webm\" type=\"video\/webm\">\n    <\/video>\n\n\n<p>This way, you can apply video transformations on the fly and instantly deliver them across any platform.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Best Aspect Ratios for Popular Social Media Platforms<\/h2>\n\n\n\n<p>Here&#8217;s a quick reference guide to the best aspect ratios, which will help you optimize your videos for different social media platforms and avoid awkward cropping.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><strong>Platform<\/strong><\/td><td><strong>Feed Videos<\/strong><\/td><td><strong>Stories\/Reels\/Shorts<\/strong><\/td><\/tr><tr><td>Instagram<\/td><td>4:5 (Portrait) or 1:1 (Square)<\/td><td>9:16 (Vertical, full-screen)<\/td><\/tr><tr><td>TikTok<\/td><td>9:16 (Vertical)<\/td><td>9:16 (Vertical)<\/td><\/tr><tr><td>YouTube<\/td><td>16:9 (Widescreen)<\/td><td>9:16 (YouTube Shorts)<\/td><\/tr><tr><td>Facebook<\/td><td>4:5 (Portrait, preferred) or 1:1 (Square)<\/td><td>9:16 (Vertical)<\/td><\/tr><tr><td>X (Twitter)<\/td><td>16:9 (Landscape) or 1:1 (Square)<\/td><td>9:16 (Supported but rare)<\/td><\/tr><tr><td>LinkedIn<\/td><td>16:9 (Landscape) or 1:1 (Square)<\/td><td>9:16 (Vertical, if available)<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Test Workflows With Cloudinary Dynamic URLs and Analytics<\/h2>\n\n\n\n<p>Once you\u2019ve created multiple versions of a video, the next step is to test which aspect ratio performs best. One way to do this is through <a target=\"_blank\" href=\"https:\/\/www.oracle.com\/ng\/cx\/marketing\/what-is-ab-testing\/\" rel=\"noreferrer noopener\">A\/B testing<\/a>.<\/p>\n\n\n\n<p>For example, when launching a product teaser campaign, you want to maximize engagement on Instagram. You could create two versions of your video, <strong>one in 4:5<\/strong>(optimized for the feed) and <strong>one in 9:16<\/strong> (for Reels and Stories). With Cloudinary\u2019s dynamic URLs, generating these variations is as simple:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">4:5 Aspect Ratio (Feed Video)<\/h3>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-1\" data-shcb-language-name=\"JSON \/ JSON with Comments\" data-shcb-language-slug=\"json\"><span><code class=\"hljs language-json shcb-wrap-lines\">&#91;video src=<span class=\"hljs-string\">\"https:\/\/res.cloudinary.com\/your_cloud_name\/video\/upload\/ar_4:5,c_fill,g_auto\/path\/video.mp4\"<\/span> \/]<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-1\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JSON \/ JSON with Comments<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">json<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>This results in a video optimized for Instagram feed posts:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/cloudinary-marketing-res.cloudinary.com\/image\/upload\/v1748896171\/blog-Using_Cloudinary_to_Test_Aspect_Ratios_for_Video_Campaigns-9.png\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Example of a video in 4:5 aspect ratio, optimized for Instagram feed posts<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">9:16 Aspect Ratio (Reels\/Stories Video)<\/h3>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-2\" data-shcb-language-name=\"JSON \/ JSON with Comments\" data-shcb-language-slug=\"json\"><span><code class=\"hljs language-json shcb-wrap-lines\">&#91;video src=<span class=\"hljs-string\">\"https:\/\/res.cloudinary.com\/your_cloud_name\/video\/upload\/ar_9:16,c_fill,g_auto\/path\/video.mp4\"<\/span> \/]<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-2\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JSON \/ JSON with Comments<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">json<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>This results in a video format for Instagram reels and stories:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/cloudinary-marketing-res.cloudinary.com\/image\/upload\/v1748896172\/blog-Using_Cloudinary_to_Test_Aspect_Ratios_for_Video_Campaigns-10.png\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Example of a video in 9:16 aspect ratio, designed for Instagram Reels and Stories<\/figcaption><\/figure>\n\n\n\n<p>After generating the videos, run both versions as Instagram ads to the same audience with <strong>identical captions, targeting settings, and ad budgets<\/strong>. Finally, track performance for a week and compare click-through rates, watch time, and engagement.<\/p>\n\n\n\n<p>If the 9:16 video outperforms the 4:5 in watch time and clicks, it&#8217;s a strong indicator that vertical formats may be more effective for future campaigns. However, engagement is influenced by multiple factors beyond format alone, so it is important to track performance over multiple campaigns.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Track Video Performance in Cloudinary<\/h2>\n\n\n\n<p>Cloudinary\u2019s <a target=\"_blank\" href=\"https:\/\/cloudinary.com\/documentation\/assets_onboarding_dashboard_reports_tutorial\" rel=\"noreferrer noopener\">Delivery Reports<\/a> provide insights into how different transformations perform, including their load times, bandwidths, and requests for each URL variation. You\u2019ll also see the top-delivered assets and from what web pages they were referred.<\/p>\n\n\n\n<p>To access this report, go to <strong>Delivery Reports<\/strong> under the <strong>Programmable Media<\/strong> page, as shown below:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/cloudinary-marketing-res.cloudinary.com\/image\/upload\/v1748896172\/blog-Using_Cloudinary_to_Test_Aspect_Ratios_for_Video_Campaigns-11.png\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Viewing performance insights in Cloudinary\u2019s Delivery Reports<\/figcaption><\/figure>\n\n\n\n<p>As you scroll down, you&#8217;ll find the <strong>Top Transformations<\/strong> section, which provides detailed information about the most frequently used transformations, including which aspect ratios are being delivered the most and their impact on performance. To focus only on video data, click the <strong>Video<\/strong> filter at the top of the section.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/cloudinary-marketing-res.cloudinary.com\/image\/upload\/v1748896173\/blog-Using_Cloudinary_to_Test_Aspect_Ratios_for_Video_Campaigns-12.png\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Analyzing the most frequently used transformations in Cloudinary\u2019s analytics<\/figcaption><\/figure>\n\n\n\n<p>In addition to Cloudinary\u2019s analytics, you can use native social media analytics tools. Platforms like YouTube, Instagram, and TikTok provide built-in insights on views, watch time, engagement rates, and audience demographics, helping you measure video performance across different channels.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Wrapping Up<\/h2>\n\n\n\n<p>A mismatched aspect ratio can mean the difference between a viewer scrolling past your ad or stopping to engage. Testing aspect ratios helps you ensure that your videos are optimized for intended platforms so you can successfully maximize reach.&nbsp;<\/p>\n\n\n\n<p>Cloudinary makes video editing for campaigns easy with automated transformations, smart cropping, and built-in analytics. <a target=\"_blank\" href=\"https:\/\/cloudinary.com\/users\/register_free\" rel=\"noreferrer noopener\">Sign up for Cloudinary today<\/a> to get started.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">References<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/cloudinary.com\/glossary\/video-aspect-ratio\" target=\"_blank\" rel=\"noreferrer noopener\">Video Aspect Ratio<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/cloudinary.com\/guides\/video-effects\/smart-crop-video\" target=\"_blank\" rel=\"noreferrer noopener\">Smart Crop Video<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Video dominates social media, but a one-size-fits-all approach doesn\u2019t work when it comes to aspect ratios. A video that looks great on YouTube would be cropped at an awkward angle on TikTok or Instagram. For this reason, you need to adjust videos to fit each platform\u2019s unique requirements. This post explains how to adjust video [&hellip;]<\/p>\n","protected":false},"author":87,"featured_media":37725,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_cloudinary_featured_overwrite":false,"footnotes":""},"categories":[1],"tags":[336,97,303,310,304],"class_list":["post-37723","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-ai","tag-dynamic-video","tag-video","tag-video-player","tag-video-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>Using Cloudinary to Test Aspect Ratios for Video Campaigns<\/title>\n<meta name=\"description\" content=\"Avoid awkward cropping in your video campaigns. Learn how to use Cloudinary\u2019s smart cropping, aspect ratio transformations, and dynamic URLs to optimize videos for every platform.\" \/>\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\/test-aspect-ratios-video-campaigns\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Using Cloudinary to Test Aspect Ratios for Video Campaigns\" \/>\n<meta property=\"og:description\" content=\"Avoid awkward cropping in your video campaigns. Learn how to use Cloudinary\u2019s smart cropping, aspect ratio transformations, and dynamic URLs to optimize videos for every platform.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/cloudinary.com\/blog\/test-aspect-ratios-video-campaigns\" \/>\n<meta property=\"og:site_name\" content=\"Cloudinary Blog\" \/>\n<meta property=\"article:published_time\" content=\"2025-06-04T14:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-11-01T13:12:03+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1748035802\/Blog_Using_Cloudinary_to_Test_Aspect_Ratios_for_Video_Campaigns\/Blog_Using_Cloudinary_to_Test_Aspect_Ratios_for_Video_Campaigns.jpg?_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\/jpeg\" \/>\n<meta name=\"author\" content=\"melindapham\" \/>\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\/test-aspect-ratios-video-campaigns#article\",\"isPartOf\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/test-aspect-ratios-video-campaigns\"},\"author\":{\"name\":\"melindapham\",\"@id\":\"https:\/\/cloudinary.com\/blog\/#\/schema\/person\/0d5ad601e4c3b5be89245dfb14be42d9\"},\"headline\":\"Using Cloudinary to Test Aspect Ratios for Video Campaigns\",\"datePublished\":\"2025-06-04T14:00:00+00:00\",\"dateModified\":\"2025-11-01T13:12:03+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/test-aspect-ratios-video-campaigns\"},\"wordCount\":1508,\"publisher\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/test-aspect-ratios-video-campaigns#primaryimage\"},\"thumbnailUrl\":\"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1748035802\/Blog_Using_Cloudinary_to_Test_Aspect_Ratios_for_Video_Campaigns\/Blog_Using_Cloudinary_to_Test_Aspect_Ratios_for_Video_Campaigns.jpg?_i=AA\",\"keywords\":[\"AI\",\"Dynamic Video\",\"Video\",\"Video Player\",\"Video Transformation\"],\"inLanguage\":\"en-US\",\"copyrightYear\":\"2025\",\"copyrightHolder\":{\"@id\":\"https:\/\/cloudinary.com\/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/cloudinary.com\/blog\/test-aspect-ratios-video-campaigns\",\"url\":\"https:\/\/cloudinary.com\/blog\/test-aspect-ratios-video-campaigns\",\"name\":\"Using Cloudinary to Test Aspect Ratios for Video Campaigns\",\"isPartOf\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/test-aspect-ratios-video-campaigns#primaryimage\"},\"image\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/test-aspect-ratios-video-campaigns#primaryimage\"},\"thumbnailUrl\":\"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1748035802\/Blog_Using_Cloudinary_to_Test_Aspect_Ratios_for_Video_Campaigns\/Blog_Using_Cloudinary_to_Test_Aspect_Ratios_for_Video_Campaigns.jpg?_i=AA\",\"datePublished\":\"2025-06-04T14:00:00+00:00\",\"dateModified\":\"2025-11-01T13:12:03+00:00\",\"description\":\"Avoid awkward cropping in your video campaigns. Learn how to use Cloudinary\u2019s smart cropping, aspect ratio transformations, and dynamic URLs to optimize videos for every platform.\",\"breadcrumb\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/test-aspect-ratios-video-campaigns#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/cloudinary.com\/blog\/test-aspect-ratios-video-campaigns\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cloudinary.com\/blog\/test-aspect-ratios-video-campaigns#primaryimage\",\"url\":\"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1748035802\/Blog_Using_Cloudinary_to_Test_Aspect_Ratios_for_Video_Campaigns\/Blog_Using_Cloudinary_to_Test_Aspect_Ratios_for_Video_Campaigns.jpg?_i=AA\",\"contentUrl\":\"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1748035802\/Blog_Using_Cloudinary_to_Test_Aspect_Ratios_for_Video_Campaigns\/Blog_Using_Cloudinary_to_Test_Aspect_Ratios_for_Video_Campaigns.jpg?_i=AA\",\"width\":2000,\"height\":1100},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/cloudinary.com\/blog\/test-aspect-ratios-video-campaigns#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/cloudinary.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Using Cloudinary to Test Aspect Ratios for Video Campaigns\"}]},{\"@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\":\"https:\/\/cloudinary.com\/blog\/#\/schema\/person\/0d5ad601e4c3b5be89245dfb14be42d9\",\"name\":\"melindapham\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cloudinary.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e6f989fa97fe94be61596259d8629c3df65aec4c7da5c0000f90d810f313d4f4?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e6f989fa97fe94be61596259d8629c3df65aec4c7da5c0000f90d810f313d4f4?s=96&d=mm&r=g\",\"caption\":\"melindapham\"}}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Using Cloudinary to Test Aspect Ratios for Video Campaigns","description":"Avoid awkward cropping in your video campaigns. Learn how to use Cloudinary\u2019s smart cropping, aspect ratio transformations, and dynamic URLs to optimize videos for every platform.","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\/test-aspect-ratios-video-campaigns","og_locale":"en_US","og_type":"article","og_title":"Using Cloudinary to Test Aspect Ratios for Video Campaigns","og_description":"Avoid awkward cropping in your video campaigns. Learn how to use Cloudinary\u2019s smart cropping, aspect ratio transformations, and dynamic URLs to optimize videos for every platform.","og_url":"https:\/\/cloudinary.com\/blog\/test-aspect-ratios-video-campaigns","og_site_name":"Cloudinary Blog","article_published_time":"2025-06-04T14:00:00+00:00","article_modified_time":"2025-11-01T13:12:03+00:00","og_image":[{"width":2000,"height":1100,"url":"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1748035802\/Blog_Using_Cloudinary_to_Test_Aspect_Ratios_for_Video_Campaigns\/Blog_Using_Cloudinary_to_Test_Aspect_Ratios_for_Video_Campaigns.jpg?_i=AA","type":"image\/jpeg"}],"author":"melindapham","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"NewsArticle","@id":"https:\/\/cloudinary.com\/blog\/test-aspect-ratios-video-campaigns#article","isPartOf":{"@id":"https:\/\/cloudinary.com\/blog\/test-aspect-ratios-video-campaigns"},"author":{"name":"melindapham","@id":"https:\/\/cloudinary.com\/blog\/#\/schema\/person\/0d5ad601e4c3b5be89245dfb14be42d9"},"headline":"Using Cloudinary to Test Aspect Ratios for Video Campaigns","datePublished":"2025-06-04T14:00:00+00:00","dateModified":"2025-11-01T13:12:03+00:00","mainEntityOfPage":{"@id":"https:\/\/cloudinary.com\/blog\/test-aspect-ratios-video-campaigns"},"wordCount":1508,"publisher":{"@id":"https:\/\/cloudinary.com\/blog\/#organization"},"image":{"@id":"https:\/\/cloudinary.com\/blog\/test-aspect-ratios-video-campaigns#primaryimage"},"thumbnailUrl":"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1748035802\/Blog_Using_Cloudinary_to_Test_Aspect_Ratios_for_Video_Campaigns\/Blog_Using_Cloudinary_to_Test_Aspect_Ratios_for_Video_Campaigns.jpg?_i=AA","keywords":["AI","Dynamic Video","Video","Video Player","Video Transformation"],"inLanguage":"en-US","copyrightYear":"2025","copyrightHolder":{"@id":"https:\/\/cloudinary.com\/#organization"}},{"@type":"WebPage","@id":"https:\/\/cloudinary.com\/blog\/test-aspect-ratios-video-campaigns","url":"https:\/\/cloudinary.com\/blog\/test-aspect-ratios-video-campaigns","name":"Using Cloudinary to Test Aspect Ratios for Video Campaigns","isPartOf":{"@id":"https:\/\/cloudinary.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/cloudinary.com\/blog\/test-aspect-ratios-video-campaigns#primaryimage"},"image":{"@id":"https:\/\/cloudinary.com\/blog\/test-aspect-ratios-video-campaigns#primaryimage"},"thumbnailUrl":"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1748035802\/Blog_Using_Cloudinary_to_Test_Aspect_Ratios_for_Video_Campaigns\/Blog_Using_Cloudinary_to_Test_Aspect_Ratios_for_Video_Campaigns.jpg?_i=AA","datePublished":"2025-06-04T14:00:00+00:00","dateModified":"2025-11-01T13:12:03+00:00","description":"Avoid awkward cropping in your video campaigns. Learn how to use Cloudinary\u2019s smart cropping, aspect ratio transformations, and dynamic URLs to optimize videos for every platform.","breadcrumb":{"@id":"https:\/\/cloudinary.com\/blog\/test-aspect-ratios-video-campaigns#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/cloudinary.com\/blog\/test-aspect-ratios-video-campaigns"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cloudinary.com\/blog\/test-aspect-ratios-video-campaigns#primaryimage","url":"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1748035802\/Blog_Using_Cloudinary_to_Test_Aspect_Ratios_for_Video_Campaigns\/Blog_Using_Cloudinary_to_Test_Aspect_Ratios_for_Video_Campaigns.jpg?_i=AA","contentUrl":"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1748035802\/Blog_Using_Cloudinary_to_Test_Aspect_Ratios_for_Video_Campaigns\/Blog_Using_Cloudinary_to_Test_Aspect_Ratios_for_Video_Campaigns.jpg?_i=AA","width":2000,"height":1100},{"@type":"BreadcrumbList","@id":"https:\/\/cloudinary.com\/blog\/test-aspect-ratios-video-campaigns#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/cloudinary.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Using Cloudinary to Test Aspect Ratios for Video Campaigns"}]},{"@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":"https:\/\/cloudinary.com\/blog\/#\/schema\/person\/0d5ad601e4c3b5be89245dfb14be42d9","name":"melindapham","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cloudinary.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/e6f989fa97fe94be61596259d8629c3df65aec4c7da5c0000f90d810f313d4f4?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e6f989fa97fe94be61596259d8629c3df65aec4c7da5c0000f90d810f313d4f4?s=96&d=mm&r=g","caption":"melindapham"}}]}},"jetpack_featured_media_url":"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1748035802\/Blog_Using_Cloudinary_to_Test_Aspect_Ratios_for_Video_Campaigns\/Blog_Using_Cloudinary_to_Test_Aspect_Ratios_for_Video_Campaigns.jpg?_i=AA","_links":{"self":[{"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/posts\/37723","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\/87"}],"replies":[{"embeddable":true,"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/comments?post=37723"}],"version-history":[{"count":11,"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/posts\/37723\/revisions"}],"predecessor-version":[{"id":39064,"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/posts\/37723\/revisions\/39064"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/media\/37725"}],"wp:attachment":[{"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/media?parent=37723"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/categories?post=37723"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/tags?post=37723"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}