Limiting an image by specified dimensions
Limiting an image by specified dimensions
Presentation
Cropping
Media acceleration
Beginner

Limit the size of the image by specifying the width and height (w and h in URLs) while setting the crop parameter to limit. This will create an image that does not exceed the given width and height. All original image parts remain visible and the aspect ratio of the original image is kept.

Here's an original image: Original

https://res.cloudinary.com/demo/image/upload/cashew_chicken.jpg

Here's the same image, limited to 70x70 pixels: 70x70 Limited

https://res.cloudinary.com/demo/image/upload/w_70,h_70,c_limit/cashew_chicken.jpg

Note that since the aspect ratio is kept, this transformation actually resulted a 70x47 pixels image.

When setting the width and height parameters to values that exceed the original image's dimensions, this will actually deliver the original image as is (850x565 px): 1000x1000 Limited

https://res.cloudinary.com/demo/image/upload/w_1000,h_1000,c_limit/cashew_chicken.jpg