I set up a custom thumbnail size for one of my image libraries. Since I've done that, the .ChildItemAdditionalInfo is now returning not the regular size image, but a thumbnail at 160x160 which I have NOT asked for. After pissing around for the last hour trying to get this thumbnail I just can't without doing a string replace using my image size name. I can't find anything online for how to achieve this seemingly simple task. What am I missing here?
var imageId = dynamicTestimonial.GetValue<ContentLink>(
var image = App.WorkWith().Image(imageId).Get();
var thumbnailId = image.Thumbnails.Id;
var thumbnailUrl = App.WorkWith().Image(thumbnailId).Get().MediaUrl;
This returns exception "You are trying to access item that no longer exists. The most probable reason is that it has been deleted by another user."
This really should not be so difficult. Also, why are there two thumbnails? Is the 160x160 generated by Sitefinity for the backend? If so why are you setting the immediate property to grab my image as the thumbnail I did not ask for or even know exists?