diff options
author | Jeremias Maerki <jeremias@apache.org> | 2008-04-21 08:32:02 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2008-04-21 08:32:02 +0000 |
commit | ec0cb2d2d4e0aecbc066837dd62d5da8249a27e6 (patch) | |
tree | 8e2804d8e3819b4ac9c79c9179bb6c9b76fe1b27 /src/java/org | |
parent | a0a75029b98d18c23601745bad7669fb60503fe8 (diff) | |
download | xmlgraphics-fop-ec0cb2d2d4e0aecbc066837dd62d5da8249a27e6.tar.gz xmlgraphics-fop-ec0cb2d2d4e0aecbc066837dd62d5da8249a27e6.zip |
Partially reverted my revision 641827: The yellow tint of certain JPEG images came from badly extracted ICC color profiles. This is fixed in XML Graphics Commons Trunk (revision 650048).
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@650050 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org')
-rw-r--r-- | src/java/org/apache/fop/render/pdf/ImageRawJPEGAdapter.java | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/java/org/apache/fop/render/pdf/ImageRawJPEGAdapter.java b/src/java/org/apache/fop/render/pdf/ImageRawJPEGAdapter.java index 1c8fceb50..1e505daed 100644 --- a/src/java/org/apache/fop/render/pdf/ImageRawJPEGAdapter.java +++ b/src/java/org/apache/fop/render/pdf/ImageRawJPEGAdapter.java @@ -18,7 +18,6 @@ /* $Id$ */ package org.apache.fop.render.pdf; -import java.awt.color.ICC_Profile; import java.io.DataInput; import java.io.IOException; import java.io.InputStream; @@ -36,7 +35,6 @@ import org.apache.fop.pdf.PDFDeviceColorSpace; import org.apache.fop.pdf.PDFDocument; import org.apache.fop.pdf.PDFFilter; import org.apache.fop.pdf.PDFFilterList; -import org.apache.fop.util.ColorProfileUtil; /** * PDFImage implementation for the PDF renderer which handles raw JPEG images. @@ -82,21 +80,6 @@ public class ImageRawJPEGAdapter extends AbstractImageAdapter { } /** {@inheritDoc} */ - protected ICC_Profile getEffectiveICCProfile() { - ICC_Profile profile = super.getEffectiveICCProfile(); - if (profile != null - && profile.getNumComponents() == 3 - && !ColorProfileUtil.isDefaultsRGB(profile)) { - //RGB profiles which are not sRGB don't seem to work. - //Without this override, the image drifts into yellow for an unknown reason. - //TODO Find out why this happens. - //Test using a JPEG images with, for example, "Adobe RGB 1998" color profile. - profile = null; - } - return profile; - } - - /** {@inheritDoc} */ public int getBitsPerComponent() { return 8; } |