Morpology with PHP?

IMagick is a native PHP extension to create and modify images using the ImageMagick API. ImageMagick Studio LLC did not write nor does it maintain the IMagick extension, however, IMagick users are welcome to discuss the extension here.
Post Reply
DJ Mike
Posts: 33
Joined: 2010-06-29T19:07:53-07:00
Authentication code: 8675308

Morpology with PHP?

Post by DJ Mike »

Is there any way to use morphology with PHP? I see no reference to it at php.net.

See:
http://www.imagemagick.org/Usage/morphology/
http://www.fmwconcepts.com/imagemagick/ ... /index.php
DJ Mike's Tutorials: PHP
ImageMagick Functions
http://eclecticdjs.com/mike/tutorials/p ... /index.php
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Morpology with PHP?

Post by fmw42 »

use PHP exec() rather than Imagick
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Morpology with PHP?

Post by anthony »

The imagick API is unfortunately old, and until someone takes ownership and decided to update it it will probably remain that way. Most people are using exec() calls to run IM commands to do the image processing instead.


ASIDE...

In IMv7 I am planing to implement imagemagick co-processing. That is running a background IM process using proc_open(), and then sending that co-process image processing requests to read/write/process images under the control of the PHP script (avoiding any need for temporari files and multiple commands). This method should allow much better image control handling in the future, from both PHP, shell, or other languages, without needing a special API library developed for each language.

See http://www.imagemagick.org/Usage/bugs/I ... ipting.txt for the proposed programming for this.

IMv7 however is in alpha level development and many take some time to complete.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply