meta

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2025 License: MIT Imports: 3 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
	ExifData         []byte
	// 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

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

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

func (*Data) SetICCProfileError

func (md *Data) SetICCProfileError(err error)

type ImageFormat

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