Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompressImage ¶
func CompressImage(inputPath string, outputPath string, maxSize int, outputFormat string, quality int, verbose bool) error
CompressImage() - compress image to the target size
inputPath (string) - path of the input image; outputPath (string) - path of the output image maxSize (int) - maximum size of the image in bytes; outputFormat (string) - jpeg, png, or gif quality (int) - quality for JPEG compression; verbose (bool) - enable verbose logging
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.