JPEG image converter plugin.
Creates JPEG (
*.jpeg) files from images with format PixelFormat::
This plugin depends on the Trade and libJPEG libraries and is built if
WITH_JPEGIMAGECONVERTER is enabled when building Magnum Plugins. To use as a dynamic plugin, you need to load the
"JpegImageConverter" plugin from
MAGNUM_PLUGINS_IMAGECONVERTER_DIR. To use as a static plugin or as a dependency of another plugin with CMake, you need to request the
JpegImageConverter component of the
MagnumPlugins package and link to the
MagnumPlugins::JpegImageConverter target. See Downloading and building plugins, Plugin usage with CMake and Loading and using plugins for more information.
While some systems (such as macOS) still ship only with the vanilla libJPEG, you can get a much better performance and/or quality/size ratios by using other implementations:
It's possible to tune various output options through configuration(). See below for all options and their default values:
[configuration] # Compression quality (0 - 1, 1 is the best) jpegQuality=0.8
- class AbstractImageConverter
- Base for image converter plugins.