imagio

package
v1.5.7 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseSize

func ParseSize(s string) (mode string, width, height uint, err error)

ParseSize ...

func StoredPath

func StoredPath(r string) string

StoredPath 计算存储路径

Types

type Param

type Param struct {
	ID     imid.IID `json:"id"`
	IsOrig bool     `json:"isOrig"`
	Path   string   `json:"path"`
	SizeOp string   `json:"size"`
	Mop    string   `json:"mop,omitempty"`
	Mode   string   `json:"mode"`
	Ext    string   `json:"ext"`
	Name   string   `json:"name,omitempty"`
	Roof   string   `json:"roof,omitempty"`

	Width  uint `json:"width"`
	Height uint `json:"height"`
	// contains filtered or unexported fields
}

Param ...

func ParseFromPath

func ParseFromPath(uri string) (p *Param, err error)

ParseFromPath ...

func (*Param) ValidSizes added in v1.5.4

func (p *Param) ValidSizes(ss ...uint) bool

type Sizes added in v1.5.4

type Sizes []uint

Sizes ...

func (Sizes) Has added in v1.5.4

func (z Sizes) Has(v uint) bool

Has ...

Jump to

Keyboard shortcuts

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