PHP Handbuch
Zurück |  | Weiter

# LXVI. Image magick Functions

# Einführung

Image magick extension lets you create and manipulate images. Its function is similar to Image extension but provides more powerful and faster functions.

# Anforderungen

To use this extension, either "ImageMagick" or "GraphicsMagick" library is required.

# Installation

Windows binaries may be found at http://snaps.php.net/. To install, download php_imagick.dll to the folder specified by your php.ini file's `extension_dir` directive. Enable it by adding `extension=php_imagick.dll` to your php.ini and restarting your web server.

    extension_dir=c:/php5/exts/
    extension=php_imagick.dll

Linux, BSD, and other *nix variants can be compiled using the following steps:

- Either:

  - Run the pear installer for PECL/imagick: `pecl install imagick`

  - Copy `imagick.so` from the directory indicated by the build process to the location specified in your php.ini file under `extension_dir`.

  - Add `extension=imagick.so` to your php.ini

  Or:

  - Set the path to your php.ini via:

    `pecl config-set php_ini /path/to/php.ini`

  - Run the pear installer for PECL/imagick: `pecl install imagick`

- Restart your web server to reload your php.ini settings.

> Development Versions: There are currently no `stable` versions of PECL/imagick, to force installation of the `beta` version of PECL/imagick execute: `pecl install imagick-`beta

> Compiling PECL/imagick without using the PEAR command: Rather than using `pecl install imagick` to automatically download and install PECL/imagick, you may download the tarball from PECL. From the root of the unpacked tarball, run: `phpize && ./configure --enable-imagick && make` to generate `imagick.so`. Once built, continue the installation from step 4 above.

Zusätzliche Informationen, wie neue Releases, Downloads Quelldateien, Maintainerinformation und ein CHANGELOG finden Sie hier: http://pecl.php.net/package/imagick.

# Resource Typen

This extension uses the "imagemagick handle" resource.

# Vordefinierte Konstanten

Folgende Konstanten werden von dieser Erweiterung definiert und stehen nur zur Verfügung, wenn die Erweiterung entweder statisch in PHP kompiliert oder dynamisch zur Laufzeit geladen wurde.

`IMAGICK_FILTER_UNDEFINED` (integer)

`IMAGICK_FILTER_POINT` (integer)

`IMAGICK_FILTER_BOX` (integer)

`IMAGICK_FILTER_TRIANGLE` (integer)

`IMAGICK_FILTER_HERMITE` (integer)

`IMAGICK_FILTER_HANNING` (integer)

`IMAGICK_FILTER_HAMMING` (integer)

`IMAGICK_FILTER_BLACKMAN` (integer)

`IMAGICK_FILTER_GAUSSIAN` (integer)

`IMAGICK_FILTER_QUADRATIC` (integer)

`IMAGICK_FILTER_CUBIC` (integer)

`IMAGICK_FILTER_CATROM` (integer)

`IMAGICK_FILTER_MITCHELL` (integer)

`IMAGICK_FILTER_LANCZOS` (integer)

`IMAGICK_FILTER_BESSEL` (integer)

`IMAGICK_FILTER_SINC` (integer)

`IMAGICK_FILTER_UNKNOWN` (integer)

`IMAGICK_FONTSTYLE_NORMAL` (integer)

`IMAGICK_FONTSTYLE_ITALIC` (integer)

`IMAGICK_FONTSTYLE_OBLIQUE` (integer)

`IMAGICK_FONTSTYLE_ANY` (integer)

`IMAGICK_RAISE` (integer)

`IMAGICK_LOWER` (integer)

`IMAGICK_COMPOSITE_OP_UNDEFINED` (integer)

`IMAGICK_COMPOSITE_OP_OVER` (integer)

`IMAGICK_COMPOSITE_OP_IN` (integer)

`IMAGICK_COMPOSITE_OP_OUT` (integer)

`IMAGICK_COMPOSITE_OP_ATOP` (integer)

`IMAGICK_COMPOSITE_OP_XOR` (integer)

`IMAGICK_COMPOSITE_OP_PLUS` (integer)

`IMAGICK_COMPOSITE_OP_MINUS` (integer)

`IMAGICK_COMPOSITE_OP_ADD` (integer)

`IMAGICK_COMPOSITE_OP_SUBTRACT` (integer)

`IMAGICK_COMPOSITE_OP_DIFFERENCE` (integer)

`IMAGICK_COMPOSITE_OP_MULTIPLY` (integer)

`IMAGICK_COMPOSITE_OP_BUMPMAP` (integer)

`IMAGICK_COMPOSITE_OP_COPY` (integer)

`IMAGICK_COMPOSITE_OP_COPYRED` (integer)

`IMAGICK_COMPOSITE_OP_COPYGREEN` (integer)

`IMAGICK_COMPOSITE_OP_COPYBLUE` (integer)

`IMAGICK_COMPOSITE_OP_COPYOPACITY` (integer)

`IMAGICK_COMPOSITE_OP_CLEAR` (integer)

`IMAGICK_COMPOSITE_OP_DISSOLVE` (integer)

`IMAGICK_COMPOSITE_OP_DISPLACE` (integer)

`IMAGICK_COMPOSITE_OP_MODULATE` (integer)

`IMAGICK_COMPOSITE_OP_THRESHOLD` (integer)

`IMAGICK_COMPOSITE_OP_NONE` (integer)

`IMAGICK_COMPOSITE_OP_DARKEN` (integer)

`IMAGICK_COMPOSITE_OP_LIGHTEN` (integer)

`IMAGICK_COMPOSITE_OP_HUE` (integer)

`IMAGICK_COMPOSITE_OP_SATURATE` (integer)

`IMAGICK_COMPOSITE_OP_COLORIZE` (integer)

`IMAGICK_COMPOSITE_OP_LUMINIZE` (integer)

`IMAGICK_COMPOSITE_OP_SCREEN` (integer)

`IMAGICK_COMPOSITE_OP_OVERLAY` (integer)

`IMAGICK_PROFILE_OWN` (integer)

`IMAGICK_PROFILE_COPY` (integer)

`IMAGICK_TYPE_UNDEFINED` (integer)

`IMAGICK_TYPE_BILEVEL` (integer)

`IMAGICK_TYPE_GRAYSCALE` (integer)

`IMAGICK_TYPE_GRAYSCALEMATTE` (integer)

`IMAGICK_TYPE_PALETTE` (integer)

`IMAGICK_TYPE_PALETTEMATTE` (integer)

`IMAGICK_TYPE_TRUECOLOR` (integer)

`IMAGICK_TYPE_TRUECOLORMATTE` (integer)

`IMAGICK_TYPE_COLORSEPARATION` (integer)

`IMAGICK_TYPE_COLORSEPARATIONMATTE` (integer)

`IMAGICK_TYPE_OPTIMIZE` (integer)

`IMAGICK_COLORSPACE_UNDEFINED` (integer)

`IMAGICK_COLORSPACE_RGB` (integer)

`IMAGICK_COLORSPACE_GRAY` (integer)

`IMAGICK_COLORSPACE_TRANSPARENT` (integer)

`IMAGICK_COLORSPACE_OHTA` (integer)

`IMAGICK_COLORSPACE_XYZ` (integer)

`IMAGICK_COLORSPACE_YCBCR` (integer)

`IMAGICK_COLORSPACE_YCC` (integer)

`IMAGICK_COLORSPACE_YIQ` (integer)

`IMAGICK_COLORSPACE_YPBPR` (integer)

`IMAGICK_COLORSPACE_YUV` (integer)

`IMAGICK_COLORSPACE_CMYK` (integer)

`IMAGICK_COLORSPACE_SRGB` (integer)

`IMAGICK_COMPRESSION_UNDEFINED` (integer)

`IMAGICK_COMPRESSION_NONE` (integer)

`IMAGICK_COMPRESSION_BZIP` (integer)

`IMAGICK_COMPRESSION_FAX` (integer)

`IMAGICK_COMPRESSION_GROUP4` (integer)

`IMAGICK_COMPRESSION_JPEG` (integer)

`IMAGICK_COMPRESSION_LOSSLESSJPEG` (integer)

`IMAGICK_COMPRESSION_LZW` (integer)

`IMAGICK_COMPRESSION_RLE` (integer)

`IMAGICK_COMPRESSION_ZIP` (integer)

Zurück | Zum Anfang | Weiter
png2wbmp | Nach oben | imagick_begindraw