Skip to main content

Package to convert various formats of raster graphics images in a single line of code

Project description

PyImageExport

Package to convert various formats of raster graphics images in a single line of code.

A good alternative for image conversion, saving in databases, or image transmission.

From main image formats (like PNG and JPEG), to Base64 and BLOB.

Formats

Fully supported formats:

  • Base64

  • BLOB

  • BPM

  • EPS

  • GIF

  • IM

  • JPEG

  • PNG

  • PPM

  • SGI

  • TIFF

  • WEBP

Examples

Import and Instance the class

import PyImageExport
img = PyImageExport()
  1. Convert PNG image to Base64
image = img.export(input_image="./tests/image.png", input_format="png", output_format="base64")
  1. Convert JPEG image to BLOB
image = img.export(input_image="./tests/image.jpeg", input_format="jpeg", output_format="blob")
  1. Convert GIF image to WEBP
image = img.export(input_image="./tests/image.gif", input_format="gif", output_format="webp", output_name="image", output_path="./tests")

Contribute

If you want to propose a new format, please contact me using my social networks below.

Author

Alvaro Azael Rodriguez Rodriguez - (Development Lead) [Gitlab, Twitter]

Licence

This project is licensed under the MIT License - see the LICENSE file for details.

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

pyimageexport-1.0.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyimageexport-1.0.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file pyimageexport-1.0.0.tar.gz.

File metadata

  • Download URL: pyimageexport-1.0.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.5

File hashes

Hashes for pyimageexport-1.0.0.tar.gz
Algorithm Hash digest
SHA256 f6d718716669940695b9eaa3e6259a26721dc57f22efa6b6fee9ed0108378d17
MD5 5b6efbe4523b2fb4daa89775d15d5d4a
BLAKE2b-256 ccb7c76df29340bbb452154a697508dc412f3f5708bd3a26c08553c0b5548eb0

See more details on using hashes here.

File details

Details for the file pyimageexport-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: pyimageexport-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.5

File hashes

Hashes for pyimageexport-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 51afa6b04a61efcc4632a632899311ceb64c013b32f3aa909e215e0868030282
MD5 27537393f8a2e5df299b7ce0cf29289b
BLAKE2b-256 58e46bdd5bb8a3534b0046eb7b322e8497869b6eadff4e5a99b4250654343972

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