When you publish data in a WMS or WMTS service, clients can request a map or tile for that data in one of the image output formats listed in the service capabilities. By default, the supported image output formats include:

image/jpeg

The JPEG format provides fast lossy compression, resulting in a small payload and quick loading times. It’s ideal for imagery or maps without transparency, such as aerial photographs or satellite imagery. However, JPEG doesn’t support transparency, and the lossy compression may reduce image quality slightly.

image/png

The PNG format supports lossless compression, ensuring high-quality images without sacrificing data integrity. It supports transparency, making it suitable for overlay maps or maps that require transparent backgrounds. PNG is typically used for maps with vector data, text, or overlays, but its file size is larger compared to JPEG, which can impact performance.

image/jpgpng

With this option, the LuciadFusion service automatically chooses either JPEG or PNG based on the content of the requested map or tile. If it detects transparency, the service outputs the map or tile in PNG format to preserve the transparency. If it doesn’t detect transparency, it defaults to JPEG, taking advantage of its smaller file size and faster loading times. This dynamic behavior allows users to optimize both transparency and performance without manually choosing a format.

image/gif

The GIF format is limited to 256 colors, making it less suitable for complex or detailed images. It supports transparency, but it’s rarely used in modern geospatial applications due to its color limitations and outdated compression methods. GIF is occasionally used for simple maps or legacy systems but isn’t recommended for most WMS/WMTS use cases.

image/geotiff (WMS only)

The GeoTIFF format embeds the georeferencing of the map, its bounds and coordinate reference system, directly in the file alongside the pixel data. This makes it useful for clients that want to use the retrieved map as georeferenced data, rather than just an image to display. This format is only available for WMS. It doesn’t apply to WMTS: a WMTS tile’s position in its predefined tile matrix already implies its georeferencing, so embedding it again in every individual tile wouldn’t add value.

You can also add your own image output format to LuciadFusion services. For more information, see How to add your own image output format.