Bug 277502 - All versions of version set always displayed in Album view [patch]
Summary: All versions of version set always displayed in Album view [patch]
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Albums-Versioning (show other bugs)
Version: 5.8.0
Platform: Unlisted Binaries Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-10 20:49 UTC by Malcolm Dodds
Modified: 2022-02-02 04:58 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.0.0


Attachments
Digikam DB (74.00 KB, application/octet-stream)
2011-07-10 21:09 UTC, Malcolm Dodds
Details
versioning.patch (832 bytes, patch)
2017-12-26 11:33 UTC, Maik Qualmann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Malcolm Dodds 2011-07-10 20:49:35 UTC
Version:           2.0.0 (using KDE 4.4.6) 
OS:                Linux

I've disable show original photos and show intermediate in the settings window. However all versions of my photos which have been edited are always shown.

In the version side-bar, no changes are made when I toggle the hidden selection for the original window.

One time this worked correctly for me, but every other time I've started 2.0.0-beta5 or 2.0.0-rc1 it fails.



Reproducible: Always

Steps to Reproduce:
This happens every time bar one.

I simple edit a photo then 'Save as New Version'. Both are shown.

Toggling view mode on original photo makes no difference.

Actual Results:  
Both images are show despite global and original photo settings.

Expected Results:  
Only latest version is shown.

mdodds@mdodds-desktop:~$ uname -a
Linux mdodds-desktop 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:50 UTC 2011 i686 i686 i386 GNU/Linux

Ubuntu 11.04 - I've ran lots of versions of Ubuntu and digikam, upgrading between them.



Display all 214 possibilities? (y or n)
mdodds@mdodds-desktop:~$ dpkg -l | grep digikam
rc  digikam                                    2:1.4.0-0ubuntu1                           digital photo management application for KDE
ii  digikam2                                   2:2.0.0~rc1-natty~ppa1                     digital photo management application for KDE
ii  digikam2-data                              2:2.0.0~rc1-natty~ppa1                     digikam architecture-independant data


mdodds@mdodds-desktop:~$ dpkg -l | grep kipi
rc  kipi-plugins                               1.4.0-0ubuntu2                             image manipulation/handling plugins for KIPI aware programs
rc  kipi-plugins-common                        1.4.0-0ubuntu2                             kipi-plugins architecture-independent data
ii  kipi-plugins2                              2.0.0~rc1-natty~ppa1                       image manipulation/handling plugins for KIPI aware programs
ii  kipi-plugins2-common                       2.0.0~rc1-natty~ppa1                       kipi-plugins architecture-independent data
rc  libkipi0                                   0.1.6-2ubuntu3                             library for apps that want to use kipi-plugins (runtime version)
rc  libkipi6                                   4:4.3.2-0ubuntu1                           library for apps that want to use kipi-plugins (runtime version)
rc  libkipi7                                   4:4.5.5-0ubuntu2                           library for apps that want to use kipi-plugins (runtime version)
ii  libkipi8                                   4:4.6.2-natty~ppa2                         library for apps that want to use kipi-plugins (runtime version)
Comment 1 Malcolm Dodds 2011-07-10 20:56:52 UTC
I tried enable debug output with kdedebug dialog, but this is all that happened
when I tried to change the original version view status to permanently hidden
and back:

digikam(22501)/KEXIV2 KExiv2Iface::KExiv2::getImageOrientation: Orientation =>
Exif.Image.Orientation =>  1
digikam(22501)/KEXIV2 KExiv2Iface::KExiv2::getImageOrientation: Orientation =>
Exif.Image.Orientation =>  1
Comment 2 Malcolm Dodds 2011-07-10 21:00:10 UTC
Something I forgot to mention - I see no icon to show its in a version set. The version side-bar appears to recognize there is a version set, but there is no icon in the thumbnail view.
Comment 3 Malcolm Dodds 2011-07-10 21:09:02 UTC
Created attachment 61769 [details]
Digikam DB

I moved my .kde aside and created a 1 image library. When I tried this I saw pretty much the same problem. Both original and final images are shown regardless of what I do.

There was one change - with the cleaned out KDE and digikam settings I now see the filters applied in the Versions tab. In my main digikam setup I do not see this -
Comment 4 Marcel Wiesweg 2011-07-11 16:40:18 UTC
> I simple edit a photo then 'Save as New Version'. Both are shown.

Yes, they should. Because you create a "new version", a new line of development, like a branch. To overwrite (virtually), click on Save Changes.

I'll need to check why the hide button in the sidebar does not work. This would be a bug.
Comment 5 Malcolm Dodds 2011-07-11 17:30:25 UTC
(In reply to comment #4)
> > I simple edit a photo then 'Save as New Version'. Both are shown.
> 
> Yes, they should. Because you create a "new version", a new line of
> development, like a branch. To overwrite (virtually), click on Save Changes.
> 

I understand, but I have show original and show intermediate disabled globally, so I expected only the latest version to be displayed in thus configuration, unless I subsequently override this in the version sidebar.
Comment 6 Marcel Wiesweg 2011-07-11 18:15:40 UTC
> I understand, but I have show original and show intermediate disabled globally,
> so I expected only the latest version to be displayed in thus configuration,
> unless I subsequently override this in the version sidebar.

Terminology may not be clear.
Consider this completely unrelated image (from Google images):
http://www.ronaldwidha.net/wp-content/uploads/2009/10/branchmangement1_thumb.gif
If you always click Save Changes, you get the blue line.
Show Original determines if "Start" is visible, Short Intermediate determines if feature 1 - feature 4 are visible. Note that you need to request storing intermediates, it's not the default.
If you click Save New Version, you get the yellow lines. You have then three "current versions" which are neither original nor intermediate.
Comment 7 Malcolm Dodds 2011-07-11 19:58:39 UTC
Thanks - I was expecting this feature to work pretty much like Photoshop Elements versioning which it obviously doesn't.

I rechecked the behaviour.

If I edit a photo and just click 'Save' then a _v1 image is created. The original is correctly hidden and I can toggle with the button on the sidebar. All seems well I think (although I was surprised editing _v1 image and clicking 'Save' wanted to overwrite v1 rather than v2 - seemed inconsistent).

Id I edit a photo and click 'Save as version' then a _v1 image is created. The original is incorrectly show and I the side-bar toggle button does not work.
Comment 8 Marcel Wiesweg 2011-07-12 18:32:52 UTC
(In reply to comment #7)
> Thanks - I was expecting this feature to work pretty much like Photoshop
> Elements versioning which it obviously doesn't.

WHat does Photoshop do

> If I edit a photo and just click 'Save' then a _v1 image is created. The
> original is correctly hidden and I can toggle with the button on the sidebar.
> All seems well I think (although I was surprised editing _v1 image and clicking
> 'Save' wanted to overwrite v1 rather than v2 - seemed inconsistent).

If you want v2, click Save As New Version.

> Id I edit a photo and click 'Save as version' then a _v1 image is created. The
> original is incorrectly show and I the side-bar toggle button does not work.

The original is shown because it is still at the head of a branch.
Comment 10 Sergio Cambra 2011-09-29 22:31:33 UTC
Is it really a bug or not? How can I get intermediate images? I only can hide original, I never get intermediate versions hidden, neither using save changes, or save new version, neither enabling options
Comment 11 Marcel Wiesweg 2011-10-29 15:16:56 UTC
Sergio: Can you give a step-by-step description including set options of what you do to get unhidable intermediate images? Sometimes language is misleading in this context.
Comment 12 Sergio Cambra 2011-10-31 00:06:07 UTC
I have seen intermediate versions now, for example converting from RAW, applying bright/contrast and saving changes generates two versions: an intermediate version for RAW conversion and a normal version with filter applied.

I thought intermediate versions were saved versions without last version. However if I save changes after RAW conversion, and I save it again after filter applied, I get one version instead of a version and a intermediate version, or two versions. Also saving as new version, I get two versions, but no intermediate version, so I can hide it.

That was my error. Although I would like to get all versions hidden and show last version only, including export to JPEG as last version.
Comment 13 caulier.gilles 2016-07-06 17:10:09 UTC
This file still valid using last digiKAm 5.0.0 ?

Gilles Caulier
Comment 14 Peter 2016-10-04 23:44:52 UTC
Since upgrading past 5.0 I've seen part of the issue resolved, but I think they are two issues.

Before 5.0 often I'd have to "unhide" and rehide the base version to get it to hide.

Before and after 5.0 my metadata is often not correct.  I'll have an ID in versions 1 and 2 and a history tag in 2 pointing to ID 1.  Some of my images (including whole directories) are missing metadata.  Perhaps something broke on the original scan.  About 20% of the time I will reload version 1 and then 2, but they won't show up in the versions tab.  I have to reload a few more times.
Comment 15 basse 2017-01-21 16:07:12 UTC
just updated to Digikam 5.4.0 and this problem still exists. 

if in image editor I set click "save" just _v1 version is created/updated, and original image is preserved, and hidden in thumbnail view.. so this works.

but if I click "save version", a new _v? version is saved, and version tab looks updated nicely.. but, in thumbnail view all versions are always displayed.

clicking the little show/hides in version tab doesn't seem to do anything when there are more than one _v.

I'm on Kubuntu, running ppa version, but I tried the appmage too with same results.


1
.b
Comment 16 Simon Pfeifer 2017-12-17 01:13:05 UTC
Any updates on this? The album view gets cluttered pretty quickly if you edit your photos a lot with versioning.
Comment 17 caulier.gilles 2017-12-17 06:14:12 UTC
Please check if with currrent 5.8.0 pre release bundle the problem is reproducible :

https://files.kde.org/digikam/

Gilles Caulier
Comment 18 Simon Pfeifer 2017-12-18 00:00:42 UTC
Unfortunately not resolved in 5.8.0
Comment 19 Maik Qualmann 2017-12-25 19:49:34 UTC
*** Bug 388227 has been marked as a duplicate of this bug. ***
Comment 20 Maik Qualmann 2017-12-26 11:33:26 UTC
Created attachment 109527 [details]
versioning.patch

I'm putting this patch up for discussion. The image history and versioning is quite complex. With this patch, the visibility of the original image or intermediate steps would be correct. It is enough to re-read the metadata of a versioned image to repair the entries in the DB.

Maik
Comment 21 Maik Qualmann 2018-04-15 18:29:03 UTC
Git commit e5fd67611e46ec4553dab5bb7666ecd1df7e4c69 by Maik Qualmann.
Committed on 15/04/2018 at 18:28.
Pushed by mqualmann into branch 'master'.

fix displaying versioned images
FIXED-IN: 6.0.0

M  +2    -1    NEWS
M  +2    -1    core/libs/database/imagehistory/imagehistorygraph.cpp

https://commits.kde.org/digikam/e5fd67611e46ec4553dab5bb7666ecd1df7e4c69
Comment 22 Maik Qualmann 2018-07-14 06:44:44 UTC
*** Bug 396491 has been marked as a duplicate of this bug. ***
Comment 23 Maik Qualmann 2019-03-06 18:53:59 UTC
Git commit 00d67e8bbfba047e372374ee7c7c10a9dd1272df by Maik Qualmann.
Committed on 06/03/2019 at 18:52.
Pushed by mqualmann into branch 'master'.

revert patch for the item history
Related: bug 405137
FIXED-IN: 6.1.0

M  +2    -2    NEWS
M  +1    -2    core/libs/database/history/itemhistorygraph.cpp

https://commits.kde.org/digikam/00d67e8bbfba047e372374ee7c7c10a9dd1272df
Comment 24 Maik Qualmann 2019-03-06 19:07:53 UTC
Read here: https://bugs.kde.org/show_bug.cgi?id=405137#c9

Maik