Versions in this module Expand all Collapse all v1 v1.0.4 Feb 8, 2024 Changes in this version + type Converter struct + CurrContent int32 + CurrFile int + Ncontents int + Nfiles int + OnCancel func() + OnCompress func() + OnProgress func() + OnStart func() + Opts Options + Workdir string + func (c *Converter) Cancel() + func (c *Converter) Convert(fileName string, fileInfo os.FileInfo) error + func (c *Converter) Cover(fileName string, fileInfo os.FileInfo) error + func (c *Converter) Files(args []string) ([]File, error) + func (c *Converter) Initialize() + func (c *Converter) Meta(fileName string) (any, error) + func (c *Converter) Preview(fileName string, fileInfo os.FileInfo, width, height int) (Image, error) + func (c *Converter) Terminate() + func (c *Converter) Thumbnail(fileName string, fileInfo os.FileInfo) error v1.0.3 Sep 14, 2023 v1.0.2 Sep 14, 2023 v1.0.1 Sep 14, 2023 v1.0.0 Sep 14, 2023 Changes in this version + const Box + const CatmullRom + const Gaussian + const Lanczos + const Linear + const MitchellNetravali + const NearestNeighbor + type Convertor struct + CurrContent int32 + CurrFile int + Ncontents int + Nfiles int + OnCancel func() + OnCompress func() + OnProgress func() + OnStart func() + Opts Options + Workdir string + func New(o Options) *Convertor + func (c *Convertor) Cancel() + func (c *Convertor) Convert(fileName string, fileInfo os.FileInfo) error + func (c *Convertor) Cover(fileName string, fileInfo os.FileInfo) error + func (c *Convertor) Files(args []string) ([]File, error) + func (c *Convertor) Initialize() + func (c *Convertor) Meta(fileName string) (any, error) + func (c *Convertor) Preview(fileName string, fileInfo os.FileInfo, width, height int) (Image, error) + func (c *Convertor) Terminate() + func (c *Convertor) Thumbnail(fileName string, fileInfo os.FileInfo) error + type File struct + Name string + Path string + SizeHuman string + Stat os.FileInfo + type Image struct + Height int + Image image.Image + SizeHuman string + Width int + type Options struct + Archive string + Brightness int + Comment bool + CommentBody string + Contrast int + Cover bool + FileAdd string + FileRemove string + Filter int + Fit bool + Format string + Grayscale bool + Height int + LevelsGamma float64 + LevelsInMax int + LevelsInMin int + LevelsOutMax int + LevelsOutMin int + Meta bool + NoConvert bool + NoCover bool + NoNonImage bool + NoRGB bool + OutDir string + OutFile string + Quality int + Quiet bool + Recursive bool + Rotate int + Size int + Suffix string + Thumbnail bool + Version bool + Width int + func NewOptions() Options