https://bugs.kde.org/show_bug.cgi?id=489295
Bug ID: 489295 Summary: Okular 24.05.1 - Comic book - Arch Linux - Some distorted AVIF pages in zip compressed (cbz) comic books. Classification: Applications Product: okular Version: 24.05.1 Platform: Other OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: Comicbook backend Assignee: okular-devel@kde.org Reporter: reportbug.fretful...@passinbox.com Target Milestone: --- Created attachment 171075 --> https://bugs.kde.org/attachment.cgi?id=171075&action=edit Original images and script for building a buggy comic book System information: Arch linux + plasma-meta + okular + kimageformats + libavif + libheif (all completely updated) Material.7z content for reproducing the bug : --------------------------------------------- - Images downloaded from: https://wiki.creativecommons.org/wiki/Spectrumofrights_Comic1 - convertir_AVIF.sh script: Takes a 'directory' as unique argument ¡¡¡¡ without the ending slash '/' !!!!! (if the ending slash is included the ending comic book creates inside this directory and the last command removes this directory with the comic) and produces a directory.cbz comic book - In this case the pages were vertically oriented (-rotate 90 imagemagick argument) for being able to reproduce the bug. SUMMARY: -------- If an AVIF formated images containing zip compressed comic book (cbz) is opened, some pages are vertically stretched and horizontally shrink, so they are completely deformed. Using 7z (-tzip argument) or zip make different pages to be deformed (what is deformed with a compression tool may not be deformed with the other tool): "zip -r comic.cbz directory" has deformed images as "7z -tzip comic.cbz directory" has, but they may be in different locations. If the comic book is uncompressed (7z x comic.cbz) gwenview show images correctly. If tar (-ttar 7z parameter) or 7z default algorithm are used there is no problem. Extracting the deformed pages and opening them individually (okular extracted_image.avif) shows them correctly. The bug only occurs if an AVIF images containing directory is compresed in zip format for creating a cbz comic book. Resuming: - Extract Material.7z content. - The argument directory of convertir_AVIF.sh will be removed so create a copy of Imágenes directory. For this example: cp -r Imágenes Cómic - Execute "sh convertir_AVIF.sh Cómic" - Open the resulting Cómic.cbz file with okular - There will be some disorted images. (If not forget this bug report and I'll have to dig in my system to find the source of the error XD) - Modifications to the script: 7z -tzip a "$1".cbz "$1" &&\ -> zip -r "$1".cbz "$1" &&\ [Will have deformed images too, possibly in different locations] 7z -tzip a "$1".cbz "$1" &&\ -> 7z -ttar a "$1".cbt "$1" &&\ [The generated comic book will not have any problem] 7z -tzip a "$1".cbz "$1" &&\ -> 7z a "$1".cb7 "$1" &&\ [The generated comic book will not have any problem] SOFTWARE/OS VERSIONS Linux/KDE Plasma: Arch + Plasma 6.1.0 (available in About System) KDE Plasma Version: 6.1.0 KDE Frameworks Version: 6.3.0 Qt Version: 6.7.2 -- You are receiving this mail because: You are the assignee for the bug.