Skip to main content

A Python library for image scaling and conversion

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-0.1.1.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scaler_pics-0.1.1-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file scaler-pics-0.1.1.tar.gz.

File metadata

  • Download URL: scaler-pics-0.1.1.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.3

File hashes

Hashes for scaler-pics-0.1.1.tar.gz
Algorithm Hash digest
SHA256 db334d188a0741805cc952b7b29df0299102575cfc76cd6d4cfc598be7608941
MD5 5448bfb8eb8e3f87f721d5aa7e8b5833
BLAKE2b-256 be1754bf99e10dd9c581f3e0bab02f87d025fd61073cf140c356b078533cca61

See more details on using hashes here.

File details

Details for the file scaler_pics-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: scaler_pics-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.3

File hashes

Hashes for scaler_pics-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a8b00024b1218a1b02efcfe409c7915f89da8fdc146471975ee8fd2a17adf632
MD5 d0d56ef85eaec6ca00afed64f0a22e4a
BLAKE2b-256 fa0ed5be8fe432a8eecd2a34e55095f8439ef9f2367cc4b3e07e36234ff596c7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page