Skip to content
This repository has been archived by the owner on Oct 7, 2022. It is now read-only.
/ ImageShrink Public archive

A small Go tool to crop an image according to content

License

Notifications You must be signed in to change notification settings

SHA65536/ImageShrink

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ImageShrink

A small Go tool to crop transparent padding from an image according to content.

Install

Use go get to install this package

go get github.com/sha65536/imageshrink

Example

This example takes an image file, shrinks it, and writes to a new location.

package main

import (
	"github.com/sha65536/imageshrink"
)

func main() {
	err := imageshrink.ShrinkFile("input.png", "output.png")
	if err != nil {
		panic(err)
	}
}

About

A small Go tool to crop an image according to content

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages