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()
- Convert PNG image to Base64
image = img.export(input_image="./tests/image.png", input_format="png", output_format="base64")
- Convert JPEG image to BLOB
image = img.export(input_image="./tests/image.jpeg", input_format="jpeg", output_format="blob")
- 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.
Metadata
Release files for pyimageexport 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyimageexport-1.0.0.tar.gz | 3.1 kB | Without provenance | Details for pyimageexport-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyimageexport-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for pyimageexport-1.0.0-py3-none-any.whl |
Total release size: 7.3 kB
Release files / pyimageexport-1.0.0.tar.gz
| Download URL | pyimageexport-1.0.0.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f6d718716669940695b9eaa3e6259a26721dc57f22efa6b6fee9ed0108378d17
|
|
BLAKE2b-256 checksum How to use checksums |
ccb7c76df29340bbb452154a697508dc412f3f5708bd3a26c08553c0b5548eb0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / pyimageexport-1.0.0-py3-none-any.whl
| Download URL | pyimageexport-1.0.0-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
51afa6b04a61efcc4632a632899311ceb64c013b32f3aa909e215e0868030282
|
|
BLAKE2b-256 checksum How to use checksums |
58e46bdd5bb8a3534b0046eb7b322e8497869b6eadff4e5a99b4250654343972
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for pyimageexport 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.