ImageKit supports the following image formats for resizing and automatic compression:
Supported image types for optimizations and transformations (input and output)
JPG
PNG
GIF
SVG
WEBP
AVIF
HEIF is also supported as an input format for images and is converted to a web-safe format for delivery if automatic format optimization is turned on. Apart from above image formats, you can use ImageKit to deliver other image formats without optimizations and transformations.
Supported video formats (input)
MOV
MP4
Supported video formats (output)
MP4
WebM
Supported non-image extensions
Other extensions can be added to the following list for enterprise users.
"zip", "pdf", "js", "css", "txt", "woff", "woff2", "ttf", "otf", "eot", "json" , "ico", "php", "mov", "mp4", "webm", "swf", "ts", "m3u8", "doc", "docx", "ppt", "pptx", "eps", "psd" , "xls", "xlsx", "bmp", "rtf", "ept", "mp3", "m4a", "xml", "rss", "html", "mjs", "tiff", "tif" , "usdz"
Different ways of uploading files to the Media Library
The Media Library comes with a very easy to use interface to upload files. You can simply drag and drop the files in the Media Library section in the dashboard. The file would automatically start uploading. Once the file upload is complete, you will get a URL for that file.
The other way to upload files is via our upload APIs. These APIs provide you with a programmatic method to upload images and files to the Media Library. There are separate APIs to upload images and files to the Media Library. You get the file URL and other necessary information in the API response if the upload is successful. These APIs have been discussed in further detail in the Upload section of this documentation.
The formats allowed for upload to the Media Library can be found here.