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:
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
Post a Comment