[
http://issues.apache.org/jira/browse/COCOON-1301?page=comments#action_12365031
]
Niclas Hedhman commented on COCOON-1301:
----------------------------------------
I think this should work for the Blur;
<map:match pattern="*/blur">
<map:read type="image-op-convolve" src="{1}" >
<map:parameter name="convolve-height" value="3" />
<map:parameter name="convolve-width" value="3" />
<map:parameter name="convolve-data" value="0.1, 0.1, 0.1, 0.1, 0.2,
0.1, 0.1, 0.1, 0.1"/>
</map:read>
</map:match>
Sorry, I never got the rotate to work satisfactorily and finally gave up.
> [Patch] Image Operation Reader
> ------------------------------
>
> Key: COCOON-1301
> URL: http://issues.apache.org/jira/browse/COCOON-1301
> Project: Cocoon
> Type: Improvement
> Components: Blocks: (Undefined)
> Versions: 2.2-dev (Current SVN)
> Environment: Operating System: other
> Platform: Other
> Reporter: Niclas Hedhman
> Assignee: Jean-Baptiste Quenot
> Priority: Minor
> Attachments: imageop-block.zip
>
> I would like to contribute a fairly flexible and powerful Image Reader that
> is capable of
> performing a stack of Effects, such as Scaling, color manipulation, and
> coordination
> transforms (rotate, mirror and so forth), in a pluggable manner.
>
> The ImageOpReader also reads any of the graphics formats supported by
> javax.imageio
> package in JDK 1.4, including Png, Jpg and many more.
> Any image can be returned to the client browser in any of the supported
> formats.
>
> There is still a problem with the AffineTransform operations, and I am
> working on sorting these
> out, but;
> 1. The block is already useful to many as it is.
> 2. I could need some help getting the AffineTransforms to work properly.
>
> Stuff that is still left to do;
> * Image Operation tests. How does one test image tranforms?
> * JavaDocs.
> * User Documentation
> * Get Rotation & Mirror transforms to work. (Problem related to clipping
> outside the positive
> coordinate system.)
> * More samples - The bulk are in place, but more doesn't hurt.
>
>
> I would *really* appreciate if the ImageOp block becomes part of the standard
> Cocoon 2.2
> distribution. I am willing to help out maintaining it for the long term, if I
> am allowed to...
>
>
> P.S. I already have a CLA on file with the ASF.
--
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