Bug 412499 - No rendering of JPXDecode images in PDF
Summary: No rendering of JPXDecode images in PDF
Status: RESOLVED DOWNSTREAM
Alias: None
Product: okular
Classification: Applications
Component: PDF backend (show other bugs)
Version: 1.8.1
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-01 08:44 UTC by David Pérez
Modified: 2019-10-03 10:01 UTC (History)
2 users (show)

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


Attachments
PDF that has JPEG2000 Images embedded (808.94 KB, application/pdf)
2019-10-02 06:17 UTC, David Pérez
Details
Screenshot with bad rendering (1.50 MB, image/png)
2019-10-03 06:46 UTC, David Pérez
Details
Good rendering of sample file (676.88 KB, image/png)
2019-10-03 06:47 UTC, David Pérez
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Pérez 2019-10-01 08:44:04 UTC
SUMMARY


STEPS TO REPRODUCE
Open a PDF that contains embedded JPEG2000 images (with the JPXDecode filter)

OBSERVED RESULT
Images are not shown, even though Firefox, and Chromium can show them


EXPECTED RESULT
Render all images

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.16.4, based on Ubuntu 18.04
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Yuri Chornoivan 2019-10-01 08:45:58 UTC
Can you provide an example for testing?

Thanks in advance for your answer.
Comment 2 David Pérez 2019-10-02 06:17:19 UTC
Created attachment 122971 [details]
PDF that has JPEG2000 Images embedded
Comment 3 Yuri Chornoivan 2019-10-02 08:16:16 UTC
Looks fine here (poppler 0.74 and 0.81, Mageia 7, KF 5.57, libopenjp2 2.3.1, okular 1.7.0 and okular 1.8.70).

Can you check if libopenjp2 installed and if poppler is compiled with libopenjpeg2 support?

Thanks in advance for your answer.
Comment 4 David Pérez 2019-10-03 06:38:41 UTC
# find /usr -name 'libopenjp2*'
/usr/share/doc/libopenjp2-7
/usr/lib/x86_64-linux-gnu/libopenjp2.so.2.3.0
/usr/lib/x86_64-linux-gnu/libopenjp2.so.7

# find /usr -name '*poppler*'|grep -v .mo
/usr/share/cups/mime/cupsfilters-poppler.convs
/usr/share/lintian/overrides/poppler-utils
/usr/share/poppler
/usr/share/pkgconfig/poppler-data.pc
/usr/share/metainfo/org.kde.okular-poppler.metainfo.xml
/usr/share/doc/poppler-data
/usr/share/doc/poppler-utils
/usr/share/doc/libpoppler-glib8
/usr/share/doc/libpoppler-qt5-1
/usr/share/doc/libpoppler73
/usr/share/doc/libpoppler87
/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kfilemetadata/kfilemetadata_popplerextractor.so
/usr/lib/x86_64-linux-gnu/qt5/plugins/okular/generators/okularGenerator_poppler.so
/usr/lib/x86_64-linux-gnu/libpoppler.so.88.0.0
/usr/lib/x86_64-linux-gnu/libpoppler-qt5.so.1
/usr/lib/x86_64-linux-gnu/libpoppler-glib.so.8
/usr/lib/x86_64-linux-gnu/libpoppler-glib.so.8.12.0
/usr/lib/x86_64-linux-gnu/libpoppler.so.73
/usr/lib/x86_64-linux-gnu/libpoppler.so.88
/usr/lib/x86_64-linux-gnu/libpoppler.so.73.0.0
/usr/lib/x86_64-linux-gnu/libpoppler-qt5.so.1.19.0

I don't know how poppler was compiled.  Maybe the people of KDE Neon can know about it.
Comment 5 David Pérez 2019-10-03 06:46:48 UTC
Created attachment 122985 [details]
Screenshot with bad rendering
Comment 6 David Pérez 2019-10-03 06:47:12 UTC
Created attachment 122986 [details]
Good rendering of sample file
Comment 7 Albert Astals Cid 2019-10-03 07:05:34 UTC
Ubuntu is famously known for being useless packaging poppler. Don't use Ubuntu if reading PDF files is important for you. 

https://bugs.launchpad.net/ubuntu/+source/poppler/+bug/710412