tencent cloud

Feedback

Image Cropping and Scaling

Last updated: 2022-08-24 16:59:06

    Overview

    The real-time image processing feature of VOD supports scaling and cropping operations, which are detailed below:

    Operation Type

    Detailed Operation

    Scaling

    The width is adjusted to the specified value, and the height changes with it proportionally.

    The height is adjusted to the specified value, and the width changes with it proportionally.

    The long sides are adjusted to the specified length, and the short sides change with them proportionally.

    The short sides are adjusted to the specified length, and the long sides change with them proportionally.

    The image is forcibly scaled to the specified width and height.

    Cropping

    A circle with the specified radius is inscribed from the image.

    A rectangle with the specified height and width is inscribed from the image.

    Compared with traditional image editing, VOD's real-time image processing feature has the following strengths:

    Dimension

    Traditional Image Editing

    Real-Time Image Processing of VOD

    Processing steps

    Multiple steps are required, including download, editing, and upload, which are time-consuming and laborious.

    You can directly complete all image editing processes in the cloud with no need to upload and download images.

    Operation method

    Image editing software is difficult to use and requires a mastery of certain image editing skills.

    You can specify the image editing parameters in the URL in real time, which is easy to get started with.

    Access speed

    Image access and download through cloud storage URLs are slow, affecting the user experience.

    VOD uses CDN to accelerate global image delivery, so that you can get the processed images in very little time.

    Use Cases

    Use Case

    Description

    User profile photo

    User profile photos are generally round or square images with the same resolution. You can use scaling and cropping to generate them.

    Identity document photos

    When a photo of an identity document is taken, it may need to be cropped to retain only the identity information part of the document.

    Image close-up

    When the key part in an image requires a close-up, it needs to be cropped from the image.

    Directions

    For more information, see Real-Time Image Processing.

    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support