Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
Error represents an error including a code.
type ExifData ¶
type ExifData struct {
// contains filtered or unexported fields
}
ExifData wraps the respective C++ structure.
func (*ExifData) Iterator ¶
func (d *ExifData) Iterator() *ExifDatumIterator
Iterator returns a new ExifDatumIterator to iterate over all Exif data.
type ExifDatum ¶
type ExifDatum struct {
// contains filtered or unexported fields
}
ExifDatum wraps the respective C++ structure.
type ExifDatumIterator ¶
type ExifDatumIterator struct {
// contains filtered or unexported fields
}
ExifDatumIterator wraps the respective C++ structure.
func (*ExifDatumIterator) HasNext ¶
func (i *ExifDatumIterator) HasNext() bool
HasNext returns true as long as the iterator has another datum to deliver.
func (*ExifDatumIterator) Next ¶
func (i *ExifDatumIterator) Next() *ExifDatum
Next returns the next ExifDatum of the iterator or nil if iterator has reached the end.
type Image ¶
type Image struct {
// contains filtered or unexported fields
}
Image wraps the respective C++ structure.
func Open ¶
Open opens an image file from the filesystem and returns a pointer to the corresponding Image object, but does not read the Metadata. Start the parsing with a call to ReadMetadata().
func OpenBytes ¶
OpenBytes opens a byte slice with image data and returns a pointer to the corresponding Image object, but does not read the Metadata. Start the parsing with a call to ReadMetadata().
func (*Image) GetExifData ¶
GetExifData returns the Exif data of the image.
func (*Image) GetIptcData ¶
GetIptcData returns the IPTC data of the image.
func (*Image) GetXmpData ¶
GetXmpData returns the XmpData of an Image.
func (*Image) ICCProfile ¶
ICCProfile returns the ICC profile or nil if the image doesn't has one.
func (*Image) PixelHeight ¶
PixelHeight returns the height of the image in pixels.
func (*Image) PixelWidth ¶
PixelWidth returns the width of the image in pixels.
func (*Image) ReadMetadata ¶
ReadMetadata reads the metadata of an Image.
type IptcData ¶
type IptcData struct {
// contains filtered or unexported fields
}
IptcData wraps the respective C++ structure.
func (*IptcData) Iterator ¶
func (d *IptcData) Iterator() *IptcDatumIterator
Iterator returns a new IptcDatumIterator to iterate over all IPTC data.
type IptcDatum ¶
type IptcDatum struct {
// contains filtered or unexported fields
}
IptcDatum wraps the respective C++ structure.
type IptcDatumIterator ¶
type IptcDatumIterator struct {
// contains filtered or unexported fields
}
IptcDatumIterator wraps the respective C++ structure.
func (*IptcDatumIterator) HasNext ¶
func (i *IptcDatumIterator) HasNext() bool
HasNext returns true as long as the iterator has another datum to deliver.
func (*IptcDatumIterator) Next ¶
func (i *IptcDatumIterator) Next() *IptcDatum
Next returns the next IptcDatum of the iterator or nil if iterator has reached the end.