Documentation ¶
Index ¶
- Constants
- func AllPackageEnums() []enums.Enum
- func CropImage(img image.Image, px float64, py float64, pw float64, ph float64) (image.Image, error)
- func EncodeImage(img image.Image, compression ImageCompresson) (bytes.Buffer, string, error)
- func ImageCompressonValuesMeta() []enums.EnumMetaValue
- func ImageFitValuesMeta() []enums.EnumMetaValue
- func ObjectFitImage(img image.Image, bbw float64, bbh float64, fit ImageFit, fillColor color.Color) (image.Image, error)
- func VerifyAndDecodeImage(data io.Reader, mime string) (image.Image, error)
- type ImageCompresson
- func (e ImageCompresson) Meta() enums.EnumMetaValue
- func (e ImageCompresson) PackageName() string
- func (e ImageCompresson) String() string
- func (e ImageCompresson) TypeName() string
- func (e ImageCompresson) Valid() bool
- func (e ImageCompresson) Values() []ImageCompresson
- func (e ImageCompresson) ValuesAny() []any
- func (e ImageCompresson) ValuesMeta() []enums.EnumMetaValue
- func (e ImageCompresson) VarName() string
- type ImageCrop
- type ImageFit
- func (e ImageFit) Meta() enums.EnumMetaValue
- func (e ImageFit) PackageName() string
- func (e ImageFit) String() string
- func (e ImageFit) TypeName() string
- func (e ImageFit) Valid() bool
- func (e ImageFit) Values() []ImageFit
- func (e ImageFit) ValuesAny() []any
- func (e ImageFit) ValuesMeta() []enums.EnumMetaValue
- func (e ImageFit) VarName() string
Constants ¶
View Source
const ChecksumEnumGenerator = "1da5383c33ee442fd0b899369053f66bdc85bed2dbf906949d3edfeedfe13340" // GoExtVersion: 0.0.449
Variables ¶
This section is empty.
Functions ¶
func AllPackageEnums ¶
func EncodeImage ¶
func ImageCompressonValuesMeta ¶
func ImageCompressonValuesMeta() []enums.EnumMetaValue
func ImageFitValuesMeta ¶
func ImageFitValuesMeta() []enums.EnumMetaValue
func ObjectFitImage ¶
Types ¶
type ImageCompresson ¶
type ImageCompresson string //@enum:type
const ( CompressionPNGNone ImageCompresson = "PNG_NONE" CompressionPNGSpeed ImageCompresson = "PNG_SPEED" CompressionPNGBest ImageCompresson = "PNG_BEST" CompressionJPEG100 ImageCompresson = "JPEG_100" CompressionJPEG90 ImageCompresson = "JPEG_090" CompressionJPEG80 ImageCompresson = "JPEG_080" CompressionJPEG70 ImageCompresson = "JPEG_070" CompressionJPEG60 ImageCompresson = "JPEG_060" CompressionJPEG50 ImageCompresson = "JPEG_050" CompressionJPEG25 ImageCompresson = "JPEG_025" CompressionJPEG10 ImageCompresson = "JPEG_010" CompressionJPEG1 ImageCompresson = "JPEG_001" )
func ImageCompressonValues ¶
func ImageCompressonValues() []ImageCompresson
func ParseImageCompresson ¶
func ParseImageCompresson(vv string) (ImageCompresson, bool)
func (ImageCompresson) Meta ¶
func (e ImageCompresson) Meta() enums.EnumMetaValue
func (ImageCompresson) PackageName ¶
func (e ImageCompresson) PackageName() string
func (ImageCompresson) String ¶
func (e ImageCompresson) String() string
func (ImageCompresson) TypeName ¶
func (e ImageCompresson) TypeName() string
func (ImageCompresson) Valid ¶
func (e ImageCompresson) Valid() bool
func (ImageCompresson) Values ¶
func (e ImageCompresson) Values() []ImageCompresson
func (ImageCompresson) ValuesAny ¶
func (e ImageCompresson) ValuesAny() []any
func (ImageCompresson) ValuesMeta ¶
func (e ImageCompresson) ValuesMeta() []enums.EnumMetaValue
func (ImageCompresson) VarName ¶
func (e ImageCompresson) VarName() string
type ImageFit ¶
type ImageFit string //@enum:type
const ( ImageFitStretch ImageFit = "STRETCH" ImageFitCover ImageFit = "COVER" ImageFitContainCenter ImageFit = "CONTAIN_CENTER" ImageFitContainTopLeft ImageFit = "CONTAIN_TOPLEFT" ImageFitContainTopRight ImageFit = "CONTAIN_TOPRIGHT" ImageFitContainBottomLeft ImageFit = "CONTAIN_BOTTOMLEFT" ImageFitContainBottomRight ImageFit = "CONTAIN_BOTTOMRIGHT" )
func ImageFitValues ¶
func ImageFitValues() []ImageFit
func ParseImageFit ¶
func (ImageFit) Meta ¶
func (e ImageFit) Meta() enums.EnumMetaValue
func (ImageFit) PackageName ¶
func (ImageFit) ValuesMeta ¶
func (e ImageFit) ValuesMeta() []enums.EnumMetaValue
Click to show internal directories.
Click to hide internal directories.