KPsd is a high-performance Kotlin/JVM library for reading and writing Photoshop Document (PSD) files.
- Parse PSD files into structured object models.
- Support for layer channel data, text layers, descriptor structures, and engine data.
- Serialize structures back into binary PSD files.
- Support for RLE and Zip compression.
- JDK 21 or higher.
./gradlew testPublish to the local Maven repository (~/.m2/repository) for testing integrations:
./gradlew publishToMavenLocal- Commit and push your changes.
- Tag the commit with
v<major>.<minor>.<patch>(e.g.,v1.0.0):git tag v1.0.0 git push origin v1.0.0
- The GitHub Action will automatically build, test, and publish the artifact to GitHub Packages.
Set the environment variables and run the publish command:
export GITHUB_ACTOR="your-github-username"
export GITHUB_TOKEN="your-github-personal-access-token"
./gradlew publishAdd the library to your project's dependency catalog:
Add GitHub Packages to your repository list:
repositories {
maven {
url = uri("https://maven.pkg.github.com/Wip-Sama/kpsd")
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}dependencies {
implementation("com.wip:kpsd:1.0.0")
}