PSDファイルのレイヤー構造+画像をディレクトリ構造+PNGとしてダンプするスクリプト
Project description
psdlayer2dirpy
- GitHub: https://github.com/aoirint/psdlayer2dirpy
- PyPI: https://pypi.org/project/aoirint-psdlayer2dirpy/
- Docker Hub: https://hub.docker.com/r/aoirint/psdlayer2dirpy
Usage
Binary
Download from Releases.
./psdlayer2dir image.psd -o output/
PyPI
pip3 install aoirint_psdlayer2dirpy
psdlayer2dir image.psd -o output/
Docker
docker pull aoirint/psdlayer2dirpy
docker run --rm -v "$PWD:/work" -w /work aoirint/psdlayer2dirpy image.psd -o output/
Development
This repository uses Poetry.
pyenv + Poetry
env PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install 3.10.10
pyenv local 3.10.10
poetry env remove python
poetry env use python
poetry install
Format code
poetry run pysen run lint format
Library management
# Add dependency
poetry add {package_name}
poetry add -G dev {package_name}
# Dump `requirements*.txt`
poetry export --without-hashes -o requirements.txt
poetry export --without-hashes --with dev -o requirements-dev.txt
Docker
docker build -t psdlayer2dirpy .
docker run --rm -v "./work:/work" -w /work psdlayer2dirpy image.psd -o output/
Dependencies
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for aoirint_psdlayer2dirpy-0.1.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f67d16ec0c88e488dca8289e0d3fed28dd42b48cfcfc5721a499e57c2529104 |
|
MD5 | 31d808c43d2c6ae0a16c44163d757de0 |
|
BLAKE2b-256 | 8e12e19749c3caf896fdfb15a9010d98f47bf8d2a79d8c077bc0cd6870a3268a |
Close
Hashes for aoirint_psdlayer2dirpy-0.1.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e23edc615716b5a14a28e11d3f405fedb27de91407ec74cdd3a1ba742c9dea2 |
|
MD5 | 1081828595fb782e06c85257e851c380 |
|
BLAKE2b-256 | f0fec701105bd1231fda7e3dab62dd97541a6d7a62a82c588100bbd933c99812 |