cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Helma van der Linden (JIRA)" <>
Subject [jira] Reopened: (COCOON-1051) [Patch] Grayscale and RGB tinting added to ImageReader
Date Tue, 25 Oct 2005 14:06:57 GMT
     [ ]
Helma van der Linden reopened COCOON-1051:

reopened just to set the resolution to fixed

> [Patch] Grayscale and RGB tinting added to ImageReader
> ------------------------------------------------------
>          Key: COCOON-1051
>          URL:
>      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:
> Modifies src/java/org/apache/cocoon/reading/
> 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 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:
For more information on JIRA, see:

View raw message