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 details)

Uploaded Source

File details

Details for the file sauron_doc_rotation-0.1.0.tar.gz.

File metadata

  • Download URL: sauron_doc_rotation-0.1.0.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for sauron_doc_rotation-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5647bfab34d9c10762ab8da586f4eaec357f307c9894f4546db7954900f0cad2
MD5 34cca6bbe47d982152f4c013a620b5c2
BLAKE2b-256 8f8540e5a39a58830ff0e9c5cdb2ce8258b1fd3912fc68d23e99786c1e0adb8f

See more details on using hashes here.

Supported by

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