Return-Path: X-Original-To: apmail-xmlgraphics-general-archive@www.apache.org Delivered-To: apmail-xmlgraphics-general-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 493E760F7 for ; Sat, 2 Jul 2011 12:05:46 +0000 (UTC) Received: (qmail 1263 invoked by uid 500); 2 Jul 2011 12:05:45 -0000 Mailing-List: contact general-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 general@xmlgraphics.apache.org Received: (qmail 1253 invoked by uid 99); 2 Jul 2011 12:05:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Jul 2011 12:05:45 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.115] (HELO eir.zones.apache.org) (140.211.11.115) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Jul 2011 12:05:44 +0000 Received: by eir.zones.apache.org (Postfix, from userid 80) id 1394248C60; Sat, 2 Jul 2011 12:05:24 +0000 (UTC) From: bugzilla@apache.org To: general@xmlgraphics.apache.org Subject: DO NOT REPLY [Bug 51465] New: Significant slowdown in PNG and TIFF processing with xmlgraphics 1.4 Date: Sat, 02 Jul 2011 12:05:23 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: XMLGraphicsCommons X-Bugzilla-Component: Image codecs X-Bugzilla-Keywords: X-Bugzilla-Severity: regression X-Bugzilla-Who: patches@portaildulibre.fr X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: general@xmlgraphics.apache.org X-Bugzilla-Target-Milestone: -- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: https://issues.apache.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 https://issues.apache.org/bugzilla/show_bug.cgi?id=3D51465 Bug #: 51465 Summary: Significant slowdown in PNG and TIFF processing with xmlgraphics 1.4 Product: XMLGraphicsCommons Version: 1.4 Platform: PC Status: NEW Severity: regression Priority: P2 Component: Image codecs AssignedTo: general@xmlgraphics.apache.org ReportedBy: patches@portaildulibre.fr Classification: Unclassified Created attachment 27243 --> https://issues.apache.org/bugzilla/attachment.cgi?id=3D27243 Profiler Hello,=20 I=E2=80=99m using fop 1.0 (xmlgraphics 1.4) to generate PDF, I noticed that= PDF generation with PNG or TIF image is 7 times longer.=20 The problem doesn't appear in the version 1.3 of xmlgraphics. The problem seems to come from color model associated with the image. * if is_sRGB_stdStale =3D true then getRBG method is very fast * if is_sRGB_stdStale =3D false then getRBG is slow because the treatment = is delegated to ICC_ColorSpace.toRGB The color model is correct, but it is modified by the class org.apache.xmlgraphics.image.loader.impl.imageio.ImageLoaderImageIO by the following code :=20 if (providerIgnoresICC && cm instanceof ComponentColorModel) { // Apply ICC Profile to Image by creating a new image with a new color model. ICC_Profile iccProf =3D tryToExctractICCProfile(iiometa); if (iccProf !=3D null) { ColorModel cm2 =3D new ComponentColorModel( new ICC_ColorSpace(iccProf), cm.hasAlpha(), cm .isAlphaPremultiplied(), cm .getTransparency(), cm.getTransferType(= )); WritableRaster wr =3D Raster.createWritableRaster(image= Data .getSampleModel(), null); imageData.copyData(wr); BufferedImage bi =3D new BufferedImage(cm2, wr, cm2 .isAlphaPremultiplied(), null); imageData =3D bi; cm =3D cm2; I removed this code and it works fine now, but it's dirty. What's the impac= t ? Until a fix, best regards. --=20 Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=3De= mail ------- You are receiving this mail because: ------- You are the assignee for the bug.= --------------------------------------------------------------------- To unsubscribe, e-mail: general-unsubscribe@xmlgraphics.apache.org For additional commands, e-mail: general-help@xmlgraphics.apache.org