Skip to main content

Hosting pictures into html, website, python Flask and GUI, image manupilation

Project description

PyPI version

json2df is a library does batch processing pictures

github: https://github.com/shichaoji/picutils

  • If you would like to run a image hosting website, it is handy to process a large number of images

I have used the library processed almost 1 million photos for my other project face similarity searching & indexing, landmark detecting

http://iridescent.date/

installation

pip install pictutils

usage example

Batch reducing pics size to about 200kb each, if you have many HD pics saved in a folder, run the library will batch coverting pics in the folder to .jpg and then resizing all pics till 100-200 kb each.R

  • Run $ python -m picutils.process_pics , and then pass the images folder’s name, in the directory where that folder resides

Demo 1

Making index.html webbrowser file for a folder of pics for overall viewing, or hosting in a webpage

  • Run $ python -m picutils.html_index , and then pass the images folder’s name, in the directory where that folder resides

    • the program will make a sub-thumbnail folder, so even if image sizes in the folder are very large, the small view pics in the index html will load instantly, for the purpose of hosting picture website when visitors has slow internet

    • Thanks to myphotopack.com for those pretty pictures

Demo 2

Making a viewer.html webbrowser file for a folder of pics for single viewing, e.g. hosting a manga Website

  • Run $ python -m picutils.html_viewer , and then pass the images folder’s name, in the directory where that folder resides

    • click right side of the photo will view next, while clicking left side turns to previous photo

Demo 3

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

picutils-0.1.6.8.9.tar.gz (9.3 kB view hashes)

Uploaded source

Built Distributions

picutils-0.1.6.8.9-py2.7.egg (21.3 kB view hashes)

Uploaded 2 7

picutils-0.1.6.8.9-py2-none-any.whl (13.0 kB view hashes)

Uploaded py2

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