compressor

package
v0.0.0-...-16aaa57 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 6, 2026 License: MIT Imports: 8 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址