Bug 272725 - Some PEF/jpeg files not recognized as raw/non raw
Summary: Some PEF/jpeg files not recognized as raw/non raw
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Metadata-Raw (show other bugs)
Version: 2.0.0
Platform: Ubuntu Linux
: NOR major
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-07 19:14 UTC by Rinus Bakker
Modified: 2019-12-23 17:49 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 7.0.0


Attachments
illustration of problem (298.83 KB, image/png)
2011-05-07 19:25 UTC, Rinus Bakker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rinus Bakker 2011-05-07 19:14:58 UTC
Version:           2.0.0 (using KDE 4.6.2) 
OS:                Linux

Using dk 2.0.0 beta 4. Tested beta 5: it is still there.

Certain images are shown as: dimensions ¨unknown¨ or as ¨0x0 (0.00Mpx)¨, bit depth 0 bpp, color mode ¨unknown¨ in ¨properties¨ tab while those info is correct in the ¨metadata¨ tab.

But what is worse:

Those pictures do show up if the picture is a PEF and the filter = non RAW files
Those pictures do not show up if the picture is a JPG and the filter = Jpeg
Those pictures do not show up if the picture is a PEF and the filter = Raw files

I decided to filter for ¨no raw files¨ to delete all jpg in a folder and lost this way a number raw files, fortunately saved by the backup.

This happens or happens not. I could not find out why or when it happens or not happens. But if it happens to a specific picture it happens all the time to that specific picture.



Reproducible: Always

Steps to Reproduce:
No idea
Comment 1 Rinus Bakker 2011-05-07 19:25:56 UTC
Created attachment 59736 [details]
illustration of problem
Comment 2 caulier.gilles 2011-05-07 22:49:38 UTC
No idea why these file are not parsed properlly. Perhaps something is broken with your Exiv2 install...

Please attach me some files to test in local with my computer...

Gilles Caulier
Comment 3 Rinus Bakker 2011-05-08 10:47:11 UTC
After resizing the problem has gone, so I have to send the original but 
as I expected that failed. What should I do?
Rinus

Op 07-05-11 22:49, Gilles Caulier schreef:
> https://bugs.kde.org/show_bug.cgi?id=272725
>
>
> Gilles Caulier<caulier.gilles@gmail.com>  changed:
>
>             What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                   CC|                            |caulier.gilles@gmail.com
>            Component|Filters                     |Metadata
>
>
>
>
> --- Comment #2 from Gilles Caulier<caulier gilles gmail com>   2011-05-07 22:49:38 ---
> No idea why these file are not parsed properlly. Perhaps something is broken
> with your Exiv2 install...
>
> Please attach me some files to test in local with my computer...
>
> Gilles Caulier
>
Comment 4 caulier.gilles 2011-05-08 15:23:00 UTC
What digiKam said in the console when you import a new image in full size, and show with dumy dimension in incon view ?

Gilles Caulier
Comment 5 Rinus Bakker 2011-05-08 19:47:02 UTC
I did some tests. copying an affected file within dk passed te problems 
on to the copied image. After copy image outside dk the copy had not 
such issues.
I concluded that the problem is a corrupte db and did reread metadata 
from file. This solved the issue.

Probably no further action required. What do you think?

Only problem. How becomes the db corrupted in a way the image properties 
assumed are incorrect while the info is correct in the metadata?

Rinus

Op 08-05-11 15:23, Gilles Caulier schreef:
> https://bugs.kde.org/show_bug.cgi?id=272725
>
>
>
>
>
> --- Comment #4 from Gilles Caulier<caulier gilles gmail com>   2011-05-08 15:23:00 ---
> What digiKam said in the console when you import a new image in full size, and
> show with dumy dimension in incon view ?
>
> Gilles Caulier
>
Comment 6 Marcel Wiesweg 2011-06-11 17:00:48 UTC
What about the file size (in bytes) entry in the right side bar? Is it 0 or correct? Does the problem go away after a restart (given "Scan at startup" is enabled)?
There is the long-standing problem #233222 which is not trivial to fix perfectly.
Comment 7 Marcel Wiesweg 2011-06-11 17:01:14 UTC
If not fixed by a restart, is it fixed by F5?
Comment 8 Rinus Bakker 2011-06-11 20:02:28 UTC
Op 11-06-11 17:00, Marcel Wiesweg schreef:
> https://bugs.kde.org/show_bug.cgi?id=272725
>
>
>
>
>
> --- Comment #6 from Marcel Wiesweg<marcel wiesweg gmx de>   2011-06-11 17:00:48 ---
> What about the file size (in bytes) entry in the right side bar? Is it 0 or
yes 0
> correct? Does the problem go away after a restart (given "Scan at startup" is
> enabled)?
did not try
fixed it by reread metadata from photo (is that F5? have no dk at hand 
at the moment)
> There is the long-standing problem #233222 which is not trivial to fix
> perfectly.
>
Comment 9 Marcel Wiesweg 2011-06-11 22:50:34 UTC
F5 will do less than Reread metadata, but it will certainly rescan zero size images. 
What is missing is to rescan partial files after they have reached their final size, but I did not find a cross-platform method to check if a file is currently written to, nor is there any form of notification.
Comment 10 Marcel Wiesweg 2011-06-11 22:51:27 UTC

*** This bug has been marked as a duplicate of bug 233222 ***
Comment 11 caulier.gilles 2019-12-23 17:49:01 UTC
Not reproducible with digiKam 7.0.0-beta1.