Resize with space Fill
Posted: 2010-01-20T06:51:48-07:00
Hi,
Can anybody tell what is wrong with following php code for resizing image with space fill?
This is working perfectly in local machine but not in server.
Note:- My server have Imagick S/W and its working perfectly with another methods like simple resizing, aspect ratio etc.
I tried examples from http://www.imagemagick.org/Usage/resize/#space_fill
Thanks
Can anybody tell what is wrong with following php code for resizing image with space fill?
Code: Select all
<?php
exec($path_to_convert." ".$imagePath." -resize 80x80 -size 80x80 xc:blue +swap -gravity center -composite ".$newPath);
?>
Note:- My server have Imagick S/W and its working perfectly with another methods like simple resizing, aspect ratio etc.
I tried examples from http://www.imagemagick.org/Usage/resize/#space_fill
Thanks