Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pranjalwalia/pixel_art_generator

A python script to pixilate most jpeg,jpg,png files developed as python project for the first semester.
https://github.com/pranjalwalia/pixel_art_generator

Last synced: 1 day ago
JSON representation

A python script to pixilate most jpeg,jpg,png files developed as python project for the first semester.

Awesome Lists containing this project

README

        

# Pixel Art Generator

A python script that can be used to pixilate most jpeg, jpg, png images according to the user specified pixel dimensions.
## Getting Started
### Prerequisites
The script uses the following python libraries:
* [NumPy](https://numpy.org/)
* [Pillow](https://pypi.org/project/Pillow/)
* [matplotlib](https://matplotlib.org/)
* [scipy](http://www.dropwizard.io/1.0.2/docs/)
* [PIL](http://www.dropwizard.io/1.0.2/docs/)

### Installing

In the terminal, execute the following commands after cloning the project on your local machine:
* Installing pip3:
`
sudo apt-get -y install python3-pip
`

* Installing NumPy

`sudo pip3 install numpy`

* Install Pillow

`sudo pip3 install Pillow==2.2.1`

* Install PIL

`sudo pip3 install pil`

* Install scipy

`sudo pip install git+https://github.com/scipy/scipy.git`
## Running
### Important
`Give the absolute path of the test image in the main function of the script in main.py before running the script`

Execute `python3 main.py` in the project directory to run the script.
* ##### The script may take some time to pixilate the images that are relatively larger in size.
* ##### Also it is advised to not try to pixilate full HD or 4K images as these may cause overflow errors.
* #### I have also given some sample images for the user to try the script in the images folder.

## Contributing
To raise issues, request a feature or contribute, visit [here](https://github.com/masterchief01/Pixel_art_generator).