Skip to main content

Cloud storage upgrade: store, transform, review and find — all in one bucket

CloudBase TeamCloudBase Team
4 min read

Building a mini program or web app with user uploads — a UGC community, e-commerce buyer reviews, AI stickers, document sharing — storing images in cloud storage alone is far from enough. After storing, you still need compression, format conversion, content moderation and search.

CloudBase cloud storage now integrates Cloud Infinite (CI) capabilities. Store your images, documents and audio/video in a bucket, and the platform takes over the rest — processing, moderation and search — no downloading, no service setup, no extra APIs.

The capabilities come in three blocks: data processing, content moderation and smart search. Here's what each gives you and how to use it.

Data processing: transform images without downloading, just append URL parameters

Basic image processing (resize, crop, rotate, format conversion, quality adjustment, blur/sharpen, brightness/contrast) is enabled by default and works out of the box. Just append parameters to the access URL:

# resize 50% + convert to WebP + quality 80
https://your-bucket.cos.ap-region.myqcloud.com/image.jpg?imageMogr2/thumbnail/!50p/format/webp/rquality/80

# center crop 300x400
https://your-bucket.cos.ap-region.myqcloud.com/image.jpg?imageMogr2/crop/300x400/gravity/center

Results are cached by the CDN; a second visit to the same URL hits the cache without recomputing.

Watermarks: text, image or invisible

Text / image watermarks support position, opacity and offset. Invisible watermarks are for copyright tracing — invisible to the eye and don't affect the look.

# text watermark at bottom-right
https://your-bucket.cos.ap-region.myqcloud.com/image.jpg?watermark/2/text/Q2xvdWRCYXNl/fontsize/30/dissolve/80/gravity/southeast/dx/10/dy/10

Extreme compression: half the size on average, same format

Once enabled, images are compressed automatically on access. JPG / static PNG / GIF are all supported, with a ~50% compression ratio and no client-side changes needed.

https://your-bucket.cos.ap-region.myqcloud.com/image.jpg?imageSlim

Advanced compression: AVIF / HEIF / TPG, 90% smaller

Converting to these formats can shrink files to a fraction of the original (PNG to HEIF/AVIF measured at over 95% compression). AVIF suits modern browsers; HEIF suits iOS/Android mobile.

https://your-bucket.cos.ap-region.myqcloud.com/image.jpg?imageMogr2/format/avif

Document processing: online preview for PDF / Word / Excel / PPT

Append a parameter to convert a document into an HTML preview page (with copy protection, watermark and language switch), or convert page-by-page into PNG/JPG for covers and thumbnails.

# convert to HTML preview (no copy + watermark)
https://your-bucket.cos.ap-region.myqcloud.com/test.pptx?ci-process=doc-preview&dstType=html&copyable=0&htmlwaterword=dGVzdAo

# page 1 as PNG
https://your-bucket.cos.ap-region.myqcloud.com/document.pdf?ci-process=doc-preview&page=1&dstType=png

Limits: a single document ≤ 200MB / 5000 pages; encrypted documents aren't supported for preview; private-read files need an extra sign parameter.

Content moderation: UGC compliance, handled by the platform

The worst part of UGC is content that shouldn't be there. Configure automatic moderation for a bucket to block non-compliant content and skip building your own moderation pipeline.

Five moderation types are supported — image, video, audio, text and document — covering pornographic, political, violent, illegal and advertising content. Run incremental moderation on new uploads or a full audit on historical files; hits can trigger callback notifications and automatic freezing.

Use cases: UGC, social, e-commerce, live streaming and other businesses that need content-safety coverage. Configure it in "console → Cloud storage → Content moderation → Configure", pick the moderation type and scenario, set callbacks, save — it's live.

Smart search: query massive files by metadata

Combine queries on file name, size, type, creation time, custom tags and other metadata, with operators like =, !=, >, contains, starts with, plus sorting and aggregation.

The index is managed by Cloud Infinite and doesn't consume your cloud storage space; files are searchable about 1–10 minutes after upload.

Basic metadata search is what's open today.

How to get started

  1. On first use, go through each module's "Advanced config" to reach the COS console and enable Cloud Infinite. Normal path: CloudBase platform → Cloud storage → Advanced capabilities
  2. Data processing - basic image processing is enabled by default
  3. Enable other capabilities as needed:
    • Smart search (if the COS console lacks the "Smart search" menu, your account isn't whitelisted — submit a COS ticket to apply)
    • Content moderation (incremental / full audit)
    • Data processing (extreme compression, advanced compression / document processing)
  4. Effective immediately once enabled — append URL parameters, no SDK changes
  5. These incremental capabilities are currently billed separately by Cloud Infinite (CI) and aren't included in the cloud storage plan; unified CloudBase billing is coming later

In one sentence

Cloud storage is no longer just storage — files stored in CloudBase get processing, moderation and search in the same bucket, saving you three separate external services.

Build your next app on CloudBase

An all-in-one backend covering database, cloud functions, static hosting, and AI capabilities.