A Python library for image scaling and conversion
Project description
Scaler
A Python library for image scaling and conversion.
Installation
pip install scaler
Usage
from scaler.scaler import Scaler, TransformOptions, InputOptions, OutputOptions, Fit, ImageDelivery
# Initialize the Scaler instance with the API key
scaler = Scaler(api_key='your_api_key')
# Define the transform options
options = TransformOptions(
input=InputOptions(localPath='path/to/image.heic'),
output=OutputOptions(
type='jpeg',
fit=Fit(width=1024, height=1024),
imageDelivery=ImageDelivery(saveToLocalPath='path/to/output.jpg'),
quality=0.8
)
)
# Perform the transformation
response = scaler.transform(options)
print(response)
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
scaler_pics-0.1.0.tar.gz
(4.7 kB
view details)
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 scaler_pics-0.1.0.tar.gz.
File metadata
- Download URL: scaler_pics-0.1.0.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
675a29296bf160ddf33583e3dba39604f7c9bed0705bb90b9b4fb8c78ae4e742
|
|
| MD5 |
77b770f1e03c3d8c541e812471d95510
|
|
| BLAKE2b-256 |
a1663e8e93232b6199603c939e97e51aeda261f482ba17f7f110998c33e23525
|
File details
Details for the file scaler_pics-0.1.0-py3-none-any.whl.
File metadata
- Download URL: scaler_pics-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3cde2e0f3cf11443a6a86dc199ad4740292fec43a2c33f96bedc5b40b17ca0d1
|
|
| MD5 |
6e250b37e41ab4f1205dcc43010f29f7
|
|
| BLAKE2b-256 |
19b64992801e8626a76b3a61876ce217d530dee2143838f5b59ee0bba4412110
|