Convert a PSD file to PNG files while maintaining the layer hierarchy.
Project description
psd2pngs
Introduction
psd2pngs converts a psd file to png files while maintaining the layer hierarchy and performing the appropriate renaming, using multiprocessing. You do not have to read this long docs, just download and open a psd file with it!
Example
Note that this GIF is in fast forward.
Usage
Using as an app
- Just open
.psd
file with this app. (Executable version only.) - Alternatively, this app can also be used with command prompt.
> psd2pngs -h
Usage: psd2pngs [OPTIONS] PSD_PATH
Options:
-v, --version Show the version and exit.
-o, --out PATH Output directory path. If not specified, output
to the same directory as the PSD file.
-s, --single-process Force not to use multiprocessing.
-t, --tasks-count INTEGER Number of tasks. Recommended to be less than or
equal to the number of CPUs (32) because the
process maximizes the use of CPUs.
-j, --json Output JSON file containing layer information in
snake case.
-jc, --json-camel-case Output JSON file containing layer information in
camel case.
-h, -?, --help Show this message and exit.
The type of content of Output JSON file (snake_case) is the following.
class LayerInfo(NamedTuple):
local_path: str
name: str
safe_name: str
is_visible: bool
is_group: bool
children: "Iterable[LayerInfo]"
The type of content of Output JSON file (camelCase) is the following.
class LayerInfo(NamedTuple):
localPath: str
name: str
safeName: str
isVisible: bool
isGroup: bool
children: "Iterable[LayerInfo]"
Using as a module
See the documentation (readthedocs.io).
Installation
Option 1. Executable version
Download the latest release from Releases.
Option 2. Python version using pip install
py -m venv venv
"./venv/Scripts/Activate.bat"
pip install psd2pngs
psd2pngs from.psd
Option 3. Python version using git clone
git clone https://github.com/34j/psd2pngs.git
cd ./psd2pngs
py -m venv venv
"./venv/Scripts/Activate.bat"
pip install -r requirements.txt
python -m psd2pngs from.psd
Option 4. Executable version - Compiling yourself using pip
py -m venv venv
"./venv/Scripts/Activate.bat"
pip install psd2pngs
pip install pyinstaller
pyinstaller venv/Lib/site-packages/psd2pngs/__main__.py --onefile -n psd2pngs
move "./dist/psd2pngs.exe" "./"
./psd2pngs from.psd
Option 5. Executable version - Compiling yourself using git
git clone https://github.com/34j/psd2pngs.git
cd ./psd2pngs
py -m venv venv
"./venv/Scripts/Activate.bat"
pip install -r requirements.txt
pip install pyinstaller
pyinstaller psd2pngs/__main__.py --onefile -n psd2pngs
move "./dist/psd2pngs.exe" "./"
./psd2pngs from.psd
日本語の説明
psd2pngsは、psdファイルをレイヤーの階層構造を維持したままpngファイルに変換し、適切なリネームを行うアプリケーションです。
1ファイルにまとまったWindows用実行ファイルpsd2pngs.exe
も配布しています。
インストール方法
- Releasesから最新のリリースをダウンロードします。
使い方
- psdファイルを右クリックし、
プログラムから開く
を使ってこのアプリで開きます。
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
File details
Details for the file psd2pngs-1.2.4.tar.gz
.
File metadata
- Download URL: psd2pngs-1.2.4.tar.gz
- Upload date:
- Size: 11.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a3fe3aa9d29aafa63cca6c48951c718af921b78cadd57a9575ba1a07ba1267c |
|
MD5 | 661005c23dbafa6c8f744eac0b28e24d |
|
BLAKE2b-256 | 52f6ef7fb4d7f5caf2eb85ee1397a0a6acf70794c3878d244a36ac275968caac |