Page 1 of 1

Morpology with PHP?

Posted: 2011-07-19T16:55:42-07:00
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

Re: Morpology with PHP?

Posted: 2011-07-19T17:33:32-07:00
by fmw42
use PHP exec() rather than Imagick

Re: Morpology with PHP?

Posted: 2011-07-19T21:57:57-07:00
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.