v4

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CmykIccProfile []byte = []byte{}/* 557164 elements not displayed */
View Source
var RgbIccProfile []byte = []byte{}/* 560 elements not displayed */

Functions

func AutolevelCommand

func AutolevelCommand(mw *imagick.MagickWand, args string) error

func BrightnessCommand

func BrightnessCommand(mw *imagick.MagickWand, args string) error

func CropCommand

func CropCommand(mw *imagick.MagickWand, args string) error

func FlipFlopCommand

func FlipFlopCommand(mw *imagick.MagickWand, args string) error

func FormatCommand

func FormatCommand(mw *imagick.MagickWand, args string) error

func GrayscaleCommand

func GrayscaleCommand(mw *imagick.MagickWand, args string) error

func InvertCommand

func InvertCommand(mw *imagick.MagickWand, args string) error

func LegacyThumbnailCommand

func LegacyThumbnailCommand(mw *imagick.MagickWand, args string) error

func NewSigner added in v0.3.0

func NewSigner(u *url.URL) (dims.UrlSigner, error)

func QualityCommand

func QualityCommand(mw *imagick.MagickWand, args string) error

func ResizeCommand

func ResizeCommand(mw *imagick.MagickWand, args string) error

func RotateCommand

func RotateCommand(mw *imagick.MagickWand, args string) error

func SepiaCommand

func SepiaCommand(mw *imagick.MagickWand, args string) error

func SharpenCommand

func SharpenCommand(mw *imagick.MagickWand, args string) error

func StripMetadataCommand

func StripMetadataCommand(mw *imagick.MagickWand, args string) error

func ThumbnailCommand

func ThumbnailCommand(mw *imagick.MagickWand, args string) error

Types

type MagickCommand added in v0.3.0

type MagickCommand struct {
	dims.Command
	Operation MagickOperation
}

type MagickOperation added in v0.3.0

type MagickOperation func(mw *imagick.MagickWand, args string) error

type RequestV4

type RequestV4 struct {
	dims.Request
	Timestamp     int32
	TrailingSlash bool
	// contains filtered or unexported fields
}

func NewRequest

func NewRequest(r *http.Request, config dims.Config) *RequestV4

func (*RequestV4) ImageUrl added in v0.3.0

func (r *RequestV4) ImageUrl() string

func (*RequestV4) ProcessCommand added in v0.3.0

func (r *RequestV4) ProcessCommand(command dims.Command) error

func (*RequestV4) ProcessImage added in v0.3.0

func (r *RequestV4) ProcessImage() (string, []byte, error)

ProcessImage will execute the commands on the image.

func (*RequestV4) Sign

func (r *RequestV4) Sign() string

Sign returns a signed string using the MD5 algorithm.

func (*RequestV4) SignUrl added in v0.3.0

func (r *RequestV4) SignUrl() (string, error)

func (*RequestV4) ValidateSignature

func (r *RequestV4) ValidateSignature() bool

ValidateSignature verifies the signature of the image resize is valid.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL