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()
- 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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f6d718716669940695b9eaa3e6259a26721dc57f22efa6b6fee9ed0108378d17
|
|
| MD5 |
5b6efbe4523b2fb4daa89775d15d5d4a
|
|
| BLAKE2b-256 |
ccb7c76df29340bbb452154a697508dc412f3f5708bd3a26c08553c0b5548eb0
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
51afa6b04a61efcc4632a632899311ceb64c013b32f3aa909e215e0868030282
|
|
| MD5 |
27537393f8a2e5df299b7ce0cf29289b
|
|
| BLAKE2b-256 |
58e46bdd5bb8a3534b0046eb7b322e8497869b6eadff4e5a99b4250654343972
|