https://bugs.kde.org/show_bug.cgi?id=525497

            Bug ID: 525497
           Summary: okular fails to render pdf which is handled correctly
                    by other viewers
    Classification: Applications
           Product: okular
      Version First 25.12.1
       Reported In:
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: PDF backend
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

Created attachment 195963
  --> https://bugs.kde.org/attachment.cgi?id=195963&action=edit
pdf containing jp2 with alpha channel and SMaskInData = 1

DESCRIPTION
The alpha2.pdf contains a jp2 image which is 8 bit RGB with an alpha channel
for 
transparency. Normally, with transparency you have one object containing the 
RGB channels and a separate object for the SMask which is a single channel 
with transparency data, but for JP2 you can set the attribute "SMaskInData" 
and the renderer uses the transparency info in the image without a separate 
SMask object.

It is not just okular which has problems with this pdf. On linux I 
found:-

Not working
=======
okular
evince
atril
qpdfview
xpdf

Are working
=======
gwenview
mupdf
display
gv
firefox
chrome

STEPS TO REPRODUCE
1. open alpha2.pdf with okular 
2. 
3. 

OBSERVED RESULT
The jp2 image within the pdf is corrupt.

NOTE: If a transparent jp2 is embedded as one Image object with the 3 RGB
channels which points to a separate SMask object with the alpha channel, the
pdf is shown normally. The problem occurs when all 4 channels are in the Image
object and the SMaskInData attribute is set to 1.

EXPECTED RESULT
Correctly rendered pdf.

SOFTWARE/OS VERSIONS
KDE Plasma Version: 6.5.5
KDE Frameworks Version: 6.22.0
Qt Version: 6.10.0

ADDITIONAL INFORMATION

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to