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
Imagick without exec
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: Imagick without exec
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
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/
https://imagemagick.org/Usage/
Re: Imagick without exec
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
Thanks for help
Ivo