Sign inSign up

viyh/pyrrot

By viyh

•Updated over 5 years ago

Simple Party Parrot generator API and UI.

Image
0

821

viyh/pyrrot repository overview

⁠Party Pyrrot

Simple Party Parrot generator API and UI.

⁠Installation

  • Build the docker container:
    docker build -t viyh/pyrrot .
  • Run the docker container:
    docker run --rm -it -p 5000:5000 viyh/pyrrot

⁠API

The API is accessible at /api/v1.

  • /parrots [GET] - List the available parrots
  • /parrots/<parrot> [GET, POST] - Return default parrot image
    • overlay - The URL for the overlay image. Default: None
    • speed - The speed of parroting expressed in milliseconds per frame between 20 and 1000. Default: 50 ms per frame
    • size - The size of the overlay image expressed as an float between 0.1 and 2.0. Default: 1.0
    • offset_x - The x-axis offset in pixels of the overlay image expressed as an integer between -320 and 320. Default: 0
    • offset_x - The y-axis offset in pixels of the overlay image expressed as an integer between -320 and 320. Default: 0
    • resize - The output image size expressed in pixel dimensions as a string "XxY", e.g. "128x128". Default: "320x320"
⁠Examples

⁠To Do

  • Fix middle parrot overlay
  • Add resize in UI

⁠Credit

The inspiration for this came from the original PPaaS code: https://github.com/francoislg/PPaaS⁠

Tag summary

Content type

Image

Digest

Size

54.2 MB

Last updated

over 5 years ago

docker pull viyh/pyrrot