Resizing Image Attachment
Posted by
atodeschini on
Aug 01, 2011; 8:46pm
URL: https://discuss.orbeon.com/Resizing-Image-Attachment-tp3710758.html
I'm creating a form with an image attachment section for a signature. I need to make this automatically resize the image to a set height/width. How do I do that?
Here's what I have (straight from the image attachment add-on)
xmlns:pipeline="java:org.orbeon.oxf.processor.pipeline.PipelineFunctionLibrary"
class="fr-attachment"
id="control-11-control"
bind="control-11-bind">
<xforms:label ref="$form-resources/control-11/label"/>
<xforms:hint ref="$form-resources/control-11/hint"/>
<xforms:help ref="$form-resources/control-11/help"/>
<xforms:alert ref="$fr-resources/detail/labels/alert"/>
<xforms:filename ref="@filename"/>
<xforms:mediatype ref="@mediatype"/>
<xxforms:size ref="@size"/>
</fr:image-attachment>
</xhtml:td>
</xhtml:tr>
<xhtml:tr/>
<xhtml:tr>
<xhtml:td/>
<xhtml:td>
<xforms:input xmlns:xbl="
http://www.w3.org/ns/xbl"
xmlns:fb="
http://orbeon.org/oxf/xml/form-builder"
Thanks in advance!
Andrew