https://github.com/vbsw/imagext
functions and filters for image (grayscale, monochrome, etc.)
https://github.com/vbsw/imagext
conversion convert golang gray grayscale image monochrome rgba
Last synced: 5 months ago
JSON representation
functions and filters for image (grayscale, monochrome, etc.)
- Host: GitHub
- URL: https://github.com/vbsw/imagext
- Owner: vbsw
- License: bsl-1.0
- Created: 2021-04-05T18:39:00.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-04-25T21:54:25.000Z (about 5 years ago)
- Last Synced: 2024-06-20T06:44:36.854Z (about 2 years ago)
- Topics: conversion, convert, golang, gray, grayscale, image, monochrome, rgba
- Language: Go
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# imagext Package
[](https://godoc.org/github.com/vbsw/imagext) [](https://goreportcard.com/report/github.com/vbsw/imagext) [](https://masterminds.github.io/stability/experimental.html)
## About
This package provides functions for images. It's written for fast prototyping. Results may depend on format.
This Package is published on .
## Copyright
Copyright 2021, Vitali Baumtrok (vbsw@mailbox.org).
imagext Package is distributed under the Boost Software License, version 1.0. (See accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
imagext Package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the Boost Software License for more details.
## Example
package main
import (
"fmt"
"github.com/vbsw/imagext"
)
func main() {
imgColor := imagext.LoadImage("/home/alice/pictures/example.png")
imgGray := imagext.NewGray(imgColor)
err := imagext.SaveImage("/home/alice/pictures/example-gray.png", imgGray)
if err != nil {
fmt.Println(err.Error())
}
}
## References
- https://golang.org/doc/install
- https://git-scm.com/book/en/v2/Getting-Started-Installing-Git
- https://en.wikipedia.org/wiki/Grayscale
- https://www.rapidtables.com/convert/color/cmyk-to-rgb.html
- https://www.sciencedirect.com/topics/computer-science/median-filter