You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by "Alfred Nathaniel (JIRA)" <ji...@apache.org> on 2008/07/04 22:59:31 UTC

[jira] Commented: (COCOON-2133) Addition of "allow-enlarge" parameter to ImageOp resize operation

    [ https://issues.apache.org/jira/browse/COCOON-2133?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12610660#action_12610660 ] 

Alfred Nathaniel commented on COCOON-2133:
------------------------------------------

Backported to 2.1: http://svn.apache.org/viewvc?rev=674121&view=rev

> Addition of "allow-enlarge" parameter to ImageOp resize operation
> -----------------------------------------------------------------
>
>                 Key: COCOON-2133
>                 URL: https://issues.apache.org/jira/browse/COCOON-2133
>             Project: Cocoon
>          Issue Type: Improvement
>          Components: Blocks: ImageOp
>            Reporter: Robin Wyles
>            Assignee: Grzegorz Kossakowski
>            Priority: Minor
>         Attachments: 4x2.jpg, cocoon-core-SitemapComponentTestCase-read-method.patch, cocoon-imageop-impl-no-effects-test.patch, cocoon-imageop-impl-resize-operation-and-test.patch , ResizeOperation.patch, RevisedResizeOperationPatch.txt
>
>
> The addition of an "allow-enlarge" parameter to the resize operation allows the user to control whether an image should be enlarged by the operation. 
> This new  parameter is declared in the sitemap like so:
> <map:read type="imageop" src="image.jpg">
> 	<map:parameter name="prefix-preserve-ratio" value="true"/>
> 	<map:parameter name="prefix-allow-enlarge" value="false"/>
> 	<map:parameter name="prefix-width" value="320"/>
> 	<map:parameter name="prefix-height" value="240"/>
> </map:read>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.