cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Helma van der Linden (JIRA)" <j...@apache.org>
Subject [jira] Closed: (COCOON-1051) [Patch] Grayscale and RGB tinting added to ImageReader
Date Tue, 25 Oct 2005 14:06:58 GMT
     [ 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


Mime
View raw message