I am an imagemagick rookie, and I am trying to apply a mask on a black n white photo, so in the end, I have black of the photo turned to transparent.
I am transforming #000000 to #010101 for the original image to begin with, but when, after applying the mask I am turning all true black to transparent, I need to use a fuzz factor of 3%. And that again creates transparency in my photo obviously.
Is there something else I can do other than setting fuzz to 0% or turning the original true black to an even lighter gray?
Here is my script now:
convert ${previousline} -fill '#010101' -opaque '#000000' -scale 620x380+0+0 ${targetfile}
convert ${template-pic-mask_local} ${previousline} -geometry +48+52 ${template-pic-mask_local} -compose multiply -composite ${targetfile}
convert ${previousline} -fuzz 3% -transparent '#000000' ${targetfile}
convert ${template-pic-main_local} ${previousline} -geometry +241+25 -composite ${targetfile}
Any help will be very much appreciated! Thank you in advance
