Understanding Original Image and Video Sizing Limits on TwicPics
TwicPics strives to offer optimal performance and quality when processing your images and videos. However, to ensure this, we've established certain processing limits for images under our business plans. Here's a breakdown of these limits and their implications
Processing Limits
For our business plans, the limits are:
Image Size Limit: 20MB
Image Resolution Limit: 36 million pixels (width x height)
Video Size Limit: 36MB
Video Resolution Limit: 36 million pixels (width x height)
Consequences of Exceeding Limits
If a request involving an original asset surpasses either the size or resolution limit, TwicPics will return a 502 error with the accompanying message:
For image size exceedance:
source: file is too big (max is 20,971,520 bytes)
For video size exceedance:
source: file is too big (max is 37,748,736 bytes)
For image or video resolution exceedance:
source: image is too big (max is 36,000,000 pixels)
Such limits are in place primarily to prevent potential timeouts, server overloads, and to control storage costs.
Recommendations for Master Files
It's crucial to strike a balance between quality and size when choosing the format of your master files. We recommend adopting moderate master file formats, like 3000x3000 pixels ranging between 5 to 10MB. This ensures high quality for end-users without hitting our limits.
For an in-depth guide on this, refer to: Recommended format for original images (master image as input).
Handling User-Uploaded Content
For content uploaded by users, consider utilizing frontend APIs (like the canvas API) to reformat the image to a more manageable size before uploading to your servers.
For a practical demonstration, check this code implementation example.
โ