Help language development. Donate to The Perl Foundation
This provides a Perl 6 object-oriented [NativeCall]( http://doc.perl6.org/language/nativecall)-based API for ImageMagick's MagickWand C API.
Operating System | Build Status | CI Provider |
---|---|---|
Linux / Mac OS X | Travis CI | |
Windows 7 64-bit | AppVeyor |
use v6; use MagickWand; # A new magic wand my $wand = MagickWand.new; # Read an image $wand.read("examples/images/aero1.jpg"); # Lighten dark areas $wand.auto-gamma; # And then write a new image $wand.write("output.png"); # And cleanup on exit LEAVE { $wand.cleanup if $wand.defined; }
For more examples, please see the examples folder. For examples of available image effects, please click here.
Please follow the instructions below based on your platform:
$ sudo apt install libmagickwand-dev
$ brew update $ brew install imagemagick
$ sudo port install ImageMagick
For 64-bit Windows, please install the [64-bit
](
https://www.imagemagick.org/download/binaries/ImageMagick-7.0.8-14-Q16-x64-dll.exe)
DLL installer. Otherwise, use the [32-bit
](
https://www.imagemagick.org/download/binaries/ImageMagick-7.0.8-14-Q16-x86-dll.exe)
version.
Also please remember to enable "Add to PATH" option.
$ zef install MagickWand
To run tests:
$ prove -ve "perl6 -Ilib"
Ahmad M. Zawawi, azawawi on #perl6, https://github.com/azawawi/
MIT License