I am well aware of how to use the Image Cropper to get the size from an alias. But I'm currently in a situation where I use 3 different aliases which works fine, the issue is that I'm making a button that links to the full sized image.
Instead of making a NEW uploader and having to write that out, can I somehow get the original uploaded image from my cropper without an alias? :)
If your cropper is on a Media item and the alias is the standard umbracoFile then you can just use mediaItem.Url if your cropper is on a Content item then you need to do what Dan posted above
Image Cropper: Get full size image
Hallo everyone,
I am well aware of how to use the Image Cropper to get the size from an alias. But I'm currently in a situation where I use 3 different aliases which works fine, the issue is that I'm making a button that links to the full sized image.
Instead of making a NEW uploader and having to write that out, can I somehow get the original uploaded image from my cropper without an alias? :)
Off top of my head...
You'll need a reference to
Umbraco.Web.Models
Dan, this "top of your head" works flawlessly! It worked exactly as you quoted.
Thanks a bunch high five
If your cropper is on a Media item and the alias is the standard umbracoFile then you can just use mediaItem.Url if your cropper is on a Content item then you need to do what Dan posted above
is working on a reply...