mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2026-02-21 23:43:03 -05:00
Add JPEG 2000 support
JPEG 2000 support using OpenJPEG library. - Add read/write support to JP2/J2K format for Gray/RGB(A)/CMYK images @8/16-bits - Read test case images generated by Photoshop The plugin has the following limitations: - Resolution is not set (JP2_RES box is marked "For the future" in jp2.h) - Metadata are not set (as with resolution) Closes #13
This commit is contained in:
committed by
Albert Astals Cid
parent
e6a0f8758b
commit
c97ee00f5e
@ -86,6 +86,12 @@ if (LibJXL_FOUND AND LibJXLThreads_FOUND)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if (OpenJPEG_FOUND)
|
||||
kimageformats_add_plugin(kimg_jp2 SOURCES jp2.cpp scanlineconverter.cpp)
|
||||
target_include_directories(kimg_jp2 PRIVATE ${OPENJPEG_INCLUDE_DIRS})
|
||||
target_link_libraries(kimg_jp2 PRIVATE ${OPENJPEG_LIBRARIES})
|
||||
endif()
|
||||
|
||||
##################################
|
||||
|
||||
kimageformats_add_plugin(kimg_pcx SOURCES pcx.cpp)
|
||||
|
||||
Reference in New Issue
Block a user