You can easily check for an existing image using our Images API like this:
var imageToCheck = App.WorkWith()
.Where(i => i.UrlName ==
"urlname to check"
&& i.Status== Telerik.Sitefinity.GenericContent.Model.ContentLifecycleStatus.Live)
If you want to check whether there is any image in the database with such UrlName, not only a published one, you can remove the Status check in the lambda expression.
You can then check if the image exists, and if so get its Urls collection, which contains the default URl ont he item,a s well as any additional URLs added to it. To get the default URL, you can do:
var imageUrl = imageToCheck.Urls.Where(u => u.RedirectToDefault ==
For more information, you can refer to our Images
the Telerik team
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking
system and vote to affect the priority of the items