Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/manojpatra1991/image-optimization-app

A pdf with images generation application.
https://github.com/manojpatra1991/image-optimization-app

flask flask-image pdfkit wkhtmltopdf

Last synced: 10 days ago
JSON representation

A pdf with images generation application.

Awesome Lists containing this project

README

        

# Image-optimization-app

A pdf with images generation application.
This project is developed on Windows 10 OS and uses Python 3.

## Installation and Test requirements

1. Create a folder and clone the repository to that folder.
2. If you haven't installed virtualenv, run `pip install virtualenv`.
3. Create a new virtual environment inside the project folder with the command `virtualenv env`.
4. Install the following packages with `env\Scripts\pip install `.
Replace `` with package names.
The packages used for this project include:

1. flask
2. pdfkit

5. Download and Install wkhtmltopdf from [https://wkhtmltopdf.org/downloads.html](https://wkhtmltopdf.org/downloads.html) for Windows 64 bit.
6. Check the path to **wkhtmltopdf.exe** is correct in **app/input_module/input.py**.
7. Install the following node packages if not already installed in the app/static folder:

Bootstrap: `npm install --prefix ./app/static bootstrap`

Font-awesome: `npm install --prefix ./app/static font-awesome`
8. Run the program with `env\Scripts\python run.py`

## References
1. [wkhtmltopdf](https://wkhtmltopdf.org/)
2. [pdfkit](https://pypi.python.org/pypi/pdfkit)
3. [Flask](flask.pocoo.org/)