Reputation: 31
I am having trouble converting the following command-line to Wand.
convert img.png -deskew 80% -print "%[deskew:angle]" null:
I was able to locate the deskew method in Wand but I want to store the amount of deskew.
Upvotes: 0
Views: 248
Reputation: 24419
You would use the Image.artifacts dict.
from wand.image import Image
with Image(filename='rose:') as img:
img.deskew(0.8 * img.quantum_range) # 80%
angle = float(img.artifacts['deskew:angle'])
Upvotes: 2