Minor bug with imageviewer plugin

paypal1352

New Member
YetiShare User
Wurlie User
Mar 2, 2012
297
2
0
The imageviewer plugin when encountering a file that it can't obtain thumbnail or resize etc.. because of an invalid image file such as a non image with an image extension that was uploaded throws a 500 error in the server logs

500 GET /m/imageviewer/site/resize_image_inline.php?f=1514&w=138&h=116&m=middle&uh=643aeff576507859f24cb5baf0be41935a8ceef2dfad872eec139d6f284954db&o=jpg HTTP/1.0

I noticed this when I used the remote url upload and mistyped the url of the image, it uploaded a file probably an html file with some error text in it (whatever the other server responded with), understandably it would be near impossible stop this from happening, I think the image viewer plugin should detect if it's a valid image and then can proceed if not then display an image saying this file is not a valid image or something along those lines.

thanks