Documentation ¶
Index ¶
- Variables
- func AddFile(db *gorm.DB, path string, options AddFileOptions) error
- func CreateThumb(pathToImg string, sha256 string, mime string, maxWidth uint, maxHeight uint, ...)
- func GetPHash(filename string) (string, error)
- func ScanMono(db *gorm.DB, dir string, userId int)
- func ScanMulti(db *gorm.DB, dir string, userId int)
- func ThumbPath(sha256 string, width uint, height uint) (path string)
- func TimeStart() (start int64)
- func TimeStop(start int64)
- type AddFileOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var EncodeOptions = map[string]map[int]int{ ".jpeg": map[int]int{lilliput.JpegQuality: 85}, ".png": map[int]int{lilliput.PngCompression: 7}, ".webp": map[int]int{lilliput.WebpQuality: 85}, }
Functions ¶
func CreateThumb ¶
Types ¶
type AddFileOptions ¶
type AddFileOptions struct {
UserId int
}
Click to show internal directories.
Click to hide internal directories.