base64-to-image-0.0.1
توضیحات
Image to base64 and back.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | base64-to-image-0.0.1 |
| نام | base64-to-image |
| نسخه کتابخانه | 0.0.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Vladimir Iglovikov |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/ternaus/base64ToImageConverters |
| آدرس اینترنتی | https://pypi.org/project/base64-to-image/ |
| مجوز | - |
# Library for converting RGB / Grayscale numpy images from to base64 and back.
## Installation
```
pip install -U image_to_base_64
```
## Conversion
### RGB to base 64
```
base64 = rgb2base64(rgb_image, image_format)
```
where image format is `JPEG`, `PNG`
### Grayscale to base 64
```
base64 = grayscale2base64(grayscale_image)
```
### Base64 to RGB image
```
rgb_image = base64_to_rgb(base64)
```
### Base64 to Grayscale image
```
grayscale_image = base64_to_grayscale(base64)
```
#### Issues
For some reason I cannot convert `RGB` image to `JPEG` representation in base 64 and back without losses.
=> test only for `PNG` and not `JPEG`
نحوه نصب
نصب پکیج whl base64-to-image-0.0.1:
pip install base64-to-image-0.0.1.whl
نصب پکیج tar.gz base64-to-image-0.0.1:
pip install base64-to-image-0.0.1.tar.gz