How do I remove the background?
Posted: 2009-05-25T17:00:41-07:00
I want to remove the background and border of this image :
and am using this code :
where c.jpg is above image.
Using xampp with gd and imagemagick on windowsxp.
The problem is c3 image is same as c2 but with a different background. C3 image preview :
The final image should look like :
Thanks
and am using this code :
Code: Select all
exec("convert c.jpg -quality 100 c.jpg");
exec("convert c.jpg -fuzz 25000 -fill black -draw 'color 5,5 floodfill' -quality 100 c2.jpg");
exec("convert c2.jpg -negate -quality 100 c3.jpg");
exec("convert c3.jpg -shave 10x10 -quality 100 done.jpg");
Using xampp with gd and imagemagick on windowsxp.
The problem is c3 image is same as c2 but with a different background. C3 image preview :
The final image should look like :
Thanks