Skip to main content

Create image files or objects from pixela svg graphs.

Project description

# pixela2img
Create image files (or objects) from Pixela graphs.

#### example

* From this graph(<>)


* Create a `png` image below!


## Support

* Python 3.6+

## Usage

Install using `pip`.

$ pip install pixela2img

Create a `png` image with cli.

$ python -m pixela2img -u pixela2img -g pixela2img -d 20181229
$ open pixela2img-pixela2img-20181229.png

or Launch python interpreter and run command below

from pixela2img import Pixela2Img
pixela = Pixela2Img()

images = []
images.append(pixela.convert(user='pixela2img', graph='pixela2img', date='20181201'))
images.append(pixela.convert(user='pixela2img', graph='pixela2img', date='20181208'))
images.append(pixela.convert(user='pixela2img', graph='pixela2img', date='20181215'))
images.append(pixela.convert(user='pixela2img', graph='pixela2img', date='20181222'))
images.append(pixela.convert(user='pixela2img', graph='pixela2img', date='20181229'))

images[0].save('pixela.gif', save_all=True, append_images=images[1:], loop=0)

Created animation gif below!


## for Developer

#### require

* Python 3.7+
* pipenv

#### prepare

1. clone (or fork) this repository.
2. install dependencies with pipenv
3. edit code!

$ git clone
$ cd pixela2img
$ pipenv install

Project details

Download files

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

Source Distributions

No source distribution files available for this release. See tutorial on generating distribution archives.

Built Distribution

pixela2img-2018.1-py3-none-any.whl (4.5 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page