HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

ModuleJuicyPixels-3.3.8Haskell2010

Codec.Picture.Metadata

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

  • 6 types
  • 15 values
  • PackageJuicyPixels-3.3.8
  • Exports21
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceMetadata.hs

Types

6 declarations
newtypenewtype Metadatas
#

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.

Instances4Show, Semigroup, Monoid, NFData
datadata Keys a where
#

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.

Instances4Eq, Show, NFData
  • Eq (Keys a)Defined in JuicyPixels-3.3.8 · Codec.Picture.Metadata
  • Show (Elem Keys)Defined in JuicyPixels-3.3.8 · Codec.Picture.Metadata
  • Show (Keys a)Defined in JuicyPixels-3.3.8 · Codec.Picture.Metadata
  • NFData (Elem Keys)Defined in JuicyPixels-3.3.8 · Codec.Picture.Metadata
datadata Value
#

Encode values for unknown information

Instances3Eq, Show, NFData
  • Eq ValueDefined in JuicyPixels-3.3.8 · Codec.Picture.Metadata
  • Show ValueDefined in JuicyPixels-3.3.8 · Codec.Picture.Metadata
  • NFData ValueDefined in JuicyPixels-3.3.8 · Codec.Picture.Metadata
datadata Elem (k :: Type -> Type)
#

Element describing a metadata and it's (typed) associated value.

Constructors

Instances2Show, NFData
  • Show (Elem Keys)Defined in JuicyPixels-3.3.8 · Codec.Picture.Metadata
  • NFData (Elem Keys)Defined in JuicyPixels-3.3.8 · Codec.Picture.Metadata
datadata ColorSpace
#

The 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.

Instances3Eq, Show, NFData

Functions

5 declarations

Folding

2 declarations

Helper functions

5 declarations

Conversion functions

3 declarations