Documentation
¶
Index ¶
- Constants
- func Crop(w io.Writer, filename string, rect *Rect, options ...imaging.EncodeOption) error
- func CropFromReader(w io.Writer, r io.Reader, format imaging.Format, rect *Rect, ...) error
- func Label(w io.Writer, filename string, rects []*Rect, options ...imaging.EncodeOption) error
- func LabelFromReader(w io.Writer, r io.Reader, format imaging.Format, rects []*Rect, ...) error
- func Thumbnail(w io.Writer, filename string, rect *Rect, options ...imaging.EncodeOption) error
- func ThumbnailFromReader(w io.Writer, r io.Reader, format imaging.Format, rect *Rect, ...) error
- type EXIF
- type Orientation
- type Rect
Constants ¶
View Source
const ThumbnailWidth = 200
Variables ¶
This section is empty.
Functions ¶
func CropFromReader ¶
func CropFromReader(w io.Writer, r io.Reader, format imaging.Format, rect *Rect, options ...imaging.EncodeOption) error
CropFromReader 图片裁切
func LabelFromReader ¶
func LabelFromReader(w io.Writer, r io.Reader, format imaging.Format, rects []*Rect, options ...imaging.EncodeOption) error
LabelFromReader 图片标注
Types ¶
type EXIF ¶
type EXIF struct { Size int64 Format string Width int Height int Orientation string Longitude decimal.Decimal Latitude decimal.Decimal }
EXIF 定义图片EXIF
type Orientation ¶
type Orientation int
Orientation 图片的旋转方向
const ( TopLeft Orientation = 1 TopRight Orientation = 2 BottomRight Orientation = 3 BottomLeft Orientation = 4 LeftTop Orientation = 5 RightTop Orientation = 6 RightBottom Orientation = 7 LeftBottom Orientation = 8 )
func (Orientation) String ¶
func (o Orientation) String() string
Click to show internal directories.
Click to hide internal directories.