Versions in this module Expand all Collapse all v0 v0.1.0 Oct 7, 2026 Changes in this version + func AdjustBrightness(img image.Image, delta float64) *image.RGBA + func AdjustBrightnessRaster(src *raster.Image, delta float64) *raster.Image + func AdjustContrast(img image.Image, factor float64) *image.RGBA + func AdjustContrastRaster(src *raster.Image, factor float64) *raster.Image + func AsRGBA(r *raster.Image) *image.RGBA + func AsRaster(img *image.RGBA) *raster.Image + func BoxBlur(img image.Image, radius int) (*image.RGBA, error) + func BoxBlurRaster(src *raster.Image, radius int) (*raster.Image, error) + func Canny(img image.Image, sigma, low, high float64) (*image.RGBA, error) + func CannyRaster(src *raster.Image, sigma, low, high float64) (*raster.Image, error) + func Close(img image.Image, radius int) (*image.RGBA, error) + func CloseRaster(src *raster.Image, radius int) (*raster.Image, error) + func Convolve(img image.Image, k Kernel) (*image.RGBA, error) + func ConvolveRaster(src *raster.Image, k Kernel) (*raster.Image, error) + func Crop(img image.Image, r image.Rectangle) (*image.RGBA, error) + func CropRaster(src *raster.Image, r image.Rectangle) (*raster.Image, error) + func Decode(r io.Reader) (*image.RGBA, error) + func DecodeBest(r io.Reader, targetSize int) (*image.RGBA, error) + func DecodeExifTranspose(r io.Reader) (*image.RGBA, error) + func DecodePartial(r io.Reader) (*image.RGBA, int, error) + func DecodePartialFile(path string) (*image.RGBA, int, error) + func Dilate(img image.Image, radius int) (*image.RGBA, error) + func DilateRaster(src *raster.Image, radius int) (*raster.Image, error) + func Encode(w io.Writer, img image.Image, format Format) error + func Erode(img image.Image, radius int) (*image.RGBA, error) + func ErodeRaster(src *raster.Image, radius int) (*raster.Image, error) + func ExifTranspose(img image.Image, o Orientation) *image.RGBA + func FlipHorizontal(img image.Image) *image.RGBA + func FlipHorizontalRaster(src *raster.Image) *raster.Image + func FlipVertical(img image.Image) *image.RGBA + func FlipVerticalRaster(src *raster.Image) *raster.Image + func GaussianBlur(img image.Image, sigma float64) (*image.RGBA, error) + func GaussianBlurRaster(src *raster.Image, sigma float64) (*raster.Image, error) + func Grayscale(img image.Image) *image.RGBA + func GrayscaleRaster(src *raster.Image) *raster.Image + func HSVToRGB(img image.Image) *image.RGBA + func HSVToRGBRaster(src *raster.Image) *raster.Image + func Invert(img image.Image) *image.RGBA + func InvertRaster(src *raster.Image) *raster.Image + func Laplacian(img image.Image) *image.RGBA + func LaplacianRaster(src *raster.Image) *raster.Image + func Load(path string) (*image.RGBA, error) + func LoadExifTranspose(path string) (*image.RGBA, error) + func Median(img image.Image, radius int) (*image.RGBA, error) + func MedianRaster(src *raster.Image, radius int) (*raster.Image, error) + func Open(img image.Image, radius int) (*image.RGBA, error) + func OpenRaster(src *raster.Image, radius int) (*raster.Image, error) + func Otsu(img image.Image) *image.RGBA + func OtsuRaster(src *raster.Image) *raster.Image + func OtsuThreshold(img image.Image) uint8 + func Prewitt(img image.Image) *image.RGBA + func PrewittRaster(src *raster.Image) *raster.Image + func RGBToHSV(img image.Image) *image.RGBA + func RGBToHSVRaster(src *raster.Image) *raster.Image + func Resize(img image.Image, w, h int, mode ResizeMode) (*image.RGBA, error) + func ResizeRaster(src *raster.Image, w, h int, mode ResizeMode) (*raster.Image, error) + func Rotate(img image.Image, angle float64, resize bool) *image.RGBA + func Rotate180(img image.Image) *image.RGBA + func Rotate180Raster(src *raster.Image) *raster.Image + func Rotate270(img image.Image) *image.RGBA + func Rotate270Raster(src *raster.Image) *raster.Image + func Rotate90(img image.Image) *image.RGBA + func Rotate90Raster(src *raster.Image) *raster.Image + func Save(path string, img image.Image) error + func Scharr(img image.Image) *image.RGBA + func ScharrRaster(src *raster.Image) *raster.Image + func Sharpen(img image.Image) *image.RGBA + func SharpenRaster(src *raster.Image) *raster.Image + func Sobel(img image.Image) *image.RGBA + func SobelMag(img image.Image) *image.RGBA + func SobelMagRaster(src *raster.Image) *raster.Image + func SobelRaster(src *raster.Image) *raster.Image + func SobelX(img image.Image) *image.RGBA + func SobelXRaster(src *raster.Image) *raster.Image + func SobelY(img image.Image) *image.RGBA + func SobelYRaster(src *raster.Image) *raster.Image + func Threshold(img image.Image, t uint8) *image.RGBA + func ThresholdRaster(src *raster.Image, t uint8) *raster.Image + func ToRGBA(img image.Image) *image.RGBA + func Transpose(img image.Image) *image.RGBA + func Transverse(img image.Image) *image.RGBA + func UnsharpMask(img image.Image, radius, amount float64) (*image.RGBA, error) + func UnsharpMaskRaster(src *raster.Image, radius, amount float64) (*raster.Image, error) + func Warp(img image.Image, inv Affine, outW, outH int, interp Interp, mode BorderMode, ...) *image.RGBA + type Affine struct + A float64 + B float64 + C float64 + D float64 + E float64 + F float64 + func Identity() Affine + func Rotation(theta float64) Affine + func Scaling(sx, sy float64) Affine + func Translation(tx, ty float64) Affine + func (t Affine) Apply(x, y float64) (float64, float64) + func (t Affine) Invert() Affine + func (t Affine) Then(u Affine) Affine + type BorderMode int + const BorderConstant + const BorderEdge + type Format int + const JPEG + const PNG + type Interp int + const InterpBilinear + const InterpNearest + type Kernel struct + Height int + Weights []float64 + Width int + type Orientation uint8 + const OrientationFlipHorizontal + const OrientationFlipVertical + const OrientationNormal + const OrientationRotate180 + const OrientationRotate90CCW + const OrientationRotate90CW + const OrientationTranspose + const OrientationTransverse + func OrientationFromExif(data []byte) Orientation + type ResizeMode int + const Area + const Bicubic + const Bilinear + const Lanczos + const NearestNeighbor