You are here


  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0
Rate this item!

Periodically saves any open files in the current GIMP instance.

I got tired of searching for GIMP autosave and coming across developer discussions stating, in essence why autosave won't be implemented.

Installs a menu under <Image>/File/Autosave, containing "Enable", "Disable" and "Settings". From the settings dialog, you can enable/disable autosave globally, set the interval in minutes, and configure the location and pattern for autosave files of new and saved files individually. You can also edit the "autosave.conf" file in the same directory as the plugin script. Requires libgimp-perl and gtk2-perl. There is the standard version (, and one that prints debug messages on almost every operation (

To use, simply download either the standard or debug version of the script to your plug-in directory (.gimp-$version/plug-ins on linux, don't know about other OSes)

There are some considerations:

  • Currently, only one running instance is supported (that is, enabling/disabling autosave will enable/disable it for all GIMP processes).
  • Per-image enable/disable is not currently incorporated
  • I've only tested it on GIMP 2.6.7 and 2.7 on linux. I'd appreciate it, if anyone used this on any other version/OS, if you'd let me know if i works as advertised
  • I could find no reliable way for it to start working automatically, i.e., without you having to do extra, so you have to do one of three things:
    • Whenever you start gimp, click File/Autosave/Enable
    • Start gimp from the command line, or write a small wrapper script with the command gimp -b "(autosave 1)"
    • Find gimp.desktop application file that your Desktop Environment use, and change the Exec=gimp %F (or gimp %U) line to Exec=gimp -b "(autosave 1)" %F (or gimp -b "(autosave 1)" %U)

Feedback/Suggestions are welcome.

Edit: It somehow slipped me that all distros are not equal. If you can't find the perl gimp package on your installation, install the Gimp package using CPAN. From the command line I believe that goes cpan install Gimp, or just browse to the module page and follow the install instructions there. You'll need to make sure that the location it installs to is in perl's @INC variable (like $PATH for perl), or move it to a directory that is in @INC. You can find out which directories are searched by typing at the command line perl -e 'print join "\n", @INC'.

Again, if anyone has any problems using this please feel free to ask, and I'll do what I can to assist. I'm especially interested to know how this works (if at all) on non-linux OSes.

autosave.pl13.26 KB
autosave.dbg_.pl14.89 KB
GIMP Version: 
Code License: 


It appears as though I'm not authorized to download this.

"403 - Forbidden."

Is this a common error? Anyone else? Sorry for necroposting.

I also get the 403 - Forbidden error; not sure why I cannot download it.

Listen, you have no idea how much I appreciate you being willing to help a noob like myself.

No Problem at all.

I sent you a message with my contact info via the contact form. If you don't see it, please check to make sure it didn't end up in spam.

Could someone make a Windows version of this, or is there a way to get the perl stuff for Windows XP?

Should be able to get it to work. You can download perl for windows from here and then use CPAN to download the packages you need. You'll need the Gimp and Gtk2 perl modules and I think you'll need to download GTK for windows from here. Now I haven't had a windows install for some time now and I'm not really falling over myself to set one up, but if you have the time, I'd be willing to help get it working.

Regards, rain.

edit: Actually come to think of it, the GTK+ runtime gets installed with GIMP IIRC, so it's just perl and the perl modules you need to worry about.

Yeah, i could use the help, because, I have absolutely no idea where to put perl stuff on a Windows installation. Heh. That's how new I am, but, I'm sick of GIMP eating stuff at my processor's expense and losing my work.

No problem, I'll be with you in just a sec

I have downloaded the autosave plug-in, and have installed it in the proper plug-ins directory. When I start gimp as suggested (gimp -b "(autosave 1)" from a command line), I get an error message saying it can't find in the INC directories, and the "Auto Save" function doesn't show up in the file menu. I'm using Gimp 2.6.8 and perl 5.10.0 on a Fedora 12 Linux 64-bit (kernel system.

Any help/advice you can provide would be greatly appreciated.


Regards, Chris

Edit: I checked and, indeed, there is no on my system. Am I missing a package or something? I tried doing "yum provides */" but came up empty handed. What am I missing???

Thanks, again... Chris

Hi Chris
I'm running Fedora 12 , 64 bit too and I'm interested to know how you managed to install gimp-perl for the latest version of Gimp. I've been trying to find the source but the latest version I can find is version 2.2. I'm guessing you are using Gimp.2.6...?

Any help would be greatly appreciated



Subscribe to Comments for "Autosave"