Back to godoc.org

Package images

v1.6.1
Latest Go to latest

The latest major version is .

Published: Jul 9, 2019 | License: AGPL-3.0 | Module: github.com/EngineerIG/cells

Overview

Package images provides default implementation of image related tasks.

Index

Constants

const (
	METADATA_EXIF               = "ImageExif"
	METADATA_GEOLOCATION        = "GeoLocation"
	METADATA_COMPAT_ORIENTATION = "image_exif_orientation"
)
const (
	METADATA_THUMBNAILS       = "ImageThumbnails"
	METADATA_IMAGE_DIMENSIONS = "ImageDimensions"

	METADATA_COMPAT_IS_IMAGE                  = "is_image"
	METADATA_COMPAT_IMAGE_WIDTH               = "image_width"
	METADATA_COMPAT_IMAGE_HEIGHT              = "image_height"
	METADATA_COMPAT_IMAGE_READABLE_DIMENSIONS = "readable_dimension"
)

type CleanThumbsTask

type CleanThumbsTask struct {
	Client client.Client
}

func (*CleanThumbsTask) GetName

func (c *CleanThumbsTask) GetName() string

GetName returns this action unique identifier.

func (*CleanThumbsTask) Init

func (c *CleanThumbsTask) Init(job *jobs.Job, cl client.Client, action *jobs.Action) error

Init passes parameters to the action.

func (*CleanThumbsTask) Run

func (c *CleanThumbsTask) Run(ctx context.Context, channels *actions.RunnableChannels, input jobs.ActionMessage) (jobs.ActionMessage, error)

Run the actual action code

type ExifProcessor

type ExifProcessor struct {
	// contains filtered or unexported fields
}

func (*ExifProcessor) ExtractExif

func (e *ExifProcessor) ExtractExif(ctx context.Context, node *tree.Node) (*exif.Exif, error)

func (*ExifProcessor) GetName

func (e *ExifProcessor) GetName() string

GetName returns this action unique identifier

func (*ExifProcessor) Init

func (e *ExifProcessor) Init(job *jobs.Job, cl client.Client, action *jobs.Action) error

Init passes parameters to the action

func (*ExifProcessor) Run

func (e *ExifProcessor) Run(ctx context.Context, channels *actions.RunnableChannels, input jobs.ActionMessage) (jobs.ActionMessage, error)

Run the actual action code

type ThumbnailData

type ThumbnailData struct {
	Format string `json:"format"`
	Size   int    `json:"size"`
	Id     string `json:"id"`
}

type ThumbnailExtractor

type ThumbnailExtractor struct {
	Client client.Client
	// contains filtered or unexported fields
}

func (*ThumbnailExtractor) GetName

func (t *ThumbnailExtractor) GetName() string

GetName returns this action unique identifier.

func (*ThumbnailExtractor) Init

func (t *ThumbnailExtractor) Init(job *jobs.Job, cl client.Client, action *jobs.Action) error

Init passes parameters to the action.

func (*ThumbnailExtractor) Run

func (t *ThumbnailExtractor) Run(ctx context.Context, channels *actions.RunnableChannels, input jobs.ActionMessage) (jobs.ActionMessage, error)

Run the actual action code.

type ThumbnailsMeta

type ThumbnailsMeta struct {
	Processing bool
	Thumbnails []ThumbnailData `json:"thumbnails"`
}

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier