Skip to main content

Convert Paint.NET (.pdn) files to OpenRaster (.ora) format

Project description

pdn2ora

This cross-platform CLI tool converts Paint.NET (.pdn) files to OpenRaster (.ora) format, preserving all layer properties, blend modes, opacity, and visibility.
Paint.NET's native format is proprietary; this opens up your artwork for use in Krita, GIMP, and other open-source editors.
Supports recursive batch conversion, dry-run previews, post-conversion validation, and standalone binaries for Linux and Windows.

Install

git clone https://codeberg.org/marvin1099/pdn2ora.git
cd pdn2ora

# With uv (recommended)
uv tool install .

# Or with pipx
pipx install .

# Or with pip
pip install --user .

Binary downloads

Instead of installing from source, get pre-compiled binaries from the releases page, or build binaries using

./build.sh linux     # Linux binary → dist/pdn2ora-linux-x64
./build.sh windows   # Windows binary via Wine → dist/pdn2ora-win-x64.exe
./build.sh all       # both

Development

git clone https://codeberg.org/marvin1099/pdn2ora.git
cd pdn2ora
./build.sh setup     # install all deps
./build.sh test      # run tests
./build.sh lint      # check code style

Usage

pdn2ora [options] FILE_OR_DIR [FILE_OR_DIR ...]

Examples

pdn2ora input.pdn                       # single file
pdn2ora ./artwork/ -r -D ./output/      # recursive batch to output dir
pdn2ora input.pdn --info                # show layer info
pdn2ora *.pdn -d -y                     # convert and delete sources

Options

Flag Description
Output
-o, --output PATH Explicit output path (single file only)
-D, --output-dir DIR Put all ORA files into DIR
-s, --suffix EXT Output file extension (default: .ora)
-w, --overwrite Overwrite existing output files
-t, --no-thumbnail Skip thumbnail generation
Conversion
-r, --recursive Recursively search directories
-d, --delete Delete source .pdn after successful conversion
-x, --delete-only Delete .pdn if .ora already exists
-A, --validate Validate the ORA file after writing
Info
-i, --info Show PDN file info and exit
-S, --stats Show file size comparison
General
-v, --verbose Increase verbosity (-v info, -vv debug)
-y, --yes Skip confirmation prompts
-n, --dry-run Show what would be done without doing it
-V, --version Show version
-h, --help Show help

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pdn2ora-0.1.0.tar.gz (21.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pdn2ora-0.1.0-py3-none-any.whl (20.4 kB view details)

Uploaded Python 3

File details

Details for the file pdn2ora-0.1.0.tar.gz.

File metadata

  • Download URL: pdn2ora-0.1.0.tar.gz
  • Upload date:
  • Size: 21.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for pdn2ora-0.1.0.tar.gz
Algorithm Hash digest
SHA256 31d4cb065fc8d2525c15858baf3b23bfd37dbb0d66596762be04c5c08afde19d
MD5 d1984d6be3fdfce7f24a6b1ecf2ad844
BLAKE2b-256 d6b772c3b9ce9e80888e913b5284e697e0aeaf2748338065b77d7e173aa6241b

See more details on using hashes here.

File details

Details for the file pdn2ora-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pdn2ora-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 20.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for pdn2ora-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6f0f659be582fb1b7dd835cd0e691c567be5c17289e6f3f144d62422a204ef56
MD5 21673b10cc626131f43867067a0da657
BLAKE2b-256 77669965a3ee6e33e3cc750b220f377494305d3238f3fa9f9a85ff3c03d17270

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page