You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I am getting different results when I am trying to deskew a certain image using the Wand and using imageMagick command line.
The code for Wand is:
` with Image(filename=test_img) as img:
img.deskew(threshold=0.4)
img.save(filename=outputfile)`
The command line using imageMagick is:
`convert test_deskew.png -deskew 40% deskewed.jpg`
My os is: Ubuntu 18.04,
The Version: ImageMagick 6.9.7-4 Q16 x86_64 20170114
Please let me know how to use the Wand deskew method. I do not want to load images and save images to file using "convert".
If you know how to use the "convert" command line to load image and export images to memory, please share it.
Thank you very much!
The text was updated successfully, but these errors were encountered:
I am ending up with an error when I use the above code. A sample of my code is produced below. Please advise.
try:
with skew(blob=img_png) as img_png_1:
img_png_1.deskew(0.5 * img_png_1.quantum_range)
pil_image = Image.open(io.BytesIO(img_png_1.make_blob("png")))
img_png = image_to_byte_array(pil_image)
log.info("Corrected the Skewness for %s", file_name)
except Exception as e:
log.exception(f'Exception:{e} occured while Corrected the Skewness for {file_name}')
pass
Error Message: wand.exceptions.WandRuntimeError: MagickReadImage returns false, but did not raise ImageMagick exception. This can occur when a delegate is missing, or returns EXIT_SUCCESS without generating a raster.
When I run this in local windows, I dont see any error, but failed in docker(linux). It keeps working for few images and fails for few. Please advice.
Hi,
I am getting different results when I am trying to deskew a certain image using the Wand and using imageMagick command line.
The code for Wand is:
The text was updated successfully, but these errors were encountered: