Code: Select all
convert input -background black -set option:deskew:auto-crop 1 -deskew 40 outputCode: Select all
convert in.jpg -background green -set option:deskew:auto-crop 1 -deskew 40% -fuzz 5% -trim +repage out.jpgCode: Select all
convert input -background black -set option:deskew:auto-crop 1 -deskew 40 outputCode: Select all
convert in.jpg -background green -set option:deskew:auto-crop 1 -deskew 40% -fuzz 5% -trim +repage out.jpgMasejoer wrote:The handful of forum results don't help with this issue. I have an image that is being de-skewed by about 5%. This rotates the image and leaves solid colors where data didn't exist. I cannot seem to get auto-crop to work, at all.
I've tried:Code: Select all
convert input -background black -set option:deskew:auto-crop 1 -deskew 40 output
Which doesn't work. I've used various auto-crop values with no luck. I just need the introduced-color to be completely removed after the deskew.Code: Select all
convert in.jpg -background green -set option:deskew:auto-crop 1 -deskew 40% -fuzz 5% -trim +repage out.jpg
Code: Select all
convert input -deskew XX% -fuzz YY% -trim +repage outputCode: Select all
convert input -deskew XX% -fuzz YY% -trim +repage -shave ZZxZZ outputI've had great luck running the deskew to get the images straight, and extremely angles (40 degrees) if I deskew twice. I just can't get good consistent cropping from the deskewed output - perspective distortion being the worst. I'm still amazed at how well imagemagick generally does on most things.fmw42 wrote:From my experience -deskew does not work well for angle above about 5% and probably not well also if the sides are not straight
Users browsing this forum: Amazon [Bot] and 26 guests