ipingo

package module
v0.0.0-...-5ab4bd5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 27, 2021 License: MIT Imports: 9 Imported by: 0

README

ipin-go

How to use

$ go get -u -v github.com/bslizon/ipin-go
package main

import (
	"os"

	ipingo "github.com/bslizon/ipin-go"
)

func main() {
	b, err := ipingo.GetNormalizedPNG("/tmp/from.png")
	if err != nil {
		panic(err)
	}

	f, err := os.Create("/tmp/to.png")
	if err != nil {
		panic(err)
	}
	defer f.Close()

	if _, err := f.Write(b); err != nil {
		panic(err)
	}
}


Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNormalizedPNG

func GetNormalizedPNG(filename string) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL