Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script background removal
#3
From my memos, a Color-to-alpha in IM:
Code:
convert infile.png \( -clone 0 -fill "#ffffff" -colorize 100 \) \( -clone 0,1 -compose difference -composite -separate +channel -evaluate-sequence max -auto-level \) -delete 1 -alpha off -compose over -compose copy_opacity -composite outfile.png

(The backslashes ensure that the parens are passed to IM and not interpreted by the shell.)
Reply


Messages In This Thread
Script background removal - by TC1927 - 10-18-2019, 09:08 AM
RE: Script background removal - by rich2005 - 10-18-2019, 12:23 PM
RE: Script background removal - by Ofnuts - 10-18-2019, 02:37 PM
RE: Script background removal - by rich2005 - 10-19-2019, 07:10 PM
RE: Script background removal - by BigGimpin - 05-05-2020, 02:33 PM

Forum Jump: