Bug 445783

Summary: "Save as" does not change filename for later "Save" action
Product: [Applications] digikam Reporter: Frank Steinmetzger <dev+kde>
Component: ImageEditor-SaveAssignee: Digikam Developers <digikam-bugs-null>
Status: REPORTED ---    
Severity: normal CC: caulier.gilles, metzpinguin
Priority: NOR    
Version First Reported In: 7.3.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Frank Steinmetzger 2021-11-20 00:21:49 UTC
STEPS TO REPRODUCE
1. Edit a tif file called "image.tif"
2. press Ctrl+S, the image is saved in TIF format under "image.tif"
3. press Shift+Ctrl+S to save the image in jpeg format under "image.jpg"
4. press Ctrl+S to save again (after doing some more editing)

OBSERVED RESULT
Showfoto now saves a jpeg image under "image.tif". First problem: file format and filename don’t match anymore. Second problem: the source is overwritten, which to avoid was the purpose of Step 3.

EXPECTED RESULT
Ctrl+S should either keep format and filename from the last use of "Save As" or keep format *and* filename of the original image source. The former way would be the common behavior, the latter if you look at Gimp and its priority of its own format as the only "real" source, and the other formats such as JPEG merely an export format.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.23.3
KDE Frameworks Version: 5.88.0
Qt Version: 5.15.2
Kernel Version: 5.15.2-arch1-1 (64-bit)
Graphics Platform: X11
Processors: 4 × Intel® Core™ i5-4590 CPU @ 3.30GHz
Memory: 31.0 GiB of RAM
Graphics Processor: AMD PITCAIRN
Comment 1 caulier.gilles 2021-11-20 04:10:51 UTC
The versioning feature is enabled or not in image editor ?
Comment 2 Frank Steinmetzger 2021-11-20 10:29:05 UTC
I never used the  versioning feature knowingly and I couldn’t even find it in Showfoto’s Settings. So it’s very likely that it is not enabled.
Comment 3 Frank Steinmetzger 2021-11-20 12:47:01 UTC
Just to clarify, in case there is a difference: I open the image in Showfoto directly, not from within Digikam.
Comment 4 Maik Qualmann 2021-11-20 18:08:04 UTC
We have 2 options. After saving with "Save As", we load the newly saved image. We may then go to a different directory and the thumb bar will reload. Or stay with the current image / directory and use the new file path for "Save". Which option is better?

Maik
Comment 5 Frank Steinmetzger 2021-11-21 02:00:12 UTC
That’s a very good question. Actually, I haven’t thought about the issue of a different directory yet, because in my workflow I always save-as in the same directory as the original image. I think the thumbnail bar should reflect the current filepath of the image, but not reload for the new directory, because the user loaded the editor for the original directory and the work session centers around that directory. If he chooses a different one during Save As, he does so knowingly and only for that one image.
Comment 6 caulier.gilles 2025-04-13 06:16:19 UTC
Hi Maik,

Staying with the current image / directory and use the new file path for "Save" will be more logic for me...

Gilles