i have a site that displays dynamic images whose src is taken from a database.
however, some of the image links are broken. is there a way to specify an alternate image if the link is broken..
e.g. if an image called someImage.jpg is missing or renamed, then i need a way to display a default image default.jpg instead of displaying the standard red x that indicates a broken link
<img src="/path/someImage.jpg">
i also cannot check on the server side if the file exists or not, because sometimes it exists but its not a valid image - and its a large database, so i dont want to have to manually review them all.
thanks!
however, some of the image links are broken. is there a way to specify an alternate image if the link is broken..
e.g. if an image called someImage.jpg is missing or renamed, then i need a way to display a default image default.jpg instead of displaying the standard red x that indicates a broken link
<img src="/path/someImage.jpg">
i also cannot check on the server side if the file exists or not, because sometimes it exists but its not a valid image - and its a large database, so i dont want to have to manually review them all.
thanks!