Skip to main content

Asynchronous media distortion module

Project description

PyDistort

PyPI - Version PyPI - Python Version Hatch project


Table of Contents

Installation

pip install pydistort

Dev build

# without optional dependencies:
pip install -U git+https://github.com/barsikus007/pydistort
# with optional dependencies:
pip install -U "pydistort[all]@ git+https://github.com/barsikus007/pydistort"

For distortion, you need to install imagemagick

Linux (Ubuntu)

sudo apt install imagemagick

Windows

You can do this via scoop.sh

scoop install imagemagick

For video, gif and apng procession, you need to install ffmpeg

Linux (Ubuntu)

sudo apt install ffmpeg

Windows

You can do this via scoop.sh

scoop install ffmpeg

For lottie->gif procession you need to install gtk

Linux (Ubuntu)

sudo apt install libgtk-3-0

Windows

You can do this via scoop.sh

scoop install msys2
msys2  # then exit in msys shell
msys2 -c "pacman -S mingw-w64-x86_64-gtk3 --noconfirm"

License

pydistort is distributed under the terms of the MIT license.

Usage

from pydistort.image.seam_carving import distort

await distort('image.png', 60)

TODO for 0.1.0 release

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

pydistort-0.0.1.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

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

pydistort-0.0.1-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

Details for the file pydistort-0.0.1.tar.gz.

File metadata

  • Download URL: pydistort-0.0.1.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.23.3

File hashes

Hashes for pydistort-0.0.1.tar.gz
Algorithm Hash digest
SHA256 554dab0f575b26cbf6c90f1e4357e7dc60a6b7e97a8e6959defd75d5533b39e3
MD5 85ac88cae73caeb312df1b6a57b3a200
BLAKE2b-256 3caaa9d057a438360c026844543aeb93e81205b4f4cf4ae83eb6793bdb6c9058

See more details on using hashes here.

File details

Details for the file pydistort-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: pydistort-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 11.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.23.3

File hashes

Hashes for pydistort-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e7e442e19a04280b975b86f3830ba0a8621257a0c0618a8369a0f348cb5cddcb
MD5 1721e14f1299b3a394c11e9dfb30addf
BLAKE2b-256 11dcbd9b3b4acb039425d0c19c8a39996ef316bedeab5eaebdf2feece57e66c5

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