i am new at imagemagik developement.
i try create clear edges photos but not working with me, always have dots and dont know how to clean it, see this photo as an example:
orginal photo:
converted image:
and this is a code i used
Code: Select all
exec('convert bill.jpg -flatten -colorspace GRAY -negate -edge 3 -negate -normalize -threshold 9% -despeckle -contrast-stretch 0x100% bill.png');