Bug 99347 - Implement filter support for JPEG 2000 images, only basic format JP2 not JPX
Summary: Implement filter support for JPEG 2000 images, only basic format JP2 not JPX
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 112121 (view as bug list)
Depends on:
Blocks: Format-Filters Images
  Show dependency treegraph
 
Reported: 2016-04-16 14:24 UTC by V Stuart Foote
Modified: 2024-08-30 08:46 UTC (History)
7 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description V Stuart Foote 2016-04-16 14:24:56 UTC
We currently provide no IO filter support for the JPEG 2000 (ISO/IEC 15444) image format(s). 

If licensing and packaging size permit, believe support for basic (ISO 15444-1).jp2 formats might be feasible implementing work FOSS of the OpenJPEG or JasPer projects.
Comment 1 V Stuart Foote 2016-04-16 16:25:31 UTC
Alternatively to handling natively, seems like Imagemagick's convert already provides (OpenJPEG based) conversion of the JP2 format to BMP or PNG. 

As that is already an external dependency for the EPS filter would we be causing ourselves too much pain to add another filter like ieps.cxx to handle reading JP2?

=-ref-= 
http://opengrok.libreoffice.org/xref/core/filter/source/graphicfilter/ieps/ieps.cxx?a=true#342
Comment 2 Christian Lohmaier 2019-11-08 17:46:05 UTC
*** Bug 112121 has been marked as a duplicate of this bug. ***
Comment 3 Dave Gilbert 2024-08-29 13:33:23 UTC
If this is implemented please turn it on in our Poppler build/config as well.
This might allow the images in the PDF in tdf#101611 to be rendered using our built in poppler. (They work fine using the system libpoppler builds on both Ubuntu and Debian)
Comment 4 V Stuart Foote 2024-08-29 14:57:14 UTC
@Tomaž, Caolán, *

Did some support of jp2 as an imported image format ever get kicked around dev circles. 

I see in gerrit where we'd dropped poppler's internal JPEG2000 codec [1], while our move from libjpeg to libjpeg-turbo started at the 4.4 release.

But of course libjpeg and then libjpeg-turbo have no support for jp2 wavelet compression. 

So as jp2 remains in poppler-utils could we restore its use to our poppler builds (to at least parse embedded jp2 image streams out of PDF archives)?

=-ref-=
[1] https://gerrit.libreoffice.org/c/core/+/38029
Comment 5 Tomaz Vajngerl 2024-08-30 08:46:06 UTC
We do already build Jpeg2000 with PDFium anyway (Jpeg2000 was added to PDF standard so it's needed to have full PDF support), but PDFium is not a mandatory  library (yet). Adding support for JP2k to LO would make sense IMHO, but I'm not doing the work :)