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
Hashes for pyimageexport-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51afa6b04a61efcc4632a632899311ceb64c013b32f3aa909e215e0868030282 |
|
MD5 | 27537393f8a2e5df299b7ce0cf29289b |
|
BLAKE2b-256 | 58e46bdd5bb8a3534b0046eb7b322e8497869b6eadff4e5a99b4250654343972 |