Metadata-Version: 2.4
Name: psd-toolkit
Version: 0.1.1
Summary: A toolkit for batch processing PSD files - hide text layers and export to PNG
Author-email: Heru Handika <herubiolog@gmail.com>
License: MIT
Project-URL: Homepage, https://github.com/hhandika/psd-toolkit
Project-URL: Repository, https://github.com/hhandika/psd-toolkit
Project-URL: Issues, https://github.com/hhandika/psd-toolkit/issues
Keywords: psd,photoshop,batch-processing,image-processing,automation
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: End Users/Desktop
Classifier: Topic :: Multimedia :: Graphics :: Graphics Conversion
Classifier: Topic :: Utilities
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Operating System :: OS Independent
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pillow>=12.0.0
Requires-Dist: psd-tools>=1.12.0
Requires-Dist: tqdm>=4.67.1
Dynamic: license-file

# psd-toolkit

A Python toolkit for batch processing Adobe Photoshop PSD files. Automatically hide text layers and export to PNG format.

## Features

- 🚀 Batch process multiple PSD files in a directory
- 📝 Automatically hide all text layers
- 🖼️ Export processed files as PNG images
- 📁 Support for recursive directory processing
- ⚡ Preserve folder structure in output

## Installation

Install using pip:

```bash
pip install psd-toolkit
```

Or using uv:

```bash
uv add psd-toolkit
```

## Usage

### Command Line

Process PSD files in a directory:

```bash
psd-toolkit -d /path/to/psd/files
```

Process recursively and specify output directory:

```bash
psd-toolkit -d /path/to/psd/files -o /path/to/output -r
```

### Options

- `-d, --dir`: Input directory containing PSD files (required)
- `-o, --output`: Output directory for PNG files (default: input directory)
- `-r, --recursive`: Process subdirectories recursively

### Python API

You can also use psd-toolkit as a Python library:

```python
from psd_toolkit import PSDProcessor, BatchJob

# Process a single file
processor = PSDProcessor("image.psd")
processor.load()
processor.hide_text_layers()
processor.export("output.png", format="png")

# Batch process
job = BatchJob(input_dir="./psd_files", output_dir="./output", recursive=True, output_format="png")
job.run()
```

## Requirements

- Python >= 3.10
- psd-tools >= 1.12.0

## License

MIT License - see [LICENSE](LICENSE) file for details.

## Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

## Issues

Report bugs and request features on [GitHub Issues](https://github.com/hhandika/psd-toolkit/issues).
