cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jorg Heymans (JIRA)" <j...@apache.org>
Subject [jira] Closed: (COCOON-1589) ImageReader problem with grayScaleFilter
Date Wed, 14 Dec 2005 11:28:46 GMT
     [ http://issues.apache.org/jira/browse/COCOON-1589?page=all ]
     
Jorg Heymans closed COCOON-1589:
--------------------------------

    Resolution: Fixed

> ImageReader problem with grayScaleFilter
> ----------------------------------------
>
>          Key: COCOON-1589
>          URL: http://issues.apache.org/jira/browse/COCOON-1589
>      Project: Cocoon
>         Type: Bug
>   Components: - Components: Sitemap
>     Versions: 2.1.7
>  Environment: Operating System: Linux
> Platform: PC
>     Reporter: Vadim Bilan
>     Assignee: Cocoon Developers Team

>
> SiteMap:
> <map:reader logger="sitemap.reader.image" name="jpg-reader"
> src="org.apache.cocoon.reading.ImageReader"/>
> <map:match pattern="**/*.jpg">
>   <map:read type="jpg-reader" mime-type="image/jpg" src="image/{1}/{2}.jpg">
>     <map:parameter name="expires" value="-1"/>
>   </map:read>
> </map:match>
> I did not specify pool-max. The default value is set to 1, is it?
> Becouse it always refers to the same instance
> .../jpeg/image.jpg?widht=100
> pipeline works fine until you specify parameter grayscale and set to true
> .../jpeg/image.jpg?width=100&grayscale=true - works fine
> but after that you can't create not grayscale image
> .../jpeg/image.jpg?width=200&grayscale=false you will get grayscale image any
> way, Because:
> in Setup  method you set this.grayscaleFilter
>  if (par.getParameterAsBoolean("grayscale", GRAYSCALE_DEFAULT)) {
>   this.grayscaleFilter = new
> ColorConvertOp(ColorSpace.getInstance(ColorSpace.CS_GRAY), null);
>   }
> and never set to null, so when the pool of that ImageReader will be full of
> instances with grayscaleFilter set it wont be possible to get original image

-- 
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