I have an image in .jpg format
with white background color
. I want to remove the white background color to transparent in Imagemagick
. I tried many ways but still the white background can not be removed. Can some one help me to solve this.
Click Picture Tools > Recolor > Set Transparent Color.
You cannot have transparent background colors in your JPEGs. The JPEG file format doesn't support transparency.
If you need transparent background, you need to convert the JPEG to
Example command:
convert your.jpg -transparent white your.png
First, you need to convert the image format from .jpg
to .png
format, because JPEG does not support transparency. Then use this command:
convert image1.png -fuzz 20% -transparent white result.png
The -fuzz
option allows the specified percentage deviation from the pure white colour to be converted to transparent as well. This is useful, for example, when your image contains noise or subtle gradients.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With