Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type OptimizeOptions ¶
type OptimizeOptions struct { Quality int // 1-100 for JPEG/WebP Progressive bool // For JPEG Compression int // 0-9 for PNG StripMetadata bool // Remove EXIF and other metadata AutoQuality bool // Automatically determine quality based on image content }
func DefaultOptions ¶
func DefaultOptions(format string) OptimizeOptions
DefaultOptions returns recommended optimization options per format
func GetOptionsForQuality ¶
func GetOptionsForQuality(format string, level QualityLevel) OptimizeOptions
GetOptionsForQuality returns optimization options for a specific quality level
type QualityLevel ¶
type QualityLevel string
const ( QualityLow QualityLevel = "low" // 60% quality QualityMedium QualityLevel = "medium" // 75% quality QualityHigh QualityLevel = "high" // 90% quality QualityLossless QualityLevel = "lossless" // 100% quality )
Click to show internal directories.
Click to hide internal directories.