
Product
Announcing Precomputed Reachability Analysis in Socket
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
github.com/gographics/gmagick
GraphicsMagick
libraries and header filespacman -S mingw-w64-x86_64-gcc
pacman -S mingw-w64-x86_64-zlib
pacman -S mingw-w64-x86_64-pkg-config
pacman -S mingw-w64-x86_64-graphicsmagick
set PATH=<msys64>\mingw64\bin;%PATH%
set PKG_CONFIG_PATH=<msys64>\mingw64\lib\pkgconfig
set MAGICK_CODER_MODULE_PATH=<msys64>\mingw64\lib\GraphicsMagick-1.3.25\modules-Q8\coders
(BTW: you should change <msys64>
to your installation path of msys2
)
Install GraphicsMagick
using Homebrew or MacPorts
An example of MacPorts
:
sudo port install graphicsmagick
export PKG_CONFIG_PATH=/opt/local/lib/pkgconfig
epel-release
was installed. (help)yum install GraphicsMagick-devel
sudo apt-get install libgraphicsmagick1-dev
go get github.com/gographics/gmagick
package main
import (
"flag"
"github.com/gographics/gmagick"
)
func resize(orig string, dest string) {
mw := gmagick.NewMagickWand()
defer mw.Destroy()
mw.ReadImage(orig)
filter := gmagick.FILTER_LANCZOS
w := mw.GetImageWidth()
h := mw.GetImageHeight()
mw.ResizeImage(w/2, h/2, filter, 1)
mw.WriteImage(dest)
}
func main() {
f := flag.String("from", "", "original image file ...")
t := flag.String("to", "", "target file ...")
flag.Parse()
gmagick.Initialize()
defer gmagick.Terminate()
resize(*f, *t)
}
====================================================
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
Product
Add secure dependency scanning to Claude Desktop with Socket MCP, a one-click extension that keeps your coding conversations safe from malicious packages.