Return-Path: Delivered-To: apmail-xmlgraphics-commits-archive@www.apache.org Received: (qmail 51620 invoked from network); 28 Sep 2007 08:20:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Sep 2007 08:20:56 -0000 Received: (qmail 33679 invoked by uid 500); 28 Sep 2007 08:20:47 -0000 Mailing-List: contact commits-help@xmlgraphics.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: general@xmlgraphics.apache.org Delivered-To: mailing list commits@xmlgraphics.apache.org Delivered-To: moderator for commits@xmlgraphics.apache.org Received: (qmail 21634 invoked by uid 99); 27 Sep 2007 15:40:45 -0000 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r580067 - /xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/PSImageUtils.java Date: Thu, 27 Sep 2007 15:40:22 -0000 To: commits@xmlgraphics.apache.org From: cbowditch@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20070927154025.82B231A9832@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: cbowditch Date: Thu Sep 27 08:40:17 2007 New Revision: 580067 URL: http://svn.apache.org/viewvc?rev=580067&view=rev Log: Bugzilla #43184 JPEG Images with a Grayscale Colorspace are incorrectly handled by PSImageUtils Submitted by Adrian Cumiskey Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/PSImageUtils.java Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/PSImageUtils.java URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/PSImageUtils.java?rev=580067&r1=580066&r2=580067&view=diff ============================================================================== --- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/PSImageUtils.java (original) +++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/PSImageUtils.java Thu Sep 27 08:40:17 2007 @@ -98,7 +98,7 @@ private static void writeImageCommand(Dimension imgDim, ColorSpace colorSpace, PSGenerator gen, String dataSource) throws IOException { - boolean iscolor = colorSpace.getType() != ColorSpace.CS_GRAY; + boolean iscolor = colorSpace.getType() != ColorSpace.TYPE_GRAY; prepareColorspace(colorSpace, gen); gen.writeln("<< /ImageType 1"); gen.writeln(" /Width " + imgDim.width); @@ -242,7 +242,7 @@ throws IOException { if (colorSpace.getType() == ColorSpace.TYPE_CMYK) { gen.writeln("/DeviceCMYK setcolorspace"); - } else if (colorSpace.getType() == ColorSpace.CS_GRAY) { + } else if (colorSpace.getType() == ColorSpace.TYPE_GRAY) { gen.writeln("/DeviceGray setcolorspace"); } else { gen.writeln("/DeviceRGB setcolorspace"); --------------------------------------------------------------------- Apache XML Graphics Project URL: http://xmlgraphics.apache.org/ To unsubscribe, e-mail: commits-unsubscribe@xmlgraphics.apache.org For additional commands, e-mail: commits-help@xmlgraphics.apache.org