Image importer plugin using stb_image.
Supports the following formats using the stb_
- Windows Bitmap (
*.bmp), only non-1bpp, no RLE
- Graphics Interchange Format (
- Radiance HDR (
- JPEG (
*.jpeg), except for arithmetic encoding
- Portable Graymap (
- Softimage PIC (
- Portable Network Graphics (
- Portable Pixmap (
- Adobe Photoshop (
*.psd), only composited view
- Truevision TGA (
Creates RGB, RGBA, grayscale or grayscale + alpha images with 8 bits per channel. Palleted images are automatically converted to RGB(A).
This plugin depends on the Trade library and is built if
WITH_STBIMAGEIMPORTER is enabled when building Magnum Plugins. To use as a dynamic plugin, you need to load the
"StbImageImporter" plugin from
MAGNUM_PLUGINS_IMPORTER_DIR. To use as a static plugin or as a dependency of another plugin with CMake, you need to request the
StbImageImporter component of the
MagnumPlugins package and link to the
MagnumPlugins::StbImageImporter target. See Downloading and building plugins, Plugin usage with CMake and Loading and using plugins for more information.
This plugins provides
TgaImporter plugins, but note that this plugin doesn't have complete support for all format quirks and the performance might be worse than when using plugin dedicated for given format.
The images are imported with PixelFormat::
1 if the data require it.
CgBI is a proprietary Apple-specific extension to PNG (details here). The importer detects those files and converts BGRA channels back to RGBA.
- class AbstractImporter
- Base for importer plugins.