imagemagick - Converting jpg image with white background to transparent background png when image object also has white color -


i trying convert few jpg files white background png transparent background. using following command:

convert 2868cif.jpg -fuzz 10% -transparent white 2868cif.png

the command works fine on of images. images white content converts them white. refer sample images below:

original image enter image description here

convert image enter image description here

in logical terms, can understand why happening. wanted know if there workaround using imagemagick?

try floodfill transparent color:

convert input.jpg -fuzz 15% -fill none -draw "matte 0,0 floodfill" output.png 

Comments

Popular posts from this blog

Qt4: how to send QString inside a struct via QSharedMemory -

node.js - NodeJS remote terminal to Dropbear OpenWRT-Server -

node.js - On Gitbash - Bower : ENOGIT git is not installed or not in the PATH -