image

package
v0.0.0-...-dffa276 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: MIT Imports: 11 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyFilter

func ApplyFilter(src image.Image, g *gift.GIFT) image.Image

func GenerateURL

func GenerateURL(imageURLPrefix string, types string, id int64, name string) string

func LargeFilter

func LargeFilter() *gift.GIFT

func MediumFilter

func MediumFilter() *gift.GIFT

func ParseGif

func ParseGif(wb *bytes.Buffer, r io.Reader, g *gift.GIFT) error

func ParseImage

func ParseImage(imageFormat string, r io.Reader, g *gift.GIFT) (*bytes.Buffer, error)

func ParseJpeg

func ParseJpeg(wb *bytes.Buffer, r io.Reader, g *gift.GIFT) error

func ParsePng

func ParsePng(wb *bytes.Buffer, r io.Reader, g *gift.GIFT) error

func ResizeFilter

func ResizeFilter(width int, height int) *gift.GIFT

func ResizeGif

func ResizeGif(wb *bytes.Buffer, r io.Reader, g *gift.GIFT, width int, height int) error

func ResizeJpeg

func ResizeJpeg(wb *bytes.Buffer, r io.Reader, g *gift.GIFT, width int, height int) error

func ResizeLarge

func ResizeLarge(imageFormat string, r io.Reader) (*bytes.Buffer, error)

func ResizeMedium

func ResizeMedium(imageFormat string, r io.Reader) (*bytes.Buffer, error)

func ResizePng

func ResizePng(wb *bytes.Buffer, r io.Reader, g *gift.GIFT, width int, height int) error

func ResizeThumbnail

func ResizeThumbnail(imageFormat string, r io.Reader) (*bytes.Buffer, error)

func ThumbnailFilter

func ThumbnailFilter() *gift.GIFT

Types

This section is empty.

Jump to

Keyboard shortcuts

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