image

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Image2Thumbnail

func Image2Thumbnail(filePath, outPath string, desWidth int, desHeight int) error

func Image2Webp

func Image2Webp(filePath, outPath string, quality float32) error

func ImageConv

func ImageConv(filePath, outPath, outMPath string, quality float32, desWidth int, desHeight int) error

Types

type IfdEntry

type IfdEntry struct {
	IfdPath     string                `json:"ifd_path"`
	FqIfdPath   string                `json:"fq_ifd_path"`
	IfdIndex    int                   `json:"ifd_index"`
	TagId       uint16                `json:"tag_id"`
	TagName     string                `json:"tag_name"`
	TagTypeId   exif.TagTypePrimitive `json:"tag_type_id"`
	TagTypeName string                `json:"tag_type_name"`
	UnitCount   uint32                `json:"unit_count"`
	Value       interface{}           `json:"value"`
	ValueString string                `json:"value_string"`
}

type TExif

type TExif struct {
	CameraName  string // 相机厂商
	DeviceModel string // 设备型号
	PhotoTime   string // 拍摄时间
	PixelX      string // 图片尺寸X
	PixelY      string // 图片尺寸Y
}

Jump to

Keyboard shortcuts

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