Documentation ¶
Overview ¶
Package images provides default implementation of image related tasks.
Index ¶
- Constants
- type CleanThumbsTask
- func (c *CleanThumbsTask) GetDescription(lang ...string) actions.ActionDescription
- func (c *CleanThumbsTask) GetName() string
- func (c *CleanThumbsTask) GetParametersForm() *forms.Form
- func (c *CleanThumbsTask) Init(job *jobs.Job, cl client.Client, action *jobs.Action) error
- func (c *CleanThumbsTask) Run(ctx context.Context, channels *actions.RunnableChannels, ...) (jobs.ActionMessage, error)
- type ExifProcessor
- func (e *ExifProcessor) ExtractExif(ctx context.Context, node *tree.Node) (*exif.Exif, error)
- func (e *ExifProcessor) GetDescription(lang ...string) actions.ActionDescription
- func (e *ExifProcessor) GetName() string
- func (e *ExifProcessor) GetParametersForm() *forms.Form
- func (e *ExifProcessor) Init(job *jobs.Job, cl client.Client, action *jobs.Action) error
- func (e *ExifProcessor) Run(ctx context.Context, channels *actions.RunnableChannels, ...) (jobs.ActionMessage, error)
- type ThumbnailData
- type ThumbnailExtractor
- func (t *ThumbnailExtractor) GetDescription(_ ...string) actions.ActionDescription
- func (t *ThumbnailExtractor) GetName() string
- func (t *ThumbnailExtractor) GetParametersForm() *forms.Form
- func (t *ThumbnailExtractor) Init(_ *jobs.Job, cl client.Client, action *jobs.Action) error
- func (t *ThumbnailExtractor) Run(ctx context.Context, _ *actions.RunnableChannels, input jobs.ActionMessage) (jobs.ActionMessage, error)
- type ThumbnailsMeta
Constants ¶
View Source
const ( MetadataExif = "ImageExif" MetadataGeolocation = "GeoLocation" MetadataCompatOrientation = "image_exif_orientation" )
View Source
const ( MetadataThumbnails = "ImageThumbnails" MetadataImageDimensions = "ImageDimensions" MetadataCompatIsImage = "is_image" MetadataCompatImageWidth = "image_width" MetadataCompatImageHeight = "image_height" MetadataCompatImageReadableDimensions = "readable_dimension" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CleanThumbsTask ¶
func (*CleanThumbsTask) GetDescription ¶
func (c *CleanThumbsTask) GetDescription(lang ...string) actions.ActionDescription
GetDescription returns action description
func (*CleanThumbsTask) GetName ¶
func (c *CleanThumbsTask) GetName() string
GetName returns this action unique identifier.
func (*CleanThumbsTask) GetParametersForm ¶
func (c *CleanThumbsTask) GetParametersForm() *forms.Form
GetParametersForm returns a UX form
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 (*ExifProcessor) GetDescription ¶
func (e *ExifProcessor) GetDescription(lang ...string) actions.ActionDescription
GetDescription returns action description
func (*ExifProcessor) GetName ¶
func (e *ExifProcessor) GetName() string
GetName returns this action unique identifier
func (*ExifProcessor) GetParametersForm ¶
func (e *ExifProcessor) GetParametersForm() *forms.Form
GetParametersForm returns a UX form
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 ThumbnailExtractor ¶
func (*ThumbnailExtractor) GetDescription ¶
func (t *ThumbnailExtractor) GetDescription(_ ...string) actions.ActionDescription
GetDescription returns action description
func (*ThumbnailExtractor) GetName ¶
func (t *ThumbnailExtractor) GetName() string
GetName returns this action unique identifier.
func (*ThumbnailExtractor) GetParametersForm ¶
func (t *ThumbnailExtractor) GetParametersForm() *forms.Form
GetParametersForm returns a UX form
func (*ThumbnailExtractor) Run ¶
func (t *ThumbnailExtractor) Run(ctx context.Context, _ *actions.RunnableChannels, input jobs.ActionMessage) (jobs.ActionMessage, error)
Run the actual action code.
type ThumbnailsMeta ¶
type ThumbnailsMeta struct { Processing bool Thumbnails []ThumbnailData `json:"thumbnails"` }
Click to show internal directories.
Click to hide internal directories.