Versions in this module Expand all Collapse all v1 v1.0.0 Jun 30, 2026 Changes in this version + const ErrCodeCoeffExtraction + const ErrCodeCropTooLarge + const ErrCodeDecodeFailed + const ErrCodeDimensionOverflow + const ErrCodeDimensionTooLarge + const ErrCodeEncoderQualityFailed + const ErrCodeEncodingFailed + const ErrCodeInvalidChannels + const ErrCodeInvalidDimensions + const ErrCodeInvalidDimensionsChannels + const ErrCodeInvalidEpsilon + const ErrCodeInvalidQuantTable + const ErrCodeNegativeCropSize + const ErrCodeNilEncoder + const ErrCodeNilPixelData + const ErrCodeNilRGBPixels + const ErrCodeNilYCbCrPixels + const ErrCodeNotBaseline + const ErrCodePixelCountTooLarge + const ErrCodePixelLengthMismatch + const ErrCodeQualityOutOfRange + const MaxImageDimension + const MaxPixelCount + func CheckDimensionOverflow(width, height, channels int) error + func GetTranslator() translator + func SetTranslator(t translator) + type CoefficientExtractor interface + Extract func(data []byte) ([]DCTCoefficient, error) + func NewCoefficientExtractor() CoefficientExtractor + type DCTCoefficient struct + Col int + Component int + Row int + Value int16 + type Error struct + Cause error + Code string + Message string + func (e *Error) Error() string + func (e *Error) Unwrap() error + type ImageProcessor interface + ApplyBlur func(pixels []byte, width, height, channels int, epsilon float64) (blurredPixels []byte, err error) + ConvertToRGB func(ycbcrPixels []byte, width, height int) (rgbPixels []byte, err error) + ConvertToYCbCr func(rgbPixels []byte, width, height int) (ycbcrPixels []byte, err error) + CropImage func(pixels []byte, width, height, channels, cropSize int) (croppedPixels []byte, newWidth, newHeight int, err error) + func NewImageProcessor() ImageProcessor + type JPEGCodec interface + Decode func(data []byte) (pixels []byte, width, height int, err error) + Encode func(pixels []byte, width, height, quality int) (data []byte, err error) + EncodeWithTables func(pixels []byte, width, height, fallbackQuality int, ...) (data []byte, err error) + IsBaseline func() bool + QualityFactor func() int + QuantizationTables func() (luma, chroma []int) + func NewJPEGCodec() JPEGCodec