Imagick without exec
Posted: 2008-02-01T14:38:43-07:00
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
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