Versions in this module Expand all Collapse all v1 v1.3.5 Oct 25, 2019 Changes in this version + func ApplyCustomTransformations(t *Transformation, im Image) error + func DitherImage(im Image) error + func GolangImageToBytes(goimg image.Image, content_type string) ([]byte, error) + func GolangImageToIIIFImage(goimg image.Image, im Image) error + func IIIFImageToGolangImage(im Image) (image.Image, error) + func PrimitiveImage(im Image, opts PrimitiveOptions) error + type Dimensions interface + Height func() int + Width func() int + type FormatInstruction struct + Format string + type GolangImageDimensions struct + func (dims *GolangImageDimensions) Height() int + func (dims *GolangImageDimensions) Width() int + type Image interface + Body func() []byte + ContentType func() string + Dimensions func() (Dimensions, error) + Format func() string + Identifier func() string + Rename func(string) error + Transform func(*Transformation) error + Update func([]byte) error + func NewImageFromConfig(config *iiifconfig.Config, id string) (Image, error) + func NewImageFromConfigWithCache(config *iiifconfig.Config, cache iiifcache.Cache, id string) (Image, error) + func NewImageFromConfigWithSource(config *iiifconfig.Config, source iiifsource.Source, id string) (Image, error) + type PrimitiveOptions struct + Alpha int + Animated bool + Iterations int + Mode int + Size int + type RegionInstruction struct + Height int + SmartCrop bool + Width int + X int + Y int + type RotationInstruction struct + Angle int64 + Flip bool + NoAutoRotate bool + type SizeInstruction struct + Force bool + Height int + Width int + type Transformation struct + Format string + Quality string + Region string + Rotation string + Size string + func NewTransformation(level iiiflevel.Level, region string, size string, rotation string, ...) (*Transformation, error) + func (t *Transformation) FormatInstructions(im Image) (*FormatInstruction, error) + func (t *Transformation) HasTransformation() bool + func (t *Transformation) RegionInstructions(im Image) (*RegionInstruction, error) + func (t *Transformation) RotationInstructions(im Image) (*RotationInstruction, error) + func (t *Transformation) SizeInstructions(im Image) (*SizeInstruction, error) + func (t *Transformation) ToURI(id string) (string, error) + type VIPSDimensions struct + func (d *VIPSDimensions) Height() int + func (d *VIPSDimensions) Width() int + type VIPSImage struct + func NewVIPSImageFromConfigWithSource(config *iiifconfig.Config, src iiifsource.Source, id string) (*VIPSImage, error) + func (im *VIPSImage) Body() []byte + func (im *VIPSImage) ContentType() string + func (im *VIPSImage) Dimensions() (Dimensions, error) + func (im *VIPSImage) Format() string + func (im *VIPSImage) Identifier() string + func (im *VIPSImage) Rename(id string) error + func (im *VIPSImage) Transform(t *Transformation) error + func (im *VIPSImage) Update(body []byte) error Other modules containing this package github.com/go-iiif/go-iiif/v2 github.com/go-iiif/go-iiif/v3 github.com/go-iiif/go-iiif/v4 github.com/go-iiif/go-iiif/v5 github.com/go-iiif/go-iiif/v6