Skip to main content

PythonでGIMPスクリプトを操作するためのパッケージ

Project description


PyGIMP

~ Fusion of Python and GIMP ~
PyPI - Version PyPI - Format PyPI - Implementation PyPI - Status PyPI - Downloads PyPI - Downloads GitHub Repo stars forks - Sunwood-ai-labs GitHub Last Commit GitHub Top Language GitHub Release GitHub Tag GitHub Actions Workflow Status

[🌐 Website][🐱 GitHub] [🐦 Twitter][🍀 Official Blog]

[!IMPORTANT] このリポジトリのリリースノートやREADME、コミットメッセージの9割近くはclaude.aiChatGPT4を活用したAIRA, SourceSage, Gaiah, HarmonAI_IIで生成しています。

PyGIMP

🌟 Introduction

PyGIMPは、PythonプログラミングとGIMP(GNU Image Manipulation Program)の強力な機能を融合させたプロジェクトです。このツールキットを使用することで、開発者やデザイナーはPythonのシンプルさと柔軟性を活かしながら、GIMPの高度な画像処理機能にアクセスできます。

🎥 Demo

https://github.com/user-attachments/assets/bea57935-2f4a-46be-8932-a57a7151335d

🚀 Getting Started

PyGIMPを始めるためには、以下の手順に従ってください:

  1. GIMPをインストールします。
  2. Pythonをインストールします(バージョン3.12以上を推奨)。
  3. PyGIMPパッケージをダウンロードし、インストールします。
    pip install pygimp-labs
    
  4. Pythonスクリプトを作成し、GIMPと連携させて様々な画像処理を行います。
(base) C:\Prj\PyGIMP>pygimp-labs
 ____           ____  ___  __  __  ____  
|  _ \  _   _  / ___||_ _||  \/  ||  _ \
| |_) || | | || |  _  | | | |\/| || |_) |
|  __/ | |_| || |_| | | | | |  | ||  __/
|_|     \__, | \____||___||_|  |_||_|
        |___/

2024-07-20 11:00:45.587 | INFO     | pygimp.cli:main:23 - プログラムを開始します
2024-07-20 11:00:45.588 | INFO     | pygimp.pygimp_core:execute_script:26 - GIMPスクリプトの実行を開始します

...

*******************
* GIMP Script End *
*******************
2024-07-20 11:00:48.498 | SUCCESS  | pygimp.pygimp_core:execute_script:55 - GIMPスクリプトの実行が完了しました
2024-07-20 11:00:48.498 | INFO     | pygimp.cli:main:32 - プログラムを終了します
  ___                    _       _            _  _
 / __| ___  _ __   _ __ | | ___ | |_  ___  __| || |
| (__ / _ \| '  \ | '_ \| |/ -_)|  _|/ -_)/ _` ||_|
 \___|\___/|_|_|_|| .__/|_|\___| \__|\___|\__,_|(_)
                  |_|

📝 Arguments

pygimp-labs コマンドは以下の引数を受け取ります。

引数 説明 デフォルト値
--font_size テキストのフォントサイズ 78
--input_image 入力画像のパス asset\input\input.png
--output_path 出力画像のパス asset\output\out2.png
--text 画像にオーバーレイするテキスト "GIMPを使用して\nCLIから画像に\nテキストをオーバーレイする方法"
--gimp GIMP実行ファイルのパス "gimp-console-2.10.exe"
--log ログファイルのパス "gimp_script.log"
--config 設定ファイルのパス "gimp_script_config.json"

📝 Updates

PyGIMPは継続的に改善されており、新機能やバグ修正が定期的にリリースされています。最新の更新内容は、リリースノートや公式リポジトリで確認できます。

🤝 Contributing

PyGIMPに貢献したい方は、以下の手順を実行してください:

  1. プロジェクトをフォークします。
  2. 新しいブランチを作成します。
  3. 変更を加えた後、プルリクエストを提出します。
  4. コードレビューが行われ、マージされるのを待ちます。

📄 License

このプロジェクトはMITライセンスのもとで提供されています。詳細はLICENSEファイルをご覧ください。

🙏 Acknowledgements

PyGIMPは、オープンソースコミュニティの協力によって成り立っています。プロジェクトに貢献してくださったすべての方々に感謝します。また、GIMPの開発チームにも感謝の意を表します。

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

pygimp_labs-0.2.0.tar.gz (4.8 kB view hashes)

Uploaded Source

Built Distribution

pygimp_labs-0.2.0-py3-none-any.whl (5.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page