Removing a shadow from an image
Posted: 2018-08-15T15:36:29-07:00
Hi there,
I've been trying to remove a shadow from an image for some time as well as make the background transparent, but have had a great deal of difficulty.
Here are two starter images:
and
I have been successful in removing backgrounds and making these images transparent, seen in cases here:
and
respectively.
This was done using this script:
However, the bottom shadow has been a real tricky problem to solve, mainly because it is not entirely black, and although always at the bottom of the shoe, it never fully is one colour or another, or is sometimes blocked by a shoe part.
I was thinking of setting up a meta mask and cutting off the bottom of the shoes, but this didn't work as I expected. I then tried adding a background of black with a higher than usual fuzz (around 10%) to try and get the background and shadow all one colour. Once done, i was going to set the black to transparent. Yet this did not work either.
Anyone have any suggestions that could help?
I've been trying to remove a shadow from an image for some time as well as make the background transparent, but have had a great deal of difficulty.
Here are two starter images:
and
I have been successful in removing backgrounds and making these images transparent, seen in cases here:
and
respectively.
This was done using this script:
Code: Select all
convert Last\ Shot\ \(2018\)-f6179a7a-7b21-41a5-87bf-885268f78e04\ \(1\).jpg -alpha set -bordercolor white -border 1 -fill none -fuzz 3% -draw "color 0,0 floodfill" result1_fill.png
I was thinking of setting up a meta mask and cutting off the bottom of the shoes, but this didn't work as I expected. I then tried adding a background of black with a higher than usual fuzz (around 10%) to try and get the background and shadow all one colour. Once done, i was going to set the black to transparent. Yet this did not work either.
Anyone have any suggestions that could help?