This is a very needed feature! Especially combined with resizing on upload.
Many people upload big (>2MB) pictures and this makes the gallery slow. Manually resizing is not a good solution.
The medium-sized picture should replace the picture in the gallery but the original should stay there for people to be able to download it (maybe move the originals to a sub folder “originals”?).