Skip to main content

A Python library for image scaling, conversion and document thumbnail generation.

Project description

Scaler

A Python library for image scaling, conversion and document thumbnail generation.

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)

Get API key from Scaler

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.2.tar.gz (5.0 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-1.0.2-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: scaler-pics-1.0.2.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for scaler-pics-1.0.2.tar.gz
Algorithm Hash digest
SHA256 f425690dab55e94823ee7af8213894c598af0825317ddfacaf670b7730c9d357
MD5 82c94754fe863a74f64ac438797215ef
BLAKE2b-256 a00da2bed4f7827029faef9d101224a8af5fb812f1688b53ef19979b8a9b065e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: scaler_pics-1.0.2-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

Hashes for scaler_pics-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 17c11a13176fbcc1078af0158e01b71e02eb34f55ca8ba95d96a8bb92ce2df18
MD5 0d279189622aa92bf211a0ec39eef9d0
BLAKE2b-256 d741f25ea65da6e9212ae86ef74f2e3082973e51d56a53f5424021c637c0dd5f

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