Skip to main content

Cartoonizer

Cartoonizer is a Python library that converts normal pictures into cartoon-like images.

Installation

To install the library, use pip:

pip install cartoonizer-thellmike

Project Structure

Ensure your project directory looks like this:

my_project/
├── input_image.jpg
├── output_image.png
├── use_cartoonizer.py
└── venv/  # Optional, if you are using a virtual environment

Usage

Create a Python script named use_cartoonizer.py and add the following code:

from cartoonizer import apply_cartoon_effect

# Path to the input image
input_image_path = 'input_image.jpg'

# Path to save the output cartoon image
output_image_path = 'output_image.png'

# Apply the cartoon effect
apply_cartoon_effect(input_image_path, output_image_path)

print(f"Cartoon effect applied and saved to {output_image_path}")

Running the Script

Make sure you have an image named input_image.jpg in the same directory or provide the correct path to an image.

from cartoonizer import apply_cartoon_effect

# Path to the input image
input_image_path = 'input_image.jpg'

# Path to save the output cartoon image
output_image_path = 'output_image.png'

# Apply the cartoon effect
apply_cartoon_effect(input_image_path, output_image_path)

print(f"Cartoon effect applied and saved to {output_image_path}")

Run the script:

python use_cartoonizer.py

Metadata

Release files for cartoonizer-thellmike 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cartoonizer-thellmike 0.1.1
File Size Uploaded
cartoonizer_thellmike-0.1.1.tar.gz 3.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cartoonizer-thellmike 0.1.1
File Interpreter ABI Platform
cartoonizer_thellmike-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 7.6 kB

Release files / cartoonizer_thellmike-0.1.1.tar.gz

Download URL cartoonizer_thellmike-0.1.1.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d35f4d1960dd0b674c819fbeb99dc6208cd7f9aa1c7e4d088389e4aed6a2bf99
BLAKE2b-256 checksum
How to use checksums
f9548076e02b607b2b6ded421125ec3b08c4a51a6571ddb82cee1ca2892067fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.3

Release files / cartoonizer_thellmike-0.1.1-py3-none-any.whl

Download URL cartoonizer_thellmike-0.1.1-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
697e129dbd2c226ffe613d4a3a3e934372d85c42087f0b5824042eeafecbb2b1
BLAKE2b-256 checksum
How to use checksums
a66b86760b277f2ebd87f1d483df57e5831ca2491692698c2155e155fd2065db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page