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.1.0.tar.gz (3.7 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.1.0-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pen2png-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3f604f2c9327e8d5d4f0fe5a8e4161060f30299318abaf1076f208f1308fca5e
MD5 552768a8cd1c4c2ef27a94ca5c7cd6c3
BLAKE2b-256 531f20c2f201ac4e8ec0d9649227574b5baa90e51953e4dccedae8b04f268ea2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pen2png-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.4 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 aab9731d8d5740f4e538bf28c750e0e124e2559d6b1691c0397b35afbf996c67
MD5 1166480de8aae31d53bdbf23b58c0744
BLAKE2b-256 17b1c7d622bfd180c99d41dae460838d269a66c9719e2cb21589ff3cce355b22

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