Patch #676

Patch for reading ICC color profiles

Added by Andreas Huggel about 7 years ago. Updated over 1 year ago.

Status:ClosedStart date:26 Jan 2010
Priority:NormalDue date:
Assignee:Robin Mills% Done:

100%

Category:metadata
Target version:0.26

Description

Contributed by Joachim Gelhaus, Cewe Color:

The attached patch adds the ability to read ICC color profile out of the JPEG
APP2 marker as just a bunch of bytes.

Some notes:
  • All modified sections are marked with an #ifdef JGE_ICC_PATCHES which
    is defined in the exv_conf.h file.
  • Class ICCColorProfile has been added to types.h (just a simple
    wrapper to a byte*. Similar to DataBuf)
  • JpegBase got two new static const members: app2_ and iccId_[]
  • The Image class has two new functions: setIccData(const
    ICCColorProfile & newIccData); and ICCColorProfile& iccData() { return
    iccData_; }
  • The most changes are in jpgimage.cpp readMetadata() and
    writeMetadata()

patchforreadingicccolorprofiles.zip - Patch for reading ICC color profiles (34.7 KB) Andreas Huggel, 26 Jan 2010 19:07


Related issues

Related to Exiv2 - Feature #585: Unified metadata container New
Related to Exiv2 - Feature #756: Access to ICC Profile (TAG: 0x8773) data in Exif as unint... Closed 04 Feb 2011
Related to Exiv2 - Feature #1074: ICC Profile in APP2 segment. Closed 07 May 2015

History

#1 Updated by Andreas Huggel almost 7 years ago

Will consider this once we have the unified metadata container (#585) - then we'll be able to interpret additional types of metadata too.

#2 Updated by Robin Mills over 1 year ago

  • Status changed from New to Closed
  • Assignee set to Robin Mills
  • Target version set to 0.26

I'm going to mark this closed. However it's linked to #1074 which I intend to implement for v0.26.

Thanks very much to Joachim for the patch. I'll reviewed this and will use this as inspiration for #1074. I'd like to support the extraction of color profiles from JPEG/TIFF/PNG files (and Tiff-type raw formats such as DNG and NEF).

#3 Updated by Robin Mills over 1 year ago

  • % Done changed from 0 to 100

Also available in: Atom PDF

Redmine Appliance - Powered by TurnKey Linux