
Security News
Vite Releases Technical Preview of Rolldown-Vite, a Rust-Based Bundler
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
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
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
Research
Security News
A malicious npm typosquat uses remote commands to silently delete entire project directories after a single mistyped install.
Research
Security News
Malicious PyPI package semantic-types steals Solana private keys via transitive dependency installs using monkey patching and blockchain exfiltration.