A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://cloudinary.com/documentation/dev_kickstart_transform_resize below:

Cloudinary Image & Video Developer Kickstart: Step 4

Last updated: Apr-23-2025

The scale resize option (c_scale) you learned about in Step 2 is great for pure optimization purposes, but more often than not, your app design will probably require delivering your visual assets at a predefined size and aspect ratio that won't always match your originals. That means you may need to crop or otherwise adjust your image and video sizes to fit your art design.

But resizing programmatically means you need to resize multiple assets without looking at the results of each asset and maybe not even knowing what they contain, yet you don't want to trust any random crop - you might cut off someone's head or the product you're supposed to be showing off!

Cloudinary offers several AI-based options for smart resizing and cropping.

~4 minutes

Task 1: Apply different automatic resize and crop options

Let's try some alternative resize transformations. Make sure you have this transformation URL open in your browser (with your cloud name):

  1. Try replacing c_scale,w_500 in the URL from above with each of the following to see how you can use the same original asset to generate a variety of different outputs for different needs:

  2. Let's stick with that last transformation and check the results of the same transformation on different assets.

    Change the public ID from cld-sample-3 to cld-sample, cld-sample-2, cld-sample-4, and cld-sample-5, and check out the results for each.

Task 2: Try out some face-detection cropping options
  1. Let's go back to the simple scale-cropping URL you started with at the beginning of Task 1 to experiment with some face-detection-based cropping:

  2. Try each of the following resize transformations (replacing the previous resize transformations each time):

 

I saw the impact of various auto-resize transformations

I understand how face-detection gravity can be useful for resizing pics with people

 

 

✔️ Feedback sent!

✖️   Error

Unfortunately there's been an error sending your feedback.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4