Documentation ¶
Index ¶
Constants ¶
View Source
const Accuracy = 0.05
Accuracy for calculating specified file size Options.Size for Options.Size result might be in range [Options.Size - Options.Size*Accuracy; Options.Size]
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct { // Size is desired output file size in bytes Size int // Format is image format to encode Format string // JpegOptions are the options for jpeg format JpegOptions *jpeg.Options // GifOptions are the options for gif format GifOptions *gif.Options }
Options are the encoding parameters.
Click to show internal directories.
Click to hide internal directories.