Documentation ¶
Index ¶
- func MatchExts(dir string, exts []string) ([]string, error)
- func PhotoId(r io.Reader) string
- func ResizeAndCompress(r io.Reader, w io.Writer, longSideSize int, quality int) (int, int, error)
- func ResizeAndCompressStd(r io.Reader, w io.Writer, longSideSize int, quality int) (int, int, error)
- func ToJPEG(r io.Reader, w io.Writer, quality int) error
- type Exif
- type Photo
- type Photos
- func (ps Photos) Delete(id string) error
- func (ps Photos) Get(id string) (*Photo, error)
- func (ps Photos) IDs() []string
- func (ps *Photos) Init() error
- func (ps Photos) Len() int
- func (ps *Photos) LoadFiles(in []string, store storage.Storage, conf *config.Config) error
- func (ps Photos) Set(p *Photo)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResizeAndCompress ¶
func ResizeAndCompressStd ¶
Types ¶
type Photo ¶
Click to show internal directories.
Click to hide internal directories.