Uploaded image for project: 'Imaging'
  1. Imaging
  2. MGNLIMG-179

Add support for CMYK and "broken" JPEGs

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • None
    • image operations
    • None
    • LFRZ

      Please add support for CMYK images, as well as more general support for JPEG images which aren't 100% spec. conformant.

      Background: we have a large setup with >100GB of DAM data. Our editors use images a lot.

      Over the years, we have seen many instances of the following two problems:

      1. CMYK JPEGs.
      They can be uploaded, and work normally as long the original image is used. However, ImageIO can't handle them, and therefore CMYK JPEGs don't work in conjuction with imaging (variations).
      This is massively confusing for the editors, because everything works normally, no errors are displayed, the image displays normally in the DAM app, but then the image does not show up in the pages (which use variations).

      2. "Slightly broken" JPEGs
      The world is apparently full of JPEG files which aren't 100% spec conformant. The most common example for this is apparently when the JPEG itself is RGB but the embedded ICC Profile is RGBA. ImageIO can't read such images, however they are a common occurrance. Even professional tools (eg PS CS6 Mac, and others) produce images with these problems.
      It's hard for editors to understand why they don't work in magnolia since windows, MacOS and almost any image editor will open them without problems, just not magnolia...

      To try to fix this, we have come across the following library:

      https://github.com/haraldk/TwelveMonkeys

      We are testing it in our QS, but it seems to work very well. Just add the library to the classpath (no other configuration is needed!) and magnolia can suddenly handle CMYK and most "buggy" JPEGs just fine.

      Please consider adding 12Monkeys to the standard release.

        Acceptance criteria

              Unassigned Unassigned
              runger Richard Unger
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: