I am working on an Umbraco 7.0.1 site but can't figure out how to get the dimensions of an image from a default Media Picker.
I retrieve the url of the image through: Umbraco.TypedMedia(item.imageSmall).Url and would expect something like Umbraco.TypedMedia(item.imageSmall).UmbracoWidth but that ain't it.
Can't really find a rectent (v7) example for the above, so any help is appreciated.
get image dimensions
I am working on an Umbraco 7.0.1 site but can't figure out how to get the dimensions of an image from a default Media Picker.
I retrieve the url of the image through: Umbraco.TypedMedia(item.imageSmall).Url and would expect something like Umbraco.TypedMedia(item.imageSmall).UmbracoWidth but that ain't it.
Can't really find a rectent (v7) example for the above, so any help is appreciated.
Hi Patrick,
Have you tried something like this:
The documentation for the media picker can be found here.
Hope this helps,
/Dennis
Hi Patrick, could it be a casing issue? i.e. Try umbracoWidth instead of UmbracoWidth.
Thank you Dennis, solved it!
is working on a reply...