{"id":16556876,"url":"https://github.com/d60/picwish","last_synced_at":"2025-07-18T04:36:47.960Z","repository":{"id":250815480,"uuid":"835628382","full_name":"d60/picwish","owner":"d60","description":"PicWish T2I, Photo Enhancer and Background Remover for Python","archived":false,"fork":false,"pushed_at":"2025-01-13T16:44:22.000Z","size":732,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-04T10:50:54.371Z","etag":null,"topics":["ai","api","api-wrapper","background","background-remover","enhancer","image-generation","photo","photo-enhance","picture","picwish","python","python3","remover","scraper","scraping","t2i"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/d60.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-30T08:09:30.000Z","updated_at":"2025-06-25T07:21:49.000Z","dependencies_parsed_at":"2024-08-01T08:29:08.629Z","dependency_job_id":"71df868b-7a26-491e-9bac-922f9a4ac192","html_url":"https://github.com/d60/picwish","commit_stats":null,"previous_names":["d60/picwish"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/d60/picwish","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d60%2Fpicwish","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d60%2Fpicwish/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d60%2Fpicwish/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d60%2Fpicwish/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/d60","download_url":"https://codeload.github.com/d60/picwish/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d60%2Fpicwish/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265701401,"owners_count":23813751,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","api","api-wrapper","background","background-remover","enhancer","image-generation","photo","photo-enhance","picture","picwish","python","python3","remover","scraper","scraping","t2i"],"created_at":"2024-10-11T20:05:58.470Z","updated_at":"2025-07-18T04:36:47.950Z","avatar_url":"https://github.com/d60.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PicWish API for Python 🎨✨\n\nEnhance, generate, and process images **without tokens, accounts, and watermarks**, and enjoy **unlimited usage**!\n\n## Features\n- ✅  **AI Text-to-Image Generation**: Create images from text prompts with customizable themes, sizes, and quality.\n- ✅  **Image Enhancement**: Improve image quality without watermark.\n- ✅  **Background Removal**: Remove background from images.\n- ✅  **OCR (Optical Character Recognition)**: Extract text from images with support for multiple languages and various output formats.\n- ✅  **Image Expansion**: Expand images with AI.\n## Installation\nTo get started, install the `picwish` package using pip:\n\n```bash\npip install picwish\n```\n\n\n## Quick Examples 🚀\n\n### 1. AI Text-to-Image Generation 🤖\nGenerate images based on a text prompt with customizable settings:\n\n```python\nimport asyncio\nfrom picwish import PicWish, T2ITheme, T2IQuality, T2ISize\n\nasync def main():\n    picwish = PicWish()\n\n    # Generate images from text prompt\n    results = await picwish.text_to_image(\n        prompt='A girl',\n        theme=T2ITheme.ANIME,\n        size=T2ISize.FHD_1_1,\n        batch_size=4,\n        quality=T2IQuality.HIGH\n    )\n\n    for result in results:\n        await result.download(f'{result.id}.png')\n\nasyncio.run(main())\n```\n\n\n### 2. Image Enhancement\nEnhance the quality of an image without a watermark:\n\n```python\nimport asyncio\nfrom picwish import PicWish\n\nasync def main():\n    picwish = PicWish()\n\n    # Enhance an image\n    enhanced_image = await picwish.enhance('/path/to/input.jpg')\n    await enhanced_image.download('enhanced_output.jpg')\n\nasyncio.run(main())\n```\n\n### 3. Background Removal\nRemove the background from an image:\n\n```python\nimport asyncio\nfrom picwish import PicWish\n\nasync def main():\n    picwish = PicWish()\n\n    # Remove background from an image\n    background_removed_image = await picwish.remove_background('/path/to/input.jpg')\n    await background_removed_image.download('background_removed_output.png')\n\nasyncio.run(main())\n```\n\n### 4. OCR (Optical Character Recognition)\nExtract text from images with support for multiple languages and output formats:\n\n```python\nimport asyncio\nfrom picwish import PicWish, OCRFormat\n\nasync def main():\n    picwish = PicWish()\n    ocr_result = await picwish.ocr(\n        'input.jpg',\n        format=OCRFormat.TXT\n    )\n    print(await ocr_result.text())\n\n    # -----------------\n    # Download as PNG\n    ocr_result = await picwish.ocr(\n        'input.jpg',\n        format=OCRFormat.PDF\n    )\n    print(await ocr_result.download('result.pdf'))\n\nasyncio.run(main())\n```\n\n### 5. Image Expansion\n\n```python\nimport asyncio\nfrom picwish import PicWish\n\nasync def main():\n    picwish = PicWish()\n\n    # Generate images from text prompt\n    results = await picwish.expand(\n        'input.jpg',\n        horizontal_expansion_ratio=1.5,\n        vertical_expansion_ratio=1.5\n    )\n\n    for i, result in enumerate(results):\n        await result.download(f'{i}.png')\n\nasyncio.run(main())\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd60%2Fpicwish","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fd60%2Fpicwish","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd60%2Fpicwish/lists"}