Skip to main content

Fix rotation in images

Project description

Sauron-doc-rotation

The Sauron DOC rotation is a simple project that aims to rotate a base64 image to keep it in the correct direction.

How to use?

You can use the rotate_image_base64 method in sauron_rotate to rotate your base64 image.

The following code shows how you can use this method.

from sauron_doc_rotate.sauron_rotate import SauronRotate

sr = SauronRotate(enable_logging=False)

sr.rotate_image_base64(img_base64)
  • Method / Class parameters

    • enable_logging - whether or not to show logs during code execution
  • Method returns

    • A dict with two values:
      • angles_for_rotation - the angles tuple used to rotate the imagem
      • rotated_img_base64 - the base64 image in the correct direction

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sauron_doc_rotation-0.1.0.tar.gz (6.2 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page