Service | Feature | Description |
Basic Image Processing | Proportional scaling, scaling image to target width and height, and more | |
| Cut (regular cropping), crop (scaling and cropping), iradius (inscribed circle cropping), and scrop (smart cropping) | |
| Adaptive rotation and common rotation | |
| Format conversion, GIF optimization, and progressive display | |
| Changes the quality of images in JPG and WEBP formats | |
| Blurs images | |
| Sharpens images | |
| Watermarking | |
| Obtaining image information | |
| Includes EXIF data | |
| Performs quick format conversion, scaling, and cropping to generate thumbnails | |
| Sets image styles to easily manage images for different purposes |
List<PicOperationRule> rules = new LinkedList<>();// Add a rule to convert the image to PNG format, and the processed image will be saved in a bucket with a location identifier in the format:// examplepngobjectrules.add(new PicOperationRule("examplepngobject", "imageView2/format/png"));PicOperations picOperations = new PicOperations(true, rules);PutObjectRequest putObjectRequest = new PutObjectRequest(bucket, cosPath, srcPath);putObjectRequest.setPicOperations(picOperations);// If the upload is successful, you will get two images: the original and the processed imagesCOSXMLUploadTask cosxmlUploadTask = transferManager.upload(putObjectRequest, uploadId);
Was this page helpful?