All Projects → azawawi → perl6-magickwand

azawawi / perl6-magickwand

Licence: MIT license
ImageMagick's MagickWand API Bindings for Raku

Programming Languages

Raku
181 projects

Projects that are alternatives of or similar to perl6-magickwand

magickwand-crystal
Crystal C bindings for MagickWand library
Stars: ✭ 67 (+415.38%)
Mutual labels:  magickwand
MagickWand
Swift wrapper for ImageMagick (MagickWand) for Linux and MacOS
Stars: ✭ 38 (+192.31%)
Mutual labels:  magickwand
magick-rust
Rust bindings for ImageMagick
Stars: ✭ 135 (+938.46%)
Mutual labels:  magickwand

MagickWand

Actions Status

This provides a Raku object-oriented NativeCall-based API for ImageMagick's MagickWand C API.

Example

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.

Prerequisites

Please follow the instructions below based on your platform:

Linux (Debian)

  • To install ImageMagick libraries, please run:
$ sudo apt install libmagickwand-dev

MacOSX (Darwin)

  • To install ImageMagick libraries via Homebrew, please run:
$ brew update
$ brew install imagemagick
  • To install ImageMagick libraries via MacPorts, please run:
$ sudo port install ImageMagick

Windows

For Windows, most people will want the standard 64-bit DLL installer. If you need 32-bit or other special options, select the appropriate alternate installer.

Also please remember to enable "Add to PATH" option.

Installation

  • Install this module using zef:
$ zef install MagickWand

Handling PDF files

To process PDF files, please remember to install Ghostscript from here.

Testing

  • To run tests:
$ prove --ext .rakutest -ve "raku -I."
  • To run all tests including author tests (Please make sure Test::Meta is installed):
$ zef install Test::META
$ TEST_AUTHOR=1 prove --ext .rakutest -ve "raku -I."

Author

Ahmad M. Zawawi, azawawi on #raku, https://github.com/azawawi/

License

MIT License

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].