PSD2HTML
PSD to HTML converter based on [psd-tools](https://github.com/psd-tools/psd-tools)
Install
Use pip to install:
pip install psd2html
Usage
### As a command-line tool
The package comes with a command-line tool:
psd2html input.psd output.html
When the output path is a directory, or omitted, the tool infers the output name from the input:
psd2html file.psd # => file.html psd2html file.psd dir/ # => dir/file.html psd2html file.psd dir/file1 # => dir/file1.html psd2html file.psd dir/file1.html # => dir/file1.html
### As a python library
Example:
from psd2html import PSD2HTML
- with open(‘file.psd’, ‘rb’) as f:
converter = PSD2HTML(f) html = converter.html html_string = converter.html_str
Notes:
Not all PSD layers are being converted to HTML elements. Current release only converts the [TypeLayer](https://psd-tools.readthedocs.io/en/latest/reference/psd_tools.api.layers.html#typelayer) to HTML, all the others types i.e Artboard, PixelLayer, ShapeLayer and SmartObjectLayer are rendered as png images.
Future releases will include support for other types of layers.
Metadata
Release files for psd2html 0.3.0
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 |
|---|---|---|---|---|
| psd2html-0.3.0.tar.gz | 4.8 kB | Without provenance | Details for psd2html-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| psd2html-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for psd2html-0.3.0-py3-none-any.whl |
Total release size: 17.8 kB
Release files / psd2html-0.3.0.tar.gz
| Download URL | psd2html-0.3.0.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c649fcfc08305fa826ab0949a74077214c35b84892a2a7b65557b1b74cf28c1a
|
|
BLAKE2b-256 checksum How to use checksums |
b4639d77649bd21d5093cf75dbdd4753c8d3a9b1fde4f91eda095f2eab0a0081
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.7.2
|
Release files / psd2html-0.3.0-py3-none-any.whl
| Download URL | psd2html-0.3.0-py3-none-any.whl |
|---|---|
| Size | 13.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e808b09cdb43f26616727224777a909ffcdc2732652b32fa289db1a7bc0411b5
|
|
BLAKE2b-256 checksum How to use checksums |
28a34741fac262a23153958b3d1257bce74eaeee8f71eb989265d3e3a1ec27f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.7.2
|
Security for psd2html 0.3.0
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.