Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 91179 invoked from network); 25 Oct 2005 14:08:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 Oct 2005 14:08:05 -0000 Received: (qmail 14001 invoked by uid 500); 25 Oct 2005 14:07:28 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 13069 invoked by uid 500); 25 Oct 2005 14:07:22 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 12959 invoked by uid 99); 25 Oct 2005 14:07:21 -0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=BIZ_TLD X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Oct 2005 07:07:19 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 349F6227 for ; Tue, 25 Oct 2005 16:06:58 +0200 (CEST) Message-ID: <1702867667.1130249218213.JavaMail.jira@ajax.apache.org> Date: Tue, 25 Oct 2005 16:06:58 +0200 (CEST) From: "Helma van der Linden (JIRA)" To: dev@cocoon.apache.org Subject: [jira] Closed: (COCOON-1051) [Patch] Grayscale and RGB tinting added to ImageReader Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/COCOON-1051?page=all ] Helma van der Linden closed COCOON-1051: ---------------------------------------- Resolution: Fixed > [Patch] Grayscale and RGB tinting added to ImageReader > ------------------------------------------------------ > > Key: COCOON-1051 > URL: http://issues.apache.org/jira/browse/COCOON-1051 > Project: Cocoon > Type: Improvement > Components: - Components: Sitemap > Versions: 2.1.8-dev (Current SVN) > Environment: Operating System: All > Platform: All > Reporter: Peter Horsfield > Assignee: Cocoon Developers Team > Priority: Minor > Attachments: ImageReader.java.1.4.diff > > Modifies src/java/org/apache/cocoon/reading/ImageReader.java > Hello everyone, as I was building an image gallery app I was requested to add > the ability to tint an image to coordinate color schemes with the website in > general. To do this I patched the ImageReader to perform a transform on the > RGB color channels. This is configured in exactly the same manner as scaling is > now done. > See http://www.grumpykitty.biz/index.html for the results. > This required modification of the > org.apache.cocoon.reading.ImageReader > class only. > The changes include > * Support for creating a grayscale jpeg > * Support for tinting ( scale red, green or blue color channel ) > * Cache key now *always* contains scaling and color coefficients > This does mean that instead of scaling a decoded Raster, a decoded > BufferedImage is used. A BufferedImage consists of a Raster + color > information and is required for the color transform. I consider this the > most pivotal change. > The actual color transform is not applied unless specifically requested > in the sitemap, so I believe the change is benign. > The patch should be attached shortly. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira