image2html
For quick viewing images via html file.
Install
You can install it from pip or source code.
-
pip
pip install image2html
-
source code
git clone https://github.com/ZQPei/image2html.git cd image2html python setup.py install # use sudo if necessary
Usage
-
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')
-
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.
-
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
Metadata
Release files for image2html 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| image2html-0.0.6.tar.gz | 4.1 kB | Without provenance | Details for image2html-0.0.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| image2html-0.0.6-py3-none-any.whl | Python 3 | none | any | Details for image2html-0.0.6-py3-none-any.whl |
Total release size: 10.2 kB
Release files / image2html-0.0.6.tar.gz
| Download URL | image2html-0.0.6.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bb0833658723593ddd1dbf05f6de4330a19f9785d7ec53c013138532c15ff33a
|
|
BLAKE2b-256 checksum How to use checksums |
e8d0a73d02d52dc180415ca770dbaf24119f1f9d396b30b971c79b17d9a51762
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.7.7
|
Release files / image2html-0.0.6-py3-none-any.whl
| Download URL | image2html-0.0.6-py3-none-any.whl |
|---|---|
| Size | 6.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c02fd481e7641bacbffc78c3fe960ff7044150057216e410d858b0bab9842576
|
|
BLAKE2b-256 checksum How to use checksums |
6a9d7d85c1804d5d11f723db160305ad78452a3b887a7580fdd927570ab948dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.7.7
|
Security for image2html 0.0.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.