Dependent storage used for metadatas. All metadatas of a given kind are unique within this container.
The current data structure is based on list, so bad performances can be expected.
:: a typeCtrl KGHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27
ModuleJuicyPixels-3.3.8Haskell2010
This module expose a common "metadata" storage for various image type. Different format can generate different metadatas, and write only a part of them.
Since version 3.2.5
Dependent storage used for metadatas. All metadatas of a given kind are unique within this container.
The current data structure is based on list, so bad performances can be expected.
Store various additional information about an image. If something is not recognized, it can be stored in an unknown tag.
DpiX Dot per inch on this x axis.
DpiY Dot per inch on this y axis.
Width Image width in pixel. Relying on the metadata for this information can avoid the full decompression of the image. Ignored for image writing.
Height Image height in pixels. Relying on the metadata for this information can void the full decompression of the image. Ignored for image writing.
ColorProfile An unparsed ICC color profile. Currently only supported by
the Bitmap format.
Unknown unlikely to be decoded, but usefull for metadata writing
Exif Exif tag and associated data.
Gamma :: Keys DoubleColorSpace :: Keys ColorSpaceFormat :: Keys SourceFormatDpiX :: Keys WordDpiY :: Keys WordWidth :: Keys WordHeight :: Keys WordTitle :: Keys [Char]Description :: Keys [Char]Author :: Keys [Char]Copyright :: Keys [Char]Software :: Keys [Char]Comment :: Keys [Char]Disclaimer :: Keys [Char]Source :: Keys [Char]Warning :: Keys [Char]Exif :: !ExifTag -> Keys ExifDataUnknown :: !String -> Keys ValueElement describing a metadata and it's (typed) associated value.
Type describing the original file format of the file.
Eq SourceFormatDefined in JuicyPixels-3.3.8 · Codec.Picture.MetadataShow SourceFormatDefined in JuicyPixels-3.3.8 · Codec.Picture.MetadataNFData SourceFormatDefined in JuicyPixels-3.3.8 · Codec.Picture.MetadataThe same color values may result in slightly different colors on different devices. To get consistent colors accross multiple devices we need a way of mapping color values from a source device into their equivalents on the target device.
The solution is essentially to define, for each device, a family of mappings that convert between device colors and standard CIEXYZ or CIELAB colors. The collection of mappings for a device is known as the 'color-profile' of that device, and each color-profile can be thought of as describing a 'color-space'.
If we know the color-space of the input pixels, and the color space of the output device, then we can convert the colors in the image to their equivalents on the output device.
JuicyPixels does not parse color-profiles or attempt to perform color correction.
The following color space types are recognised:
sRGB: Standard RGB color space.
Windows BMP color space: Color space information embedded within a V4 Windows BMP file.
ICC profile: An ICC color profile.
Eq ColorSpaceDefined in JuicyPixels-3.3.8 · Codec.Picture.MetadataShow ColorSpaceDefined in JuicyPixels-3.3.8 · Codec.Picture.MetadataNFData ColorSpaceDefined in JuicyPixels-3.3.8 · Codec.Picture.MetadataSearch a metadata with the given key.
Empty metadatas. Favor mempty
Insert an element in the metadatas, if an element with the same key is present, it is overwritten.
Remove an element of the given keys from the metadatas. If not present does nothing.
Create metadatas with a single element.
Strict left fold of the metadatas
foldMap equivalent for metadatas.
Create metadatas indicating the resolution, with DpiX == DpiY
Create metadatas holding width and height information.
Create simple metadatas with Format, Width & Height
Create simple metadatas with Format, Width, Height, DpiX & DpiY
Extract all Exif specific metadatas
Conversion from dpm to dpi
Conversion from dpi to dpm
Conversion dpcm -> dpi