You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Kamal Bhatt <kb...@tt.com.au> on 2006/05/10 04:19:00 UTC

Apologies

 I need to be more careful. Obviously, the above email was not meant for 
the mailing list. But now my mistake has been made:

I had the following pipeline:

<map:match pattern="images/*/**/*">
  <map:read src="/data/content/tsg/cmsblocks/holidayImg/{2}/{3}" 
mime-type="image/jpeg" type="image-op-resize">
    <map:parameter name="size-width" value="{1}"/>
    <map:parameter name="size-preserve-ratio" value="true"/>
  </map:read>
</map:match>

Now, this does not preserve ratio, but this does:

<map:match pattern="images/*/**/*">
  <map:read src="/data/content/tsg/cmsblocks/holidayImg/{2}/{3}" 
mime-type="image/jpeg" type="image-op-resize">
    <map:parameter name="size-width" value="{1}"/>
    <map:parameter name="size-height" value="1"/>
    <map:parameter name="size-preserve-ratio" value="true"/>
  </map:read>
</map:match>

I have had a look for the ResizeOperation, and it looks like it doesn't 
need a height. Am I missing something?

Cheers.

--
Disclaimer: This email is confidential and may contain privileged information for the sole use of the person or business to which it is addressed. If you are not the intended recipient, please notify the sender by return e-mail or phone as you must not view, disseminate, distribute or copy this email without our consent. We do not accept any liability in connection with any computer virus, data corruption, incompleteness, or unauthorised amendment of this email. It is the sole responsibility of the receiver to scan for viruses before opening.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org