Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi there I'm trying to add an Author Image to my blog posts. HI've managed to get the image but how can I get a cropped version?
Lets say the name of ther cropper is "imageCropper" and the specific crop's name is "authorCrop" how do I get the crops?
THis is the code for the un-cropped images
var imgID = @d.GetPropertyValue("authorImage"); <img src="@Library.MediaById(imgID).umbracFile" alt="@Library.MediaById(imgID).Name"/>
This is within the uBlogsyListAuthors.cshtml
mvh
I havent needed to do this recently, but I think umbraco suffixes image names.
eg. myimage.jpg becomes myimage_authorCrop.jpg
or something like that
I would do some string parsing as a first guess, but I'm sure there's a better way to do that.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Author Image
Hi there I'm trying to add an Author Image to my blog posts. HI've managed to get the image but how can I get a cropped version?
Lets say the name of ther cropper is "imageCropper" and the specific crop's name is "authorCrop" how do I get the crops?
THis is the code for the un-cropped images
This is within the uBlogsyListAuthors.cshtml
mvh
I havent needed to do this recently, but I think umbraco suffixes image names.
eg. myimage.jpg becomes myimage_authorCrop.jpg
or something like that
I would do some string parsing as a first guess, but I'm sure there's a better way to do that.
is working on a reply...