Skip to main content

PicWish API for Python 🎨✨

Enhance, generate, and process images without tokens, accounts, and watermarks, and enjoy unlimited usage!

[!WARNING] This tool uses scraping technology. Use of this tool is at your own risk.

Features

  • ✅ AI Text-to-Image Generation: Create images from text prompts with customizable themes, sizes, and quality.
  • ✅ Image Enhancement: Improve image quality without watermark.
  • ✅ Background Removal: Remove background from images.
  • ✅ OCR (Optical Character Recognition): Extract text from images with support for multiple languages and various output formats.
  • ✅ Image Expansion: Expand images with AI.

Installation

To get started, install the picwish package using pip:

pip install picwish

Quick Examples 🚀

1. AI Text-to-Image Generation 🤖

Generate images based on a text prompt with customizable settings:

import asyncio
from picwish import PicWish, T2ITheme, T2IQuality, T2ISize

async def main():
    picwish = PicWish()

    # Generate images from text prompt
    results = await picwish.text_to_image(
        prompt='A girl',
        theme=T2ITheme.ANIME,
        size=T2ISize.FHD_1_1,
        batch_size=4,
        quality=T2IQuality.HIGH
    )

    for result in results:
        await result.download(f'{result.id}.png')

asyncio.run(main())

2. Image Enhancement

Enhance the quality of an image without a watermark:

import asyncio
from picwish import PicWish

async def main():
    picwish = PicWish()

    # Enhance an image
    enhanced_image = await picwish.enhance('/path/to/input.jpg')
    await enhanced_image.download('enhanced_output.jpg')

asyncio.run(main())

3. Background Removal

Remove the background from an image:

import asyncio
from picwish import PicWish

async def main():
    picwish = PicWish()

    # Remove background from an image
    background_removed_image = await picwish.remove_background('/path/to/input.jpg')
    await background_removed_image.download('background_removed_output.png')

asyncio.run(main())

4. OCR (Optical Character Recognition)

Extract text from images with support for multiple languages and output formats:

import asyncio
from picwish import PicWish, OCRFormat

async def main():
    picwish = PicWish()
    ocr_result = await picwish.ocr(
        'input.jpg',
        format=OCRFormat.TXT
    )
    print(await ocr_result.text())

    # -----------------
    # Download as PNG
    ocr_result = await picwish.ocr(
        'input.jpg',
        format=OCRFormat.PDF
    )
    print(await ocr_result.download('result.pdf'))

asyncio.run(main())

5. Image Expansion

import asyncio
from picwish import PicWish

async def main():
    picwish = PicWish()

    # Generate images from text prompt
    results = await picwish.expand(
        'input.jpg',
        horizontal_expansion_ratio=1.5,
        vertical_expansion_ratio=1.5
    )

    for i, result in enumerate(results):
        await result.download(f'{i}.png')

asyncio.run(main())

Metadata

Release files for picwish 0.6.0

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

Source distribution (sdist)

Source distribution for picwish 0.6.0
File Size Uploaded
picwish-0.6.0.tar.gz 12.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for picwish 0.6.0
File Interpreter ABI Platform
picwish-0.6.0-py3-none-any.whl Python 3 none any Details

Total release size: 25.0 kB

Release files / picwish-0.6.0.tar.gz

Download URL picwish-0.6.0.tar.gz
Size 12.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d482ee4c029df1b7d32ed4a8ece9406ddb3b19765c050b4e032306a6cf006e2b
BLAKE2b-256 checksum
How to use checksums
d07ae8b884677504fcfb9117eb8d745d48cb4a30b31a4b64117aa918bd7f7c84
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.5

Release files / picwish-0.6.0-py3-none-any.whl

Download URL picwish-0.6.0-py3-none-any.whl
Size 12.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9eec5387af8502b3960184543b480c8925d9f4059734b80ac89a636a534254b3
BLAKE2b-256 checksum
How to use checksums
f3cafe47721628a07cae044ed54a039ad2836f41b320b789672a934a8b948784
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.5

Release history Release notifications | RSS feed

This release

0.6.0 This release

2 release files

0.5.0

2 release files

0.4.7

2 release files

0.4.6

2 release files

0.4.5

2 release files

0.4.4

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

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