Hello,

Did you figure it out?

The height/width you see in the export are extracted automatically from the 
image itself, and should not be changed.

Instead, if you want to output the image at a different size, look at the 
"variations" feature in the themes and imaging module.

Regards from Vienna,

Richard

> -----Ursprüngliche Nachricht-----
> Von: user-list-ow...@magnolia-cms.com 
> [mailto:user-list-owner@magnolia- cms.com] Im Auftrag von Anne Faber 
> (via Magnolia Forums)
> Gesendet: Freitag, 21. August 2015 18:56
> An: Magnolia User List
> Betreff: [magnolia-user] Height/Width of Uploaded Image
> 
> [b]How can I get the height and width of an image uploaded with a 
> Basic Upload Field?  I defined my field like this:
> [/b]
> name: image
> class: 
> info.magnolia.ui.form.field.definition.BasicUploadFieldDefinition
> label: Image
> allowedMimeTypePattern: image.*
> binaryNodeName: image
> 
> 
> [b]I can't see the field in the jcr browser, but it is in the xml file 
> when I export my component:[/b]
> 
> 
> <sv:node sv:name="image">
>     <sv:property sv:name="jcr:primaryType" sv:type="Name">
>       <sv:value>mgnl:resource</sv:value>
>     </sv:property>
>     <sv:property sv:name="jcr:uuid" sv:type="String">
>       <sv:value>e5b0f832-dd2e-4430-8189-8fc0bda1aaaa</sv:value>
>     </sv:property>
>     <sv:property sv:name="extension" sv:type="String">
>       <sv:value>jpg</sv:value>
>     </sv:property>
>     <sv:property sv:name="fileName" sv:type="String">
>       <sv:value>mc3.jpg</sv:value>
>     </sv:property>
>     <sv:property sv:name="jcr:data" sv:type="Binary">
>       <sv:value> [BINARY]</sv:value>
>     </sv:property>
>     <sv:property sv:name="jcr:lastModified" sv:type="Date">
>       <sv:value>2015-08-21T11:17:47.216-05:00</sv:value>
>     </sv:property>
>     <sv:property sv:name="jcr:lastModifiedBy" sv:type="String">
>       <sv:value>admin</sv:value>
>     </sv:property>
>     <sv:property sv:name="jcr:mimeType" sv:type="String">
>       <sv:value>image/jpeg</sv:value>
>     </sv:property>
>     <sv:property sv:name="mgnl:created" sv:type="Date">
>       <sv:value>2015-08-21T11:18:01.280-05:00</sv:value>
>     </sv:property>
>     <sv:property sv:name="mgnl:createdBy" sv:type="String">
>       <sv:value>superuser</sv:value>
>     </sv:property>
>     <sv:property sv:name="mgnl:lastModified" sv:type="Date">
>       <sv:value>2015-08-21T11:18:01.280-05:00</sv:value>
>     </sv:property>
>     <sv:property sv:name="mgnl:lastModifiedBy" sv:type="String">
>       <sv:value>superuser</sv:value>
>     </sv:property>
>     <sv:property sv:name="size" sv:type="Long">
>       <sv:value>160322</sv:value>
>     </sv:property>
>   </sv:node>
> 
> --
> Context is everything: http://forum.magnolia-
> cms.com/forum/thread.html?threadId=74abb8c1-1766-4690-b4ed-
> 430ae791ea07
> 
> 
> ----------------------------------------------------------------
> For list details, see http://www.magnolia-cms.com/community/mailing-
> lists.html
> Alternatively, use our forums: http://forum.magnolia-cms.com/ To 
> unsubscribe, E-mail to: <user-list-unsubscr...@magnolia-cms.com>
> ----------------------------------------------------------------



----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <user-list-unsubscr...@magnolia-cms.com>
----------------------------------------------------------------

Reply via email to