SVD image compression
An implementation image compression using SVD decomposition on Go
Built With
Compression examples
Header | Image |
---|---|
Original | |
Ratio 10% | |
Ratio 50% | |
Ratio 80% | |
Ratio 99% |
Getting Started
To get a local copy up and running follow these simple steps.
Installation
- Install vendor
go get -u github.com/nurlantulemisov/imagecompression
Simple usage
file, _ := os.Open("tmp/image.jpeg")
img, _ := jpeg.Decode(file)
compressing, _ := image_compression.New(50) // create with percent ratio
compressingImage := compressing.Compress(img)
Contributing
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Roadmap
- Compression of grayscale images
- Provide Frobenius norm
Contact
Tulemisov Nurlan - @NurlanTulemisov
Email - [email protected]
Project Link: https://github.com/nurlantulemisov/imagecompression