Remove autogenerated file name suffixes from images whilst preserving the extension (e.g. .jpg)
These suffixes are usually added when filename already exists in the directory an image is being saved to by an application.
Magento is a fine example of a system that does this.