Documentation
¶
Index ¶
- func LoadImage(r io.Reader, modifiers ...ImageModifier) (image.Image, error)
- type ImageModifier
- type ImageProcessor
- func (i *ImageProcessor) GetBounds() (int, int)
- func (i *ImageProcessor) GetJPEG() ([]byte, error)
- func (i *ImageProcessor) GetPNG() ([]byte, error)
- func (i *ImageProcessor) GetWEBP() ([]byte, error)
- func (i *ImageProcessor) LoadJPEG(r io.Reader) error
- func (i *ImageProcessor) LoadPNG(r io.Reader) error
- func (i *ImageProcessor) LoadWEBP(r io.Reader) error
- func (i *ImageProcessor) Resize(height int, width int)
- type ImageResizer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ImageModifier ¶
ImageModifier defines an image modifier
type ImageProcessor ¶
type ImageProcessor struct {
// contains filtered or unexported fields
}
Load images, apply actions on them and then encode
func (*ImageProcessor) GetBounds ¶
func (i *ImageProcessor) GetBounds() (int, int)
func (*ImageProcessor) GetJPEG ¶
func (i *ImageProcessor) GetJPEG() ([]byte, error)
func (*ImageProcessor) GetPNG ¶
func (i *ImageProcessor) GetPNG() ([]byte, error)
func (*ImageProcessor) GetWEBP ¶
func (i *ImageProcessor) GetWEBP() ([]byte, error)
func (*ImageProcessor) Resize ¶
func (i *ImageProcessor) Resize(height int, width int)
Click to show internal directories.
Click to hide internal directories.