Get Pronto supports a wide range of file formats for storage and delivery. Image files additionally support transformations like resizing, format conversion, and optimization.
Get Pronto automatically detects file types using both file extensions and content analysis. When uploading files, you can optionally specify a MIME type to override the automatic detection:
// Override MIME type during upload
const result = await client.files.upload(file, {
mimeType: "image/png"
});
25MB
Static and animated image formats
MIME Type | Extensions | Notes |
---|---|---|
image/jpeg | .jpg, .jpeg, .jpe, .jif, .jfif | Supports quality optimization |
image/png | .png | Supports transparency |
image/gif | .gif | Supports animation |
image/webp | .webp | Modern format with superior compression |
image/svg+xml | .svg | Vector format |
image/tiff | .tiff, .tif | |
image/bmp | .bmp | |
image/heic | .heic | High-efficiency format |
image/avif | .avif | Next-gen format with best compression |
100MB
Common video formats
MIME Type | Extensions | Notes |
---|---|---|
video/mp4 | .mp4, .m4v | Most widely supported |
video/webm | .webm | Open format with good compression |
video/ogg | .ogv | |
video/quicktime | .mov | |
video/x-msvideo | .avi | |
video/x-matroska | .mkv | Container format |
video/3gpp | .3gp | Mobile-optimized |
video/x-ms-wmv | .wmv | |
video/mpeg | .mpeg, .mpg |
10MB
Text-based formats
MIME Type | Extensions |
---|---|
application/json | .json |
text/plain | .txt |
50MB
Compressed file formats
MIME Type | Extensions | Notes |
---|---|---|
application/zip | .zip | |
application/x-zip-compressed | .zip | Alternative ZIP MIME type |
application/x-7z-compressed | .7z | |
application/x-rar-compressed | .rar | |
application/gzip | .gz, .gzip | |
application/x-tar | .tar |
When using image transformations, Get Pronto can automatically optimize the output format based on browser support and quality requirements. You can either specify a format explicitly or let the system choose the best format:
// Explicit WebP conversion
const webpUrl = await client.images
.transform(fileId)
.format("webp")
.toURL();
// Automatic format optimization
const optimizedUrl = await client.images
.transform(fileId)
.toURL(); // Format chosen based on Accept header
Continue exploring our documentation with these related topics: