It is currently Fri Sep 18, 2026 4:12 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Where did GIMP save my file, & how do I change default save location
PostPosted: Wed Feb 15, 2023 7:19 am  (#1) 
Offline
GimpChat Member

Joined: Oct 06, 2017
Posts: 16
GIMP Version: 2.10
Operating System: Linux
GIMP Experience: Intermediate Level




I'm using one of the Paul Sherman's famous 200 or so bundled scripts to auto save an image to JPG and exit

The script itself contains no default save location

Where is gimp saving my stuff and how do I change the default

ps it's not /home/$USER/.config/GIMP/2.10/{sub-folder}

Where might the image have been saved

And How do I set a default folder location

I've done a fair bit of searching, and have searched this topic before on a previous occasion with no results then either, hence i'm here to see if I can find out where the default save location might be and how to set this

when I go to
menu --> Edit --> Preferences --> Folders
there is no obvious "default save folder" setting option


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Where did GIMP save my file, & how do I change default save locati
PostPosted: Wed Feb 15, 2023 9:39 am  (#2) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2615
Maybe a bit more info please. Which script and is it one of the latest 210_xxx.scm series

Are you applying the script in a batch process to a number of files ?

Generally, Open an image and it Exports to the same directory as the image. However a Save will go to ~/Documents unless you choose somewhere else.

For a new image they will end up in ~/Documents unless you select somewhere else. Annoying but no way to change that.


Top
 Post subject: Re: Where did GIMP save my file, & how do I change default save locati
PostPosted: Wed Feb 15, 2023 9:50 am  (#3) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2648
Location: Poland
Perhaps I analyzed a different version but this script is not very safe and applies only to files already saved on the disk - if it is a jpg it will overwrite the existing file, if it has a different format it will save it as a jpg in the directory where the original file was located.
There is a much better alternative: Export layers with the option to save settings and re-save.
https://github.com/kamilburda/gimp-expo ... /tag/3.3.5

_________________
Image


Top
 Post subject: Re: Where did GIMP save my file, & how do I change default save locati
PostPosted: Thu Feb 16, 2023 5:04 am  (#4) 
Offline
GimpChat Member

Joined: Oct 06, 2017
Posts: 16
the script below

; 210_save-as-jpg.scm

(define (210_save-as-jpg-90 image)
  (let* ((nameparts (strbreakup (car (gimp-image-get-filename image)) "."))
         (filename "")
       )
    (unless (and (> (length nameparts) 1)
                 (member (car (last nameparts)) '("jpg" "jpeg" "JPG" "JPEG"))
             )
   (set! nameparts (append (butlast nameparts) '("jpg"))) )
    (set! filename (unbreakupstr nameparts "."))
    (let* ((buffer (car (gimp-edit-named-copy-visible image "jpg buffer")))
      (new-image (car (gimp-edit-named-paste-as-new buffer)))
      (layer (car (gimp-image-flatten new-image))) )
      (unless (zero? (car (gimp-image-base-type new-image)))
        (gimp-image-convert-rgb new-image) )
        (file-jpeg-save RUN-NONINTERACTIVE
           new-image
           layer
           filename
           filename
           0.90 ; JPEG compression level
           0 ; smoothing
           1 ; optimize
           0 ; progressive
           "" ; comment
           0 ; subsmp (0-4)
           1 ; baseline
           0 ; restart
           0 ;dct
           )
      (gimp-image-delete new-image)
     (gimp-image-clean-all image)
     (gimp-quit 1)
     )))

(script-fu-register "210_save-as-jpg-90"
  "<Image>/File/Save as JPG 90% & Exit"
  "Save the image as a JPG file\n\nFor more options and a proper file overwrite protected dialog, \nuse the FILE > EXPORT menu item when saving as a JPG.\n"
  ""
  ""
  "Oct 2020"
  "*"
  SF-IMAGE    "Image"    0
  )
(script-fu-menu-register "210_save-as-jpg-90" "<Image>/File/Save/")


Top
 Post subject: Re: Where did GIMP save my file, & how do I change default save locati
PostPosted: Thu Feb 16, 2023 5:07 am  (#5) 
Offline
GimpChat Member

Joined: Oct 06, 2017
Posts: 16
rich2005 wrote:
Maybe a bit more info please. Which script and is it one of the latest 210_xxx.scm series

Are you applying the script in a batch process to a number of files ?

Generally, Open an image and it Exports to the same directory as the image. However a Save will go to ~/Documents unless you choose somewhere else.

For a new image they will end up in ~/Documents unless you select somewhere else. Annoying but no way to change that.


Applying it to 1 file only, not a batch

Image was not in ~/Documents. Been unable to find it


Top
 Post subject: Re: Where did GIMP save my file, & how do I change default save locati
PostPosted: Thu Feb 16, 2023 5:10 am  (#6) 
Offline
GimpChat Member

Joined: Oct 06, 2017
Posts: 16
MareroQ wrote:
Perhaps I analyzed a different version but this script is not very safe and applies only to files already saved on the disk - if it is a jpg it will overwrite the existing file, if it has a different format it will save it as a jpg in the directory where the original file was located.
There is a much better alternative: Export layers with the option to save settings and re-save.
https://github.com/kamilburda/gimp-expo ... /tag/3.3.5


Ok, makes sense because the image I worked on was pasted into gimp, so GIMP had no default file location to save to.
So it has no default location for files so a file is not saved.
May be it is in temporary files somewhere

Also still can't find a way to set the default save location for a new GIMP creation


Top
 Post subject: Re: Where did GIMP save my file, & how do I change default save locati
PostPosted: Sun Sep 14, 2025 6:51 pm  (#7) 
Offline
Global Moderator
User avatar

Joined: Apr 01, 2012
Posts: 8471
Location: On the other side of your screen
My files will go to Documents if I don't specify a folder for them to go in

_________________
Image
Free Fun Photo Editing & resources
Poems from the Lord
Gimp Newby
Gimp version 3.2.4 and GMIC-Qt 4.0.2 OS :- Windows 10 Home 64


Top
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group