A Python library for image scaling, conversion and document thumbnail generation.
Project description
Scaler
A Python library for image scaling and conversion.
Installation
pip install scaler-pics
Usage
from scaler-pics 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-1.0.1.tar.gz
(4.9 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-1.0.1.tar.gz.
File metadata
- Download URL: scaler-pics-1.0.1.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
97f8100f50022f5185459c7990edc5bda3b87ce5aba5b2a39ba6846c4c52365a
|
|
| MD5 |
234e92580469f8564f5fabea250de0fa
|
|
| BLAKE2b-256 |
2bfaa13106f5dfcadf1b0903b979c19ef100632eecdd00ea2cbab87cc28b05cf
|
File details
Details for the file scaler_pics-1.0.1-py3-none-any.whl.
File metadata
- Download URL: scaler_pics-1.0.1-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
717d9c785b23aa90a76e948170643dd9e3271a18d47608a426ae65eff469d4fe
|
|
| MD5 |
12889a0a01cffb98d78ac1393e68089c
|
|
| BLAKE2b-256 |
61857f08666067c3f22b4362d74abb1bc3e6be72fc74be62837a51e9bf2e694f
|