Bug 487415 - No more viewing tiff files
Summary: No more viewing tiff files
Status: REPORTED
Alias: None
Product: kphotoalbum
Classification: Applications
Component: Viewer (other bugs)
Version First Reported In: 5.12.0
Platform: Manjaro Linux
: NOR grave
Target Milestone: ---
Assignee: KPhotoAlbum Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-23 07:49 UTC by Alex6
Modified: 2024-05-26 08:05 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
attachment-911996-0.html (3.69 KB, text/html)
2024-05-23 10:24 UTC, Alex6
Details
attachment-967354-0.html (1.26 KB, text/html)
2024-05-23 16:02 UTC, Alex6
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alex6 2024-05-23 07:49:03 UTC
SUMMARY


STEPS TO REPRODUCE
1. open kpa, 
2. select a tif thumbnail to show it in the viewer
3. 

OBSERVED RESULT
black screen

EXPECTED RESULT
image

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 
Qt Version:  5.15.13+kde  &  6.7.0

ADDITIONAL INFORMATION
Comment 1 Tobias Leupold 2024-05-23 08:00:25 UTC
Hi, thanks for your report.

I can't reproduce this with current git master. I converted some image to TIFF using GIMP and added it to a test database. Both the thumbnail and the image in the viewer show up as expected.

Maybe it's something with a specific TIFF file? Can you open it with something else? Could you provide an example file not showing up in KPA?
Comment 2 Alex6 2024-05-23 10:24:39 UTC
Created attachment 169738 [details]
attachment-911996-0.html

Le jeudi 23 mai 2024 10:00:25 UTC+2, vous avez écrit :
> https://bugs.kde.org/show_bug.cgi?id=487415
> 
> Tobias Leupold <tl@stonemx.de> changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                  CC|                            |tl@stonemx.de
> 
> --- Comment #1 from Tobias Leupold <tl@stonemx.de> ---
> Hi, thanks for your report.
> 
> I can't reproduce this with current git master. I converted some image to TIFF
> using GIMP and added it to a test database. Both the thumbnail and the image in
> the viewer show up as expected.
> 
> Maybe it's something with a specific TIFF file? Can you open it with something
> else? Could you provide an example file not showing up in KPA?
> 
> 
Hi , thanks for your quick reply

I use most often 16 bits tiff, no longer recognized by kpa since my upgrade to plasma6. So I hadn't noticed that kpa normally handles 8-bit tiff files.

Kpa shows thumbnails made from tif 16 bits before this upgrade, but doesnt show them in viewer. 
(Gwenwiew or Okular show these tif 16)

Kpa refuses to index new tif 16, compressed or not (no error messages when kpa started in console)

Best regards
Comment 3 Tobias Leupold 2024-05-23 10:35:03 UTC
We haven't ported KPA to Qt6/KF6 yet, so updating the rest of the desktop should not affect KPA.

Problem is that I can't reproduce this … I can't even create a 16-bit TIFF, there's no such option in GIMP … could you provide an example file?
Comment 4 Alex6 2024-05-23 11:39:19 UTC
Le jeudi 23 mai 2024 12:35:03 UTC+2, vous avez écrit :
> https://bugs.kde.org/show_bug.cgi?id=487415
> 
> --- Comment #3 from Tobias Leupold <tl@stonemx.de> ---
> We haven't ported KPA to Qt6/KF6 yet, so updating the rest of the desktop
> should not affect KPA.
> 
> Problem is that I can't reproduce this … I can't even create a 16-bit TIFF,
> there's no such option in GIMP … could you provide an example file?
> 
> 

... It affects !
To create an  xbit image with Gimp: Image->Precision-> 8 / 16 / 32 bits ... then File->Export

An example:
Comment 5 Tobias Leupold 2024-05-23 12:51:34 UTC
Please don't cite some E-Mail when replying, it's spamming the bug ;-)

I now tried 8-bit, 16-bit and 32-bit TIFF images. KPA can handle 8 and 16 bits, but not 32. But neither can e.g. Gwenview. So I think this is more a KDE or Qt issue in general?!

At this point, I'm out ;-) Maybe, Johannes knows something more about this.
Comment 6 Alex6 2024-05-23 16:02:27 UTC
Created attachment 169742 [details]
attachment-967354-0.html

Not tried 32-bit.
In Kpa:
tiff 8bit indexed before plasma6 work (thumbnail + viewer)
tiff 16bit  indexed before plasma6: thumbnail visible, no viewer
every new tiff files added since plasma6: not indexed, no thumbnail

Gwenview or okular: tiff 8 and 16 : normally "thumbnailed" and viewed, not 32.

A distribution problem within KDE/QT 5/6 ??? 

Console message trying to view tiff 16:
unknown file: data corrupted at 2 
unknown file: data corrupted at 2 
unknown file: data corrupted at 2 
QImage::scaled: Image is a null image
Comment 7 Johannes Zarl-Zierl 2024-05-25 15:45:43 UTC
Hi,

I can't reproduce this either, but I also don't have plasma6 yet.
TIFF with both 8 and 16 bit work for me; 32 bit do not.

My best guess is that this is a library issue in your distribution. Could you open a bug with Manjaro to see if they can debug the problem?

In the mid-term, this issue is probably solved by porting kphotoalbum to plasma6. Unfortunately, I'm a currently bit tight on time so I can't give you an estimate when this will be...

Cheers,
  Johannes
Comment 8 Tobias Leupold 2024-05-26 08:05:10 UTC
Only speaking for me, I could start porting KPA as soon as Gentoo allows a decent upgrade to KF6.