[magick-users] remove shadow from picture
Kyrill
kyrill at gmail.com
Fri Aug 22 00:54:30 PDT 2008
Hi Fred,
Thanks for your fast response.
On Wed, Aug 20, 2008 at 6:41 PM, Fred Weinhaus <fmw at alink.net> wrote:
> It would be most helpful to provide the command lines you used for
> each step, not just the pictures.
Here are the commands:
>
> >
> >Original File
> >http://img179.imageshack.us/img179/255/origke7.jpg
>
convert orig.jpg \( +clone -fx "p{0,0}" \) -compose Difference -composite
-modulate 100,0 +matte diff.png
> >Difference
> >http://img170.imageshack.us/img170/3316/diffih5.png
>
convert diff.png -threshold 25% threshold.png
convert threshold.png -bordercolor black -border 1x1 -matte -fill none -fuzz
20% -draw "matte 0,0 floodfill" -shave 1x1 miff:- | convert - -fill white
-opaque black +matte -fill black -opaque black threshold.png
<http://img170.imageshack.us/img170/3316/diffih5.png>
> >
> >Threshold
> >http://img170.imageshack.us/img170/7930/thresholdhi5.png
>
convert orig.png threshold.png +matte -compose CopyOpacity -composite
out.png
<http://img170.imageshack.us/img170/7930/thresholdhi5.png>
> >
> >Image without background but with shadow
> >http://img186.imageshack.us/img186/5355/outhb7.png
> >
>
Greetings
More information about the Magick-users
mailing list