You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xmlgraphics.apache.org by vh...@apache.org on 2009/05/08 13:17:06 UTC
svn commit: r772942 - in /xmlgraphics/commons/trunk:
src/java/org/apache/xmlgraphics/ps/ImageEncodingHelper.java status.xml
Author: vhennebert
Date: Fri May 8 11:17:06 2009
New Revision: 772942
URL: http://svn.apache.org/viewvc?rev=772942&view=rev
Log:
Switched from linear RGB to sRGB for the fallback color model, in order to avoid trouble with some images (CMYK TIFF, for example).
Modified:
xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/ImageEncodingHelper.java
xmlgraphics/commons/trunk/status.xml
Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/ImageEncodingHelper.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/ImageEncodingHelper.java?rev=772942&r1=772941&r2=772942&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/ImageEncodingHelper.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/ImageEncodingHelper.java Fri May 8 11:17:06 2009
@@ -41,7 +41,7 @@
public class ImageEncodingHelper {
private static final ColorModel DEFAULT_RGB_COLOR_MODEL = new ComponentColorModel(
- ColorSpace.getInstance(ColorSpace.CS_LINEAR_RGB),
+ ColorSpace.getInstance(ColorSpace.CS_sRGB),
false, false, ColorModel.OPAQUE, DataBuffer.TYPE_BYTE);
private final RenderedImage image;
Modified: xmlgraphics/commons/trunk/status.xml
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/status.xml?rev=772942&r1=772941&r2=772942&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/status.xml (original)
+++ xmlgraphics/commons/trunk/status.xml Fri May 8 11:17:06 2009
@@ -41,6 +41,10 @@
<changes>
<release version="Trunk" date="n/a">
<action context="Code" dev="JM" type="fix">
+ Switched from linear RGB to sRGB for the fallback color model, in order to avoid trouble
+ with some images (CMYK TIFF, for example).
+ </action>
+ <action context="Code" dev="JM" type="fix">
Bugfix: reset graphic state when a page is finished in PostScript.
</action>
<action context="Code" dev="VH" type="fix">
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: commits-help@xmlgraphics.apache.org