Page 1 of 1

Problem creating backgorund transparent

Posted: 2012-03-24T01:45:07-07:00
by ratneshsoni
hello,

I am using below command to make background transparent. in this there is white background over there and i want to make it transparent.

convert http://www.new-website-designs.com/454_env_liner.png -alpha set -channel RGBA -fuzz 10% -fill none -floodfill +0+0 '#FFFFFF' http://www.new-website-designs.com/454_env_linernew.png

but as i run this command i got following error. What did i do wrong in this, please let me know and help me in resolving this issue.
convert.exe: unrecognized color `'#FFFFFF'' @ warning/color.c/GetColorCompliance/947.

Re: Problem creating backgorund transparent

Posted: 2012-03-24T04:24:03-07:00
by Bonzo
This works for me with Windows command line:

Code: Select all

convert 454_env_liner.png -fuzz 10% -transparent #FFFFFF 454_env_linernew.png
This also worked:

Code: Select all

convert http://www.new-website-designs.com/454_env_liner.png -alpha set -channel RGBA -fuzz 10% -fill none -floodfill +0+0 #FFFFFF http://www.new-website-designs.com/454_env_linernew.png

Re: Problem creating backgorund transparent

Posted: 2012-03-24T09:39:39-07:00
by fmw42
convert http://www.new-website-designs.com/454_env_liner.png -alpha set -channel RGBA -fuzz 10% -fill none -floodfill +0+0 '#FFFFFF' http://www.new-website-designs.com/454_env_linernew.png
As you seem to be on Windows, try double quotes around your hex color and not single quotes. Also -fuzz 10% needs to be 10%%. The percent needs to be escaped in Windows.

see
http://www.imagemagick.org/Usage/windows/


Do you have write access to http://www.new-website-designs.com/ to be able to upload after creating that file?