MagickWand

NAME

MagicWand - ImageMagick's MagickWand API Bindings for Perl6

SYNOPSIS


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;
}

DESCRIPTION

This provides a Perl 6 object-oriented [NativeCall]( http://doc.perl6.org/language/nativecall)-based API for ImageMagick's [MagickWand C API](http://www.imagemagick.org/script/magick-wand.php).

adaptive-resize

This is a helper method for adaptive-resize. For example

adaptive-resize(0.5);    # Resize to 50% of original size

resize

$wand.resize(320, 240);     # Scale to 320x240

Scales an image to the desired percentage of the current dimensions with one of these filters: Bessel, Blackman, Box, Catrom, CubicGaussian, Hanning, Hermite, Lanczos, Mitchell, PointQuandratic, Sinc, Triangle

resize

$wand.resize(0.6);     # 60% of original dimensions

Scales an image to the desired percentage of the current dimensions with one of these filters: Bessel, Blackman, Box, Catrom, CubicGaussian, Hanning, Hermite, Lanczos, Mitchell, PointQuandratic, Sinc, Triangle

cleanup

TODO cleanup description

MagickWand v0.2.0

ImageMagick's MagickWand API Bindings for Raku

Authors

  • Konstantin Narkhov
  • Ahmad M. Zawawi

License

MIT

Dependencies

Test Dependencies

Provides

  • MagickWand
  • MagickWand::Enums
  • MagickWand::NativeCall
  • MagickWand::NativeCall::Common
  • MagickWand::NativeCall::Deprecated
  • MagickWand::NativeCall::DrawingWand
  • MagickWand::NativeCall::Image
  • MagickWand::NativeCall::Mogrify
  • MagickWand::NativeCall::PixelIterator
  • MagickWand::NativeCall::PixelWand
  • MagickWand::NativeCall::Property
  • MagickWand::NativeCall::Wand
  • MagickWand::NativeCall::WandView

Documentation

The Camelia image is copyright 2009 by Larry Wall. "Raku" is a trademark of the Yet Another Society. All rights reserved.

Built with Podlite — the markup and publishing tools behind this site.