Supported file formats

The following file formats are supported by Media Handler:

File Extension Mime Type Remarks
jpg, jpeg image/jpeg
png image/png
gif image/gif If rescaled or transformed, rendered as JPEG.
tif, tiff image/tiff Always rendered as JPEG.
svg image/svg+xml Scaling of vector images is done by the browser.
No support for transformations (no cropping, no rotation).

Unit Tests with AEM Mocks

You can use all file formats also when writing unit tests for your application with AEM Mocks.

If you want to use TIFF or SVG images in your unit test, you need to define additional plugin test dependencies on your classpath, see Java ImageIO - Advanced Image File Format Support.

Back to top

Version: 1.9.1-SNAPSHOT. Last Published: 2020-03-24.