Skip to main content

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)

Uploaded Source

Built Distribution

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

scaler_pics-1.0.1-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

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

Hashes for scaler-pics-1.0.1.tar.gz
Algorithm Hash digest
SHA256 97f8100f50022f5185459c7990edc5bda3b87ce5aba5b2a39ba6846c4c52365a
MD5 234e92580469f8564f5fabea250de0fa
BLAKE2b-256 2bfaa13106f5dfcadf1b0903b979c19ef100632eecdd00ea2cbab87cc28b05cf

See more details on using hashes here.

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

Hashes for scaler_pics-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 717d9c785b23aa90a76e948170643dd9e3271a18d47608a426ae65eff469d4fe
MD5 12889a0a01cffb98d78ac1393e68089c
BLAKE2b-256 61857f08666067c3f22b4362d74abb1bc3e6be72fc74be62837a51e9bf2e694f

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