Documentation ¶
Index ¶
- Constants
- func ThumbOptionFrom(mode rune, width, height uint) *imagi.ThumbOption
- func ThumbOptionFromParam(p *imagio.Param) *imagi.ThumbOption
- func WithLoader(fn LoadFunc) func(*thumber)
- func WithSizes(ss ...uint) func(*thumber)
- func WithWalker(fn WalkFunc) func(*thumber)
- func WithWaterOpacity(opacity uint8) func(*thumber)
- func WithWatermark(filename string) func(*thumber)
- type CodeError
- type File
- type Item
- type LoadFunc
- type Option
- type Thumber
- type WalkFunc
Constants ¶
View Source
const ( CatOrig = "orig" CatThumb = "thumb" )
consts Cate of Key
Variables ¶
This section is empty.
Functions ¶
func ThumbOptionFrom ¶ added in v1.5.9
func ThumbOptionFrom(mode rune, width, height uint) *imagi.ThumbOption
MakeThumbOption 根据给定的模式、宽度和高度创建并返回图像缩略图选项
func ThumbOptionFromParam ¶ added in v1.5.9
func ThumbOptionFromParam(p *imagio.Param) *imagi.ThumbOption
func WithLoader ¶
func WithLoader(fn LoadFunc) func(*thumber)
func WithWalker ¶
func WithWalker(fn WalkFunc) func(*thumber)
func WithWaterOpacity ¶
func WithWaterOpacity(opacity uint8) func(*thumber)
func WithWatermark ¶
func WithWatermark(filename string) func(*thumber)
Types ¶
type Item ¶ added in v1.5.5
type Item interface { GetID() string GetName() string GetRoof() string IsOrigin() bool GetOrigin() string }
Item item for load and read
Click to show internal directories.
Click to hide internal directories.