Documentation
¶
Index ¶
- func ParallelProcessURIWithInstructionSet(cfg *iiifconfig.Config, driver iiifdriver.Driver, pr Processor, ...) (map[string]interface{}, error)
- func TransformURIWithInstructions(u iiifuri.URI, i IIIFInstructions, config *iiifconfig.Config, ...) (iiifuri.URI, iiifimage.Image, error)
- type IIIFInstructionSet
- func ReadInstructions(str_instructions string) (IIIFInstructionSet, error)
- func ReadInstructionsBytes(body []byte) (IIIFInstructionSet, error)
- func ReadInstructionsFromBucket(ctx context.Context, bucket *blob.Bucket, fname string) (IIIFInstructionSet, error)
- func ReadInstructionsReader(fh io.Reader) (IIIFInstructionSet, error)
- type IIIFInstructions
- type IIIFProcessor
- type Label
- type Processor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParallelProcessURIWithInstructionSet ¶
func ParallelProcessURIWithInstructionSet(cfg *iiifconfig.Config, driver iiifdriver.Driver, pr Processor, instruction_set IIIFInstructionSet, u iiifuri.URI) (map[string]interface{}, error)
Types ¶
type IIIFInstructionSet ¶
type IIIFInstructionSet map[Label]IIIFInstructions
func ReadInstructions ¶
func ReadInstructions(str_instructions string) (IIIFInstructionSet, error)
func ReadInstructionsBytes ¶
func ReadInstructionsBytes(body []byte) (IIIFInstructionSet, error)
func ReadInstructionsReader ¶
func ReadInstructionsReader(fh io.Reader) (IIIFInstructionSet, error)
type IIIFInstructions ¶
type IIIFInstructions struct { Region string `json:"region"` Size string `json:"size"` Rotation string `json:"rotation"` Quality string `json:"quality"` Format string `json:"format"` }
func EnsureInstructions ¶
func EnsureInstructions(i IIIFInstructions) IIIFInstructions
type IIIFProcessor ¶
type IIIFProcessor struct { Processor // contains filtered or unexported fields }
func (*IIIFProcessor) ProcessURIWithInstructions ¶
func (pr *IIIFProcessor) ProcessURIWithInstructions(u iiifuri.URI, label Label, i IIIFInstructions) (iiifuri.URI, iiifimage.Image, error)
type Processor ¶
type Processor interface {
ProcessURIWithInstructions(iiifuri.URI, Label, IIIFInstructions) (iiifuri.URI, iiifimage.Image, error)
}
func NewIIIFProcessor ¶
func NewIIIFProcessor(config *iiifconfig.Config, driver iiifdriver.Driver) (Processor, error)
func NewIIIFProcessorWithCaches ¶
func NewIIIFProcessorWithCaches(config *iiifconfig.Config, driver iiifdriver.Driver, source_cache iiifcache.Cache, dest_cache iiifcache.Cache) (Processor, error)
Click to show internal directories.
Click to hide internal directories.