- Documentation
Torch Object Storage
SDK Reference
C++
Data Processing
Image Processing
Basic Image Processing (C++ SDK)
Image Processing
Basic Image Processing (C++ SDK)
Basic Image Processing (C++ SDK)
TOS supports processing of stored images, including image resizing, image cropping, image watermarking, format conversion, and other image processing operations. This article explains how to use the TOS C++ SDK for basic image processing.
Precautions
- The supported formats for original images are limited to JPG, PNG, BMP, GIF, WEBP, and TIFF.
- The original image size must not exceed 20MB.
- The original image width and height must not exceed 30,000 px, and the total pixel count must not exceed 250 million px. For rotation operations, the original image width and height must not exceed 4,096 px.
- The width and height of the scaled image must not exceed 16,384 px, and the total number of pixels must not exceed 16,777,216 px.
Sample Code
The following code demonstrates how to fix the image height at 100px, convert the image format to JPG, rename the image as temp.jpg, and download it to the local computer.
Relevant Documentation
Last updated: 2025.09.25 14:22:48