0

I followed this solution already given to same question: -fuzz 5% -fill magenta -draw 'color 0,0 floodfill' -transparent magenta result.pngbut I must have failed it when I converted it to my workflow as it removes all white within the drawing as well. cd cd desktop/drawings magick mogrify -path ../drawings2 -format png -fuzz 40% -fill white -draw 'color 0,0 floodfill' -transparent white *.png

Here's a before/after with before a jpeg for size requirement.

[OriginalMandala] [ConvertedMandala]

Pamelane
  • 11
  • 2
  • Images look the same here but on computer the second is transparent where not black. – Pamelane Apr 05 '23 at 21:59
  • JPG does not support transparency. You need to save as PNG. To make the first transparent use something like `convert image.jpg -fuzz 15% -transparent white image.png`. Increase the fuzz value if it is not all transparent. – fmw42 Apr 05 '23 at 22:26
  • Thak you. Could you possibly change your code to match the way I have it setup with folders? Embarrassed to ask my brain just can't grasp coding. I'm using PNG with ImageMaagick, not JPG at all. It was a quick solution to my PNG being rejected for being too large. – Pamelane Apr 05 '23 at 23:50
  • `cd cd desktop/drawings magick mogrify -path ../drawings2 -format png -fuzz 15% -transparent white *.png` Increase fuzz value as needed. – fmw42 Apr 06 '23 at 00:03
  • It's still removing all white including within the drawings but the backgrounds look lovely. – Pamelane Apr 06 '23 at 01:57
  • So what do you want? Do you want the inside of the black lines to be white and outside to be transparent? If so, `cd cd desktop/drawings magick mogrify -path ../drawings2 -format png -fuzz 15% -fill none -draw "alpha 0,0 floodfill" *.png` – fmw42 Apr 06 '23 at 15:52

0 Answers0