disintegration / imaging

Imaging is a simple image processing package for Go
MIT License
5.23k stars 435 forks source link

can you put more example #94

Open sadegh-shahbazi opened 5 years ago

sadegh-shahbazi commented 5 years ago

It's hard to use this package I just find this tutorial https://socketloop.com/tutorials/golang-resize-image

can you put more examples???plz

and what is this error:

cannot find package "golang.org/x/image/bmp" in any of:
    C:\Go\src\golang.org\x\image\bmp (from $GOROOT)
    C:\Go\myProjects\projectname\src\golang.org\x\image\bmp (from $GOPATH)
disintegration commented 5 years ago

I agree. It would be helpfull if there were more usage examples in the documentation. I will look into it.

As for the error message, the "golang.org/x/image/bmp" package is not found in your package search path. To fix that, run the go get command to download the imaging package and its dependencies:

go get github.com/disintegration/imaging

Alternatively you can go get the "golang.org/x/image/bmp" directly:

go get golang.org/x/image/bmp
struffel commented 3 years ago

Okay, so here are a few ideas to put in a future "/examples" folder:

metal3d commented 3 years ago

One more example to add (because I don't find the right way) is to make a drop shadow based on alpha. The idea is to get the alpha, dilate it, blur, apply it under the original image. If someone has got the right method...