magick
magick copied to clipboard
ImageMagick bindings for Go (golang)
Image.Phash seems to generate the same value for every image i try to hash. Scenario im, err := magick.DecodeData(blob) h, err := im.PHash() h is always the same value even...
- It's not necessary to calculate entropy for full of image when finding max entropy rectangle. We could use previous result to speed up this process. Reduce time complexity from...
AcquireImagePixels is deprecaed http://www.imagemagick.org/api/deprecate.php#AcquireImagePixels This fixes the deprecations warnings. As discussed in #13, this does not make magick thread-safe. From what I understand, the Go scheduler only allows one goroutine...
i use func crop and then i got result looks like: 
This works with both backends as far as I can see.
Is it possible to specify an initial resolution or density when decoding a vector file? Like MagickSetResolution() to set the dpi.
I noticed that there is a huge performance difference between encoding JPG and PNG with magick. It takes around 700ms to encode a PNG image when JPG takes like 100ms....
The `gm` command has a "trim" option that removes the empty whitespaces surrounding the image, is there any equivalent of that in magick ?