/imagext

functions and filters for image (grayscale, monochrome, etc.)

Primary LanguageGoBoost Software License 1.0BSL-1.0

imagext Package

GoDoc Go Report Card Stability: Experimental

About

This package provides functions for images. It's written for fast prototyping. Results may depend on format.

This Package is published on https://github.com/vbsw/imagext.

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