Bug 468630 - .cbz files containing .webp or .tiff cannot be opened
Summary: .cbz files containing .webp or .tiff cannot be opened
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: Comicbook backend (show other bugs)
Version: 22.12.3
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-17 19:51 UTC by flampingog
Modified: 2023-04-27 02:21 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
test .cbz file with one .webp image (1004 bytes, application/cbz)
2023-04-17 22:10 UTC, flampingog
Details
error popup when trying to open file (4.27 KB, image/png)
2023-04-17 22:28 UTC, flampingog
Details

Note You need to log in before you can comment on or make changes to this bug.
Description flampingog 2023-04-17 19:51:31 UTC
SUMMARY
When I try to open a file (.cbz) containing .webp, a message pops up that the file cannot be opened.

STEPS TO REPRODUCE
1. create any .webp file
2. zip the file with 7z
3. change the file extension from .zip to .cbz
4. try to open the file

OBSERVED RESULT
message: "file cannot be opened"

EXPECTED RESULT
the file opens without problems as if it were if it contained .jpg or .png

SOFTWARE/OS VERSIONS
Windows: 10

ADDITIONAL INFORMATION
Okular cant open .webp files either (if you try drag and drop). However the site (https://okular.kde.org/) says it should be supported.
Okular can open an .tiff file (drag and drop), but if you zip this file and rename it to .cbz and try to open it, an error will appear.
Comment 1 Albert Astals Cid 2023-04-17 21:59:13 UTC
Please in the future do not report two different problems in the same issue, makes tracking them unnecessarily hard.

Also, can you please attach that cbz that you say we fail to open?
Comment 2 flampingog 2023-04-17 22:10:06 UTC
Created attachment 158178 [details]
test .cbz file with one .webp image
Comment 3 flampingog 2023-04-17 22:19:05 UTC
(In reply to Albert Astals Cid from comment #1)
> Please in the future do not report two different problems in the same issue,
> makes tracking them unnecessarily hard.
> 
> Also, can you please attach that cbz that you say we fail to open?

I apologize for two problems in one issue. The main problem is that .cbz files containing .webp image/s cannot be opened. (everything else is not so important)

I've added an example of a file that won't open.
Comment 4 flampingog 2023-04-17 22:28:45 UTC
Created attachment 158179 [details]
error popup when trying to open file
Comment 5 Sune Vuorela 2023-04-25 12:47:45 UTC
(In reply to flampingog from comment #2)
> Created attachment 158178 [details]
> test .cbz file with one .webp image

My okular opens it on linux.

Do you have in your okular install the windows equivalent of 
/usr/lib/x86_64-linux-gnu/qt5/plugins/imageformats/libqwebp.so  ? it could be called plugins\imageformats\qwebp.dll
Comment 6 Albert Astals Cid 2023-04-25 21:04:18 UTC
Yes that was the problem and is getting fixed soon-ish
Comment 7 flampingog 2023-04-27 02:21:20 UTC
(In reply to Albert Astals Cid from comment #6)
> Yes that was the problem and is getting fixed soon-ish
Glad to hear it. Apparently "okular-23.04.0-1367-windows-cl-msvc2019-x86_64" already contains a fix and everything works as it should. Thanks!

Problem solved.