PythonでGIMPスクリプトを操作するためのパッケージ
Project description
PyGIMP
~ Fusion of Python and GIMP ~
[🌐 Website] • [🐱 GitHub] [🐦 Twitter] • [🍀 Official Blog]
[!IMPORTANT] このリポジトリのリリースノートやREADME、コミットメッセージの9割近くはclaude.aiやChatGPT4を活用した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を始めるためには、以下の手順に従ってください:
- GIMPをインストールします。
- Pythonをインストールします(バージョン3.12以上を推奨)。
- PyGIMPパッケージをダウンロードし、インストールします。
pip install pygimp-labs
- 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に貢献したい方は、以下の手順を実行してください:
- プロジェクトをフォークします。
- 新しいブランチを作成します。
- 変更を加えた後、プルリクエストを提出します。
- コードレビューが行われ、マージされるのを待ちます。
📄 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
Built Distribution
Hashes for pygimp_labs-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8729c8552e8798d14d20aeeb11834f74bd0c59d59a679137fdbe5215a45da66f |
|
MD5 | 303678e8a4fd178de6f22962b37e8109 |
|
BLAKE2b-256 | 0623f2b94bb0c3d21d4a44f044f9c70e96ed39ac44749be9e771711be877bd9e |