
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
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.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.