I understand this suggestion but it doesn't go far enough... Many members upload photos with names like IMG-078_20220813.jpg
and in this case simply removing the extension does not help much... Unfortunately it there's not much you can do about it except forcing members to rename their uploaded photos.