"-background transparent" not working
Posted: 2014-07-03T00:22:46-07:00
Hi,
We are using ImageMagick-6.8.9-4-Q16 on RHEL Linux machine. Our objective is to turn the background of our image to transparent. For this we have tried the following command.
however this is not effective in making the transparent background for the images
When we try to use
we get the following error message:
We alternatively tried the following command:
This did convert the white background to transparent for images with white backgrounds. However there is a risk that in case the background is not exactly white it may not change. As well as if an image has any white(rgb(255,255,255))content, it shall also be made transparent, which is not desired.
Request you to help find a solution for changing any type of background in the image to transparent without affecting any of the main image content using imagemagick.
Thanks.
We are using ImageMagick-6.8.9-4-Q16 on RHEL Linux machine. Our objective is to turn the background of our image to transparent. For this we have tried the following command.
Code: Select all
convert original.jpg -background transparent transformed.png
When we try to use
Code: Select all
convert original.jpg -background RGB(0,0,0) transformed.png
Code: Select all
syntax error near unexpected token `('
Code: Select all
convert original.jpg -transparent white transformed.png
Request you to help find a solution for changing any type of background in the image to transparent without affecting any of the main image content using imagemagick.
Thanks.