Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/manojpatra1991/image-optimization-app
- Owner: MANOJPATRA1991
- Created: 2017-09-10T13:27:12.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-09-12T16:16:46.000Z (over 7 years ago)
- Last Synced: 2024-11-06T00:31:48.261Z (about 2 months ago)
- Topics: flask, flask-image, pdfkit, wkhtmltopdf
- Language: Python
- Homepage:
- Size: 30.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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/)