meta

package
v0.35.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package meta and its subpackages provide support for embedded image metadata.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	Format           ImageFormat
	PixelWidth       uint32
	PixelHeight      uint32
	BitsPerComponent uint32
	// contains filtered or unexported fields
}

Data represents the metadata for an image.

func (*Data) ICCProfile

func (md *Data) ICCProfile() (*icc.Profile, error)

ICCProfile returns an extracted ICC profile from this metadata.

An error is returned if the ICC profile could not be correctly parsed.

If no profile data was found, nil is returned without an error.

func (*Data) ICCProfileData added in v0.22.0

func (md *Data) ICCProfileData() ([]byte, error)

ICCProfile returns the raw ICC profile data from this metadata.

An error is returned if the ICC profile could not be correctly extracted from the image.

If no profile data was found, nil is returned without an error.

func (*Data) SetICCProfileData added in v0.24.0

func (md *Data) SetICCProfileData(data []byte)

func (*Data) SetICCProfileError added in v0.24.0

func (md *Data) SetICCProfileError(err error)

type ImageFormat added in v0.24.0

type ImageFormat string

Directories

Path Synopsis
Package autometa provides support for embedded metadata and automatic detection of image formats.
Package autometa provides support for embedded metadata and automatic detection of image formats.
Package binary provides common utilities for working with binary data streams.
Package binary provides common utilities for working with binary data streams.
Package icc provides support for working with ICC colour profile data.
Package icc provides support for working with ICC colour profile data.
Package jpegmeta provides support for working with embedded JPEG metadata.
Package jpegmeta provides support for working with embedded JPEG metadata.
Package pngmeta provides support for working with embedded PNG metadata.
Package pngmeta provides support for working with embedded PNG metadata.
Package webpmeta provides support for working with embedded WebP metadata.
Package webpmeta provides support for working with embedded WebP metadata.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL