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

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -