[MGNLIMG-179] Add support for CMYK and "broken" JPEGs Created: 26/Nov/15  Updated: 19/May/22  Resolved: 19/May/22

Status: Closed
Project: Imaging
Component/s: image operations
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: Richard Unger Assignee: Unassigned
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

LFRZ


Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Date of First Response:

 Description   

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.



 Comments   
Comment by Roman Kovařík [ 19/May/22 ]

Hello,

This ticket is now marked as closed due to one of the following reasons:

  • A long period of inactivity
  • Uses an old or Beta version of an application, module, or framework that we no longer support
  • The issue is no longer reproducible or has been fixed in later versions

If you are still facing a problem or consider this issue still relevant, please feel free to re-open the ticket and we will reach out to you.

Thank you,
The Magnolia Team

Generated at Mon Feb 12 02:13:03 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.