在 Ubuntu 上给 GIMP 安装插件,常见有以下几种方式,按使用场景给你说明:
适合常见插件(如 GIMP 插件包)。
sudo apt update
sudo apt install gimp-plugin-registry
安装后重启 GIMP 即可在菜单中看到新功能(如 Wavelet Decompose、Save for Web 等)。
部分插件有专门 PPA,例如 gimp-plugin-registry:
sudo add-apt-repository ppa:otto-kesselgulasch/gimp
sudo apt update
sudo apt install gimp gimp-plugin-registry
插件一般放在以下位置之一:
用户级(推荐)
~/.config/GIMP/2.10/plug-ins/
(2.10 根据你的 GIMP 版本可能不同)
系统级
/usr/lib/gimp/2.10/plug-ins/
以 .py 或可执行文件为例:
mkdir -p ~/.config/GIMP/2.10/plug-ins/my-plugin
cp my-plugin.py ~/.config/GIMP/2.10/plug-ins/
chmod +x ~/.config/GIMP/2.10/plug-ins/my-plugin.py
打开 GIMP → 查看对应菜单或 Filters 中是否出现插件。
确保 Python 支持已启用:
sudo apt install python3-gimp
⚠️ GIMP 2.99+(开发版)使用 Python 3
GIMP 2.10 使用 Python 2(已逐步淘汰)
示例(G’MIC):
sudo apt install gmic gimp-gmic
plug-ins 目录如果你有具体插件名称(如 Resynthesizer、BIMP),我可以给你一步步安装命令。