News for hackers. Stuff that matters.
Re:Gimp is 25 years old today by gorgoiler on Sunday November 22, 2020 @06:12AM (#25176570)
Thanks. I feel stupid now.

I guess I would have expected this to be called “save”?

Re:Gimp is 25 years old today by noir_lord on Sunday November 22, 2020 @07:03AM (#25176805)
Not same thing, Save implies you want to save the work in progress, so xcf typically (thats the gimp project format, so you can do things like undo stuff etc).

Export is well export "Take this project and make it <Foo> format with <Bar> quality" settings.

It's the way many print/graphics packages split it conceptually.

Re:Gimp is 25 years old today by kazinator on Sunday November 22, 2020 @11:38AM (#25178763)
You just have to read the whole File menu (of every program you use, not just GIMP!)

In GIMP, saving refers to persisting the project in the native .xcf format. Everything else is exporting.

Exporting loses information, that's why it's not called saving. It can use lossy compression, first of all. And then, the target format might not support all the semantics. For instance, it might not support layers, or not support layers with all their GIMP nuances, like layer masks and whatnot.

If you're working on a PNG or JPEG and want to close GIMP and continue later without any loss of data or disruption, you have to save the project as an .XCF.

Re:Gimp is 25 years old today by hakfoo on Monday November 23, 2020 @12:33AM (#25183883)
I feel like this was a behaviour shift at some point within the last 25 years. There was a time when you'd open a PNG, and the default "save" just gave you a flattened PNG. Or maybe it did so but complained about the risk. Either way, it felt off to make XCF default ONCE you specified a file type (either by opening a PNG/JPG/etc.) or trying to save as such once. You've decided you want to save only a final output, not something with the intermediary magic.
Re:Gimp is 25 years old today by shawnz on Sunday November 22, 2020 @11:34AM (#25178734)
"Save" and "Export" used to be under the same function many versions ago. I am guessing they changed it to avoid data loss.

Consider if someone "saved" into a format that does not actually support all the features of Gimp, like PNG. They might be surprised when they open their file and things like layers are missing.

Re:Gimp is 25 years old today by jobigoud on Sunday November 22, 2020 @02:04PM (#25180037)
Paint.NET solved this by prompting the user when this particular kind of destructive save happen: This format requires all layers to be merged, are you sure you want to merge all layers? yes/cancel.
Re:Gimp is 25 years old today by kazinator on Sunday November 22, 2020 @03:58PM (#25181033)
But with GIMP's export, you can export a JPEG without merging all your layers. They are merged in the image only. Your default filename (like "myproject.xcf") is not affected; Ctrl-S save continues to save that.

GIMP's export is smart enough not to keep prompting you. You are prompted once to set the parameters, like compression and others. Then you can repeat the export operation with no prompting. You have a Ctrl-E hotkey to do that instantly, and Ctrl-S continues to save your project to the .xcf file.