Gimp-Forum.net
Writing a simple python plugin - Printable Version

+- Gimp-Forum.net (https://www.gimp-forum.net)
+-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP)
+--- Forum: Extending the GIMP (https://www.gimp-forum.net/Forum-Extending-the-GIMP)
+---- Forum: Scripting questions (https://www.gimp-forum.net/Forum-Scripting-questions)
+---- Thread: Writing a simple python plugin (/Thread-Writing-a-simple-python-plugin)



Writing a simple python plugin - LeonardCarlCampbell - 01-22-2026

Why is it so hard to create a plugin. I am trying to write a simple plugin to export the current image to a PNG file and then close the view. I am stuck at the save the image. Plugin attached.


RE: Writing a simple python plugin - MrsP-from-C - 01-22-2026

Can't see your plug-in


RE: Writing a simple python plugin - rich2005 - 01-22-2026

(2 hours ago)MrsP-from-C Wrote: Can't see your plug-in

scripts/plugins can now be attached with extension, for a .py maybe your browser is security blocking the attachment.

However it is a subject close to my heart, Gimp 3 python is complicated for the average user and any explanations are welcome.

To me the attachment looks AI generated. (I have my own script-fu (as a plugin) for exporting webp and it is a quarter the size. )

I will attach the plugin zipped in-case of a security block and in its own folder as required by Gimp 3.

Fails on the first line, the shebang is incorrect. Fix that and it does register but there are hard coded paths (specific to user)

Attached: [attachment=14208]