Skip to main content

Display images with html file.

Project description

image2html

For quick viewing images via html file.

Install

You can install it from pip or source code.

  1. pip

    pip install image2html
    
  2. source code

    git clone https://github.com/ZQPei/image2html.git
    cd image2html
    python setup.py install # use sudo if necessary
    

Usage

  1. make flist

    # Get all the path of images in dir and save them to output file.
    make_flist [dir] [output] --keyword keyword1, keyword2 --ext ('.png', '.jpg') --recursive
    
    # for example
    make_flist demo_img_folder1 img_flist1.txt --keyword cmp cmp --ext ('.png', '.jpg')
    
  2. image2html

    # Display all the images with specified extension in demo/iimg_folder1.
    image2html --dirs demo/img_folder1 --output demo/demo_single.html
    
    # Note that if there are multiple dirs, the number of images shall be equal in each directory.
    image2html --dirs demo/img_folder1 demo/img_floder2 --output demo/demo_multiple.html
    
    # Then you will get demo_single.html and demo_multiple.html in demo folder.
    
  3. Use a http server to view html file on browser.

    # First build a http server
    build_server --port 8000
    
    # Then open your browser with address http://your_ip_address:8000/home/pzq/github/image2html/demo/demo_multiple.html.
    

Example

demo1 demo1

Project details


Download files

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

Files for image2html, version 0.0.6
Filename, size File type Python version Upload date Hashes
Filename, size image2html-0.0.6-py3-none-any.whl (6.1 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size image2html-0.0.6.tar.gz (4.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page