Brian, here's a possible solution for this issue. Code is ugly but it works. There are a couple of issues that would be great if you could manage to get them to work.
Open your functions_gallery_imageedit.php and change your function fetch_image_info to resemble the code bellow. Bold lines are the same, it only changes in between them.
This takes all non-alphanumerical character from the uploaded file name and replaces it with an underscore.
Because the resulting name could be something like "my________dog_____.jpg", I add a line to replace every multiple instance of underscores for a single one like "my_dog_.jpg". It's the commented line.
But when I upload the same image again, the random suffix rename kicks in and I end up with a broken image because the file is saved to disc as "my_dog_
_941530.jpg" (correct double underscore after dog) but in the database is "my_dog_941530.jpg".
What's wrong??
Code:
Content visible to verified customers only.