Project

General

Profile

Feature #8683

Please add support for JPEG 2000

Added by Carlo Stemberger almost 6 years ago. Updated about 4 years ago.

Status:
In Progress
Priority:
Low
Category:
Lighttable
Target version:
Start date:
Due date:
% Done:

50%

Affected Version:
System:
bitness:
64-bit
hardware architecture:
amd64/x86

Description

I'd like to use darktable for a stop motion animation project.

JPEG 2000 is a film industry standard, since it is used for making DCPs:

http://en.wikipedia.org/wiki/Digital_Cinema_Package

It would be great if you could add support for this format, maybe via OpenJPEG:

http://www.openjpeg.org/

Thank you!

Associated revisions

Revision 99bf89ae
Added by Tobias Ellinghaus over 5 years ago

imageio: add support for writing JPEG-2000 images

See #8683. There are no manual controls over the compression, ... yet.

History

#1 Updated by Simon Spannagel almost 6 years ago

Hi!

patches for new export modules are welcome! The current ones reside in src/imageio/format
http://darktable.git.sourceforge.net/git/gitweb.cgi?p=darktable/darktable;a=tree;f=src/imageio/format

maybe you want to add support for your wish. If you need help or want to propose your new module to be included just join the mailing list or our IRC channel (more ino on website->contact)

regards,
Simon

#2 Updated by Tobias Ellinghaus over 5 years ago

  • Status changed from New to Triaged
  • % Done changed from 0 to 20

Just out of curiosity, would you need to import or export JPEG2000 files?

#3 Updated by Carlo Stemberger over 5 years ago

Tobias Ellinghaus wrote:

Just out of curiosity, would you need to import or export JPEG2000 files?

Export: RAW to JPEG 2000.

Thank you!

Carlo

#4 Updated by Tobias Ellinghaus over 5 years ago

  • Target version changed from Future to Candidate for next minor release
  • Category changed from General to Lighttable
  • Status changed from Triaged to In Progress
  • % Done changed from 20 to 50

I just added basic write support for JPEG-2000 files. There are presets for DCP compliant files but you have to set the file size manually (dt will tell you on stderr when it's not the correct size).

Please test and give feedback if that's useful for you and if you found bugs/problems.

#5 Updated by Carlo Stemberger over 5 years ago

Hi Tobias,

Tobias Ellinghaus wrote:

I just added basic write support for JPEG-2000 files.

Thank you very much!

Please test and give feedback if that's useful for you and if you found bugs/problems.

Is there a binary package for Debian Wheezy/Sid?

Thanks!

#6 Updated by Christoph Scheurer over 5 years ago

Hello,

I just added basic write support for JPEG-2000 files.
Please test and give feedback if that's useful for you and if you found bugs/problems.

I have built darktable from git to test it with JPEG-2000.

Would it be hard to add read support as well? In my case that would be the functionality I am missing more.

Thanks!

#7 Updated by Tobias Ellinghaus over 5 years ago

I am already working on it and most parts are finished. I guess I can push to master this week.

#8 Updated by Tobias Ellinghaus over 5 years ago

  • Assignee set to Tobias Ellinghaus

#9 Updated by Milan Knizek over 5 years ago

It seems that despite OpenJPEG version 1.5.0 is used on my system:

--- cut of dt configure log ---
-- Found OpenJPEG: /usr/lib/libopenjpeg.so
-- OpenJPEG version 1.5.0 found. Only 1.5 and newer support reading of icc profiles.
--- cut ---

the only ICC profile saved by dt is sRGB:

$ identify -verbose output.jp2
Profile-icc: 3024 bytes
Description: sRGB IEC61966-2.1
Manufacturer: IEC http://www.iec.ch
Model: IEC 61966-2.1 Default RGB colour space - sRGB
Copyright: Copyright (c) 1998 Hewlett-Packard Company

(Which is a similar problem that apps using Jasper (IM, GM, digiKam) suffer from. Wondering why OpenJPEG, too...)

#10 Updated by Tobias Ellinghaus over 5 years ago

It says "reading". When we write JPEG-2000 files we currently ignore color profiles.

#11 Updated by Milan Knizek over 5 years ago

Sorry for deducing wrong conclusions. I've looked up a bit more on ICC profile embedding in JPEG 2000 and it seems that the ISO standard does not expect it (yet) for display class profiles anyway.

#12 Updated by Roman Lebedev about 4 years ago

  • % Done changed from 50 to 100
  • Status changed from In Progress to Fixed

Export to JPEG2000 is implemented for quite some time now, so i'll close this as fixed.

#13 Updated by Tobias Ellinghaus about 4 years ago

  • Target version changed from Candidate for next minor release to Future
  • Status changed from Fixed to In Progress
  • % Done changed from 100 to 50

JPEG2000 support is not complete.

Also available in: Atom PDF