![]() To keep the parts of the image that are important to you, you can use the gravity parameter. By default, the center of the image is kept in the crop, but this is not always ideal. Some of the cropping modes keep only a certain part of the original image in the resulting image. However, there is no default cropping mode when using the Cloudinary SDK helper methods (see Embedding images in web pages using SDKs), so a cropping mode must be explicitly set. When creating dynamic delivery URLs, if you specify only the width and/or height parameters, but no cropping mode (no c_), the image is scaled to the new dimensions by default. Performs smart cropping, using the Imagga Crop and Scale add-on. Performs smart scaling, using the Imagga Crop and Scale add-on. These modes adjust the size and/or crop the image using an add-on. ![]() Same as pad, but only scales up the image. Same as pad, but only scales down the image. ![]() Resizes the image to fit inside the bounding box specified by the dimensions, maintaining the aspect ratio, and applies padding if the resized image does not fill the whole area. Same as fit, but only scales up the image. Same as fit, but only scales down the image. Resizes the image to fit inside the bounding box specified by the dimensions, maintaining the aspect ratio. Resizes the image to the specified dimensions without necessarily retaining the original aspect ratio. These modes adjust the size of the delivered image without cropping out any elements of the original image. Supported only with automatic cropping.Įxtracts a region of the specified dimensions from the original image without first resizing it.Ĭreates a thumbnail of the image with the specified dimensions, based on a specified gravity. Same as fill, but avoids excessive cropping by adding padding when needed. Same as fill, but only scales down the image. Resizes the image to fill the specified dimensions without distortion. If the requested dimensions have a different aspect ratio than the original, these modes crop out part of the image. Cloudinary supports the following image resize/crop modes: Crop/resize mode Use the c (crop/resize) parameter for selecting the crop/resize mode. When changing the dimensions of an uploaded image by setting the image's height, width, and/or aspect ratio, you need to decide how to resize or crop the image to fit into the requested size. If you want to resize only one dimension, and keep the other dimension at its original size (rather than the automatic determination described above), you can specify only width or only height, and add the fl_ignore_aspect_ratio flag qualifier. If ar < 1, the original height is maintained, and the width is cropped accordingly.
0 Comments
Leave a Reply. |