PHP マニュアル
前のページ |  | 次のページ

# LXIV. Image magick Functions

# 導入

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

# 要件

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

# インストール手順

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 webserver.

    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 webserver 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.

この PECL 拡張モジュールをインストールする方法は、 マニュアルの PECL 拡張モジュールのインストール という章にあります。 新規リリース・ダウンロード・ソースファイル・管理者情報・CHANGELOG といった関連する情報については、次の場所にあります。 http://pecl.php.net/package/imagick.

# リソース型

This extension uses the "imagemagick handle" resource.

# 定義済み定数

以下の定数が定義されています。 この関数の拡張モジュールが PHP 組み込みでコンパイルされているか、 実行時に動的にロードされている場合のみ使用可能です。

`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)

前のページ | ホーム | 次のページ
png2wbmp | 上に戻る | imagick_begindraw