Skip to main content

A way to store images in YAML.

Project description

YAMLImg

A way to store images in YAML.

I made this after seeing Roadcrosser's JSON-G because it was too inspiring to ignore this opportunity.

Lint

Installation

pip install yamlimg

or from GitHub

pip install git+https://github.com/vcokltfre/yamlimg

Usage

Dumping an image:

yamlimg dump <image> [--output=output.yaml]

Loading an image:

yamlimg load <image> [--output=image.png]

Using the programmatic API:

from PIL import Image
from yamlimg import yaml_to_image, image_to_yaml

# Open an image
image = Image.open("image.png")

# Convert the image to yaml
yaml = image_to_yaml(image)

# Convert the yaml back to an image
image = yaml_to_image(yaml)

Note

There is no point in using this. It was made as a joke and I implore you not to ever actually use this for anything other than a joke.

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

yamlimg-1.0.2.tar.gz (3.7 kB view hashes)

Uploaded Source

Built Distribution

yamlimg-1.0.2-py3-none-any.whl (4.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page