Imagick without exec

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
ivobrabec

Imagick without exec

Post by ivobrabec »

Hi,
our server provider stopped the exec command. I have to rewrite all imagick scripts. Can somebody help me with this line:
exec("convert ".$in." -density 400x400 -resize 50% -colorspace gray -depth 8 -colors 256 ".$out);

How do i get the same result without the exec. I read the imagick functions in php.net but they seem not to provide proper alternative. There is the imagick_resize and imagick_setdpi and the other parameters could not be found to be set anywhere..
Thanks in advance.
Ivo Brabec
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Imagick without exec

Post by anthony »

Try the IMagick forum.

Also look on the web at Mikko's Blog (especailly read comments) for the various techniques..
http://valokuva.org/?cat=1
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
ivobrabec

Re: Imagick without exec

Post by ivobrabec »

Hi, i read everything on this page but could not find anything of this sort...Especially in the image properties, there is no depth and color which can be set up with some function, i found the option to set the colorspace and resolution, but not the other two.

Thanks for help
Ivo
Post Reply