How to replace white background color with transparent of an image in ImageMagick?

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

  • either PNG (high quality, filesize possibly larger than JPEG)
  • or GIF (in case you can tolerate low quality and a range of maximally 255 colors).

Example command:

convert  your.jpg  -transparent white  your.png

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)