- Documentation
Torch Object Storage
SDK Reference
iOS
Data Processing
Image Processing
Basic Image Processing (iOS SDK)
Image Processing
Basic Image Processing (iOS SDK)
Basic Image Processing (iOS SDK)
TOS supports processing of stored images, including image resizing, image cropping, image watermarking, format conversion, and other image processing operations.
Precautions
- Only JPG, PNG, BMP, GIF, WEBP, and TIFF formats are supported for original images.
- The size of the original image must not exceed 20MB.
- The original image width and height must not exceed 30,000 px, and the total number of pixels 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 resize an image to a height of 100 pixels and then save the processed image locally.
Relevant Documentation
Last updated: 2025.09.25 16:40:50