Skip to main content

Imagecast modifies images, optionally serving them via HTTP API

Project description

https://img.shields.io/badge/Python-3-green.svg https://img.shields.io/pypi/v/imagecast.svg https://img.shields.io/github/tag/panodata/imagecast.svg

Imagecast

About

Imagecast modifies images, optionally serving them via HTTP API.

There might still be dragons.

Install

Prerequisites

pip install imagecast

With service API:

pip install imagecast[service]

Features

  • Colorspace conversion: monochrome, grayscale

  • Cropping with negative right/bottom padding

  • Resizing while keeping aspect ratio

  • Output format: Any image formats or bytes

  • HTTP API

Synopsis

# Display on screen
imagecast --uri="$IMGURL" --display

# Colorspace reduction to bi-level with threshold, output as bytes
imagecast --uri="$IMGURL" --monochrome=200 --format=bytes

# Colorspace reduction, cropping, resizing and format conversion
imagecast --uri="$IMGURL" --grayscale --crop=40,50,-50,-40 --width=200 --save=test.png

Example:

imagecast --uri="https://unsplash.com/photos/WvdKljW55rM/download?force=true" --monochrome=80 --crop=850,1925,-950,-900 --width=640 --display

HTTP API

Start the Imagecast service as daemon:

imagecast service

Example:

/?uri=https%3A%2F%2Funsplash.com%2Fphotos%2FWvdKljW55rM%2Fdownload%3Fforce%3Dtrue&monochrome=80&crop=850,1925,-950,-900&width=640

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

imagecast-0.1.0.tar.gz (5.2 kB view details)

Uploaded Source

File details

Details for the file imagecast-0.1.0.tar.gz.

File metadata

  • Download URL: imagecast-0.1.0.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.8.2

File hashes

Hashes for imagecast-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f770135347f03b07878754c55ed6963d3e3f98ab4b8392538e7e98f5c657999f
MD5 da5f6e39ec9a5950b670b0877addb60f
BLAKE2b-256 1fa1c149666f7cd1eeb05dd6847874e80bfd30872a4b1563d5a3a718c6b52684

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