X-Git-Url: https://granicus.if.org/sourcecode?a=blobdiff_plain;f=www%2Fperl-magick.html;h=b44994c59de3221285f4de141ca34823136fad4c;hb=7e41fe84a841d7b9d7b36b245b65e9dcb3314943;hp=1e56d4af83d2a6c12fc46fa8b58ae7aba2faa0f3;hpb=a6510537f12fa03b973dc43e9984d46c46eea317;p=imagemagick diff --git a/www/perl-magick.html b/www/perl-magick.html index 1e56d4af8..b44994c59 100644 --- a/www/perl-magick.html +++ b/www/perl-magick.html @@ -1,29 +1,32 @@ - + - - - - - - ImageMagick: PerlMagick, Perl API for ImageMagick + + + ImageMagick: PerlMagick, Perl API for ImageMagick + + + - - + + + + + @@ -42,115 +45,124 @@ style="width: 114px; height: 118px; border: 0px; float: right;" /> -
+
+
- -
- - +
+ +
@@ -176,10 +188,10 @@

ImageMagick must already be installed on your system. Next, get the PerlMagick distribution corresponding to the installed ImageMagick distribution -(e.g., PerlMagick 6.60 for -ImageMagick 6.6.0) and unpack it as shown below:

+(e.g., PerlMagick 6.66 for +ImageMagick 6.6.6) and unpack it as shown below:

-

$magick> tar xvfz PerlMagick-6.60.tar.gz $magick> cd PerlMagick

+

$magick> tar xvfz PerlMagick-6.66.tar.gz $magick> cd PerlMagick

Next, edit Makefile.PL and change LIBS and INC to include the appropriate path information to the required MagickCore library. You may need paths to JPEG, PNG, TIFF, etc. delegates if they were included with your installed version of ImageMagick. Build and install it like this:

$magick> perl Makefile.PL $magick> make $magick> make install

@@ -500,7 +512,7 @@ ImageMagick 6.6.0) and unpack it as shown below:

Annotate - text=>string, font=>string, family=>string, style=>{Normal, Italic, Oblique, Any}, stretch=>{Normal, UltraCondensed, ExtraCondensed, Condensed, SemiCondensed, SemiExpanded, Expanded, ExtraExpanded, UltraExpanded}, weight=>integer, pointsize=>integer, density=>geometry, stroke=>color name, strokewidth=>integer, fill=>color name, undercolor=>color name, kerning=>float, geometry=>geometry, gravity=>{NorthWest, North, NorthEast, West, Center, East, SouthWest, South, SouthEast}, antialias=>{true, false}, x=>integer, y=>integer, affine=>array of float values, translate=>float, float, scale=>float, float, rotate=>float. skewX=>float, skewY=> float, align=>{Left, Center, Right}, encoding=>{UTF-8}, interline-spacing=>double, interword-spacing=>double + text=>string, font=>string, family=>string, style=>{Normal, Italic, Oblique, Any}, stretch=>{Normal, UltraCondensed, ExtraCondensed, Condensed, SemiCondensed, SemiExpanded, Expanded, ExtraExpanded, UltraExpanded}, weight=>integer, pointsize=>integer, density=>geometry, stroke=>color name, strokewidth=>integer, fill=>color name, undercolor=>color name, kerning=>float, geometry=>geometry, gravity=>{NorthWest, North, NorthEast, West, Center, East, SouthWest, South, SouthEast}, antialias=>{true, false}, x=>integer, y=>integer, affine=>array of float values, translate=>float, float, scale=>float, float, rotate=>float. skewX=>float, skewY=> float, align=>{Left, Center, Right}, encoding=>{UTF-8}, interline-spacing=>double, interword-spacing=>double, direction=>{right-to-left, left-to-right} annotate an image with text. See QueryFontMetrics to get font metrics without rendering any text. @@ -588,6 +600,12 @@ ImageMagick 6.6.0) and unpack it as shown below:

merge a sequence of images + + Color + color=>color name + set the entire image to this color. + + ColorDecisionList filename=>string, @@ -600,6 +618,12 @@ ImageMagick 6.6.0) and unpack it as shown below:

colorize the image with the fill color + + ColorMatrix + matrix=>array of float values + apply color correction to the image. Although you can use variable sized matrices, typically you use a 5 x 5 for an RGBA image and a 6x6 for CMYKA. A 6x6 matrix is required for offsets (populate the last column with normalized values). + + Comment string @@ -686,7 +710,7 @@ ImageMagick 6.6.0) and unpack it as shown below:

Draw - primitive=>{point, line, rectangle, arc, ellipse, circle, path, polyline, polygon, bezier, color, matte, text, @filename}, points=>string , method=>{Point, Replace, Floodfill, FillToBorder, Reset}, stroke=>color name, fill=>color name, font=>string, pointsize=>integer, strokewidth=>float, antialias=>{true, false}, bordercolor=>color name, x=>float, y=>float, dash-offset=>float, dash-pattern=>array of float values, affine=>array of float values, translate=>float, float, scale=>float, float, rotate=>float, skewX=>float, skewY=>float, interpolate=>{undefined, average, bicubic, bilinear, mesh, nearest-neighbor, spline}, kerning=>float, text=>string, vector-graphics=>string + primitive=>{point, line, rectangle, arc, ellipse, circle, path, polyline, polygon, bezier, color, matte, text, @filename}, points=>string , method=>{Point, Replace, Floodfill, FillToBorder, Reset}, stroke=>color name, fill=>color name, font=>string, pointsize=>integer, strokewidth=>float, antialias=>{true, false}, bordercolor=>color name, x=>float, y=>float, dash-offset=>float, dash-pattern=>array of float values, affine=>array of float values, translate=>float, float, scale=>float, float, rotate=>float, skewX=>float, skewY=>float, interpolate=>{undefined, average, bicubic, bilinear, mesh, nearest-neighbor, spline}, kerning=>float, text=>string, vector-graphics=>string, interline-spacing=>double, interword-spacing=>double, direction=>{right-to-left, left-to-right} annotate an image with one or more graphic primitives. @@ -973,12 +997,6 @@ fill=>color name, channel=>{All, De lighten or darken image edges to create a 3-D effect - - Recolor - matrix=>array of float values - translate, scale, shear, or rotate image colors. Although you can use variable sized matrices, typically you use a 5 x 5 for an RGBA image and a 6x6 for CMYKA. Populate the last row with normalized values to translate. - - ReduceNoise radius=>double @@ -1428,6 +1446,12 @@ can use the integers 1 and 0.

image depth + + direction + {Undefined, right-to-left, left-to-right + render text right-to-left or left-to-right + + disk-limit integer @@ -1670,7 +1694,7 @@ can use the integers 1 and 0.

type - {Bilevel, Grayscale, GrayscaleMatte, Palette, PaletteMatte, TrueColor, TrueColorMatte, ColorSeparation, ColorSeparationMatte, Optimize } + {Bilevel, Grayscale, GrayscaleMatte, Palette, PaletteMatte, TrueColor, TrueColorMatte, ColorSeparation, ColorSeparationMatte} image type @@ -2266,21 +2290,21 @@ blobs in any of these image formats and provid

appends all the images associated with object $image. By default, images are stacked left-to-right. Set stack to True to stack them top-to-bottom.

-

The Average() method averages a set of images. For example,

+

The Clone() method copies a set of images. For example,

-  $p = $image->Average();
+  $q = $p->Clone();
 
-

averages all the images associated with object $image.

+

copies all the images from object $p to $q. You can use this method for single or multi-image sequences.

-

The Clone() method copies a set of images. For example,

+

The EvaluateImages() method applies an arithemtic, logical or relational expression to a set of images. For example,

-  $q = $p->Clone();
+  $p = $image->EvaluateImages('mean');
 
-

copies all the images from object $p to $q. You can use this method for single or multi-image sequences.

+

averages all the images associated with object $image.

The Features() method returns features for each channel in the image in each of four directions (horizontal, vertical, left and right diagonals) for the specified distance. The features include the angular second momentum, contrast, correlation, sum of squares: variance, inverse difference moment, sum average, sum varience, sum entropy, entropy, difference variance, difference entropy, information measures of correlation 1, information measures of correlation 2, and maximum correlation coefficient. Values in RGB, CMYK, RGBA, or CMYKA order (depending on the image type).

@@ -2312,18 +2336,6 @@ blobs in any of these image formats and provid

Histogram() returns the unique colors in the image and a count for each one. The returned values are an array of red, green, blue, opacity, and count values.

-

The Maximum() method returns the maximum intensity of an image sequence:

- -
-  $p = $image->Maximum();
-
- -

The Minimum() method returns the minimum intensity of an image sequence:

- -
-  $p = $image->Minimum();
-
-

The Morph() method morphs a set of images. Both the image pixels and size are linearly interpolated to give the appearance of a meta-morphosis from one image to the next:

@@ -2470,7 +2482,7 @@ blobs in any of these image formats and provid
   print $1;               # print the error number
 
-

Methods which return images (Average(), Montage(), Clone()) should be checked for errors this way:

+

Methods which return images (EvaluateSequence(), Montage(), Clone()) should be checked for errors this way:

   $x = $image->Montage(...);
@@ -2558,17 +2570,28 @@ blobs in any of these image formats and provid
 
+