This directory contains a Go implementation of image processing utilities. It provides a set of tools for manipulating and processing images efficiently.
- Image format conversion
- Image manipulation
- Efficient processing
- Concurrent operations
- Memory optimization
This project uses both Go modules and Bazel for building:
# Using Go
go build ./...
# Using Bazel
bazel build //go/images:...
# Using Go
go test ./...
# Using Bazel
bazel test //go/images:...
// Example of image processing
processor := images.NewProcessor(
images.WithConcurrency(4),
images.WithMaxMemory(1024 * 1024 * 100), // 100MB
)
result, err := processor.ProcessImage(inputImage, images.Resize(800, 600))
if err != nil {
log.Fatal(err)
}
bazel build //go/images
bazel-bin/go/images/images_/images static_content/tippo.png 15
open static_content/tippo.png static_content/tippo.png.grey.Box.png static_content/tippo.png.grey.X.png static_content/tippo.png.grey.Y.png