Skip to main content

A tool to convert pen drawings to transparent PNGs.

Project description

pen2png

pen2png is a command-line tool that converts pen drawings on paper into transparent PNGs with smooth black ink lines.

  • Supports HEIC, JPG, PNG, and other common formats.
  • Removes background and makes paper transparent.

Installation

You can install the package via pip:

pip install pen2png

Usage

To convert an image:

pen2png <input_filepath> <output_filepath>

Example:

pen2png my_drawing.jpg drawing.png

Note: For best results, crop your image before conversion and avoid using pencils/non-black pens.

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

pen2png-0.2.0.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

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

pen2png-0.2.0-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file pen2png-0.2.0.tar.gz.

File metadata

  • Download URL: pen2png-0.2.0.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.19

File hashes

Hashes for pen2png-0.2.0.tar.gz
Algorithm Hash digest
SHA256 55270dbd51ceea1738d75c986c394b6b9d42d3bcc5817f7ff96378dc6d8054bd
MD5 bb85bb253275d96e0be9caea421a4ed6
BLAKE2b-256 f18508939a444b60108a167c4793cfa85974736c145540fbc49ab24de4b216f3

See more details on using hashes here.

File details

Details for the file pen2png-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: pen2png-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.19

File hashes

Hashes for pen2png-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a3b8dc2f3e20585a9919404e7c74861bafea600acf650aaed7055525737b0003
MD5 2cc5eabc402d1ee3b8945fa8f098ccf5
BLAKE2b-256 74ac4fabf5e68a51961e88be064aab22005089f8a2f9feb8fb03c9a4ca448978

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