util

package
v0.0.0-...-632e762 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultCompressionConfig = CompressionConfig{
	MaxWidth:      1920,
	MaxHeight:     1080,
	MaxFileSizeKB: 500,
	Quality:       85,
}

Functions

func CompressImage

func CompressImage(data []byte, config CompressionConfig) ([]byte, string, error)

Types

type CompressionConfig

type CompressionConfig struct {
	MaxWidth      int
	MaxHeight     int
	MaxFileSizeKB int
	Quality       int
}

Jump to

Keyboard shortcuts

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