Classic editor: Square gallery image distortion
Images are appearing distorted on websites that use the classic editor and have setup an image gallery using the "Square" gallery style.
Steps to reproduce
- Create an image gallery on a website that uses the classic editor
- When editing the gallery use the "Square Tiles" layout option
- Note that the gallery tiles look fine in the editor
- Publish the page
- Visit the page on the frontend of the website and note how the images are distorted (stretched or squashed) to fit in to the square tiles - this can range from minimal to significant depending on the aspect ratio of the image you're using.
What I expected
The square tiled gallery previously and should crop images that are not square, so that the image fits neatly in to the gallery.
What happened instead
Instead the images are being distorted to fit in to the square tile of the gallery if they rectangular.
Screenshot / Video
A screenshot showing the distortion on the website:

A screenshot showing no distortion when we view the images from the editor of the page:

Context / Source
#user-report in zen-2020402
I confirm this as well. It works well in the new editor though.
The same happens with circle galleries. 2026299-zen
Also reported here: 2026571-zen
2023912-zen
Another report: 2029284-zen
Another one: 2030315-zen
Also 8289086-hc
And here: 12827918-hc
Another one: 2033567-zen
Another one: 2036733-zen
Another one: 2035382-zen
Also happening on circle tiles: 2040698-zen
Another: 12883141-hc
Another one: 2039874-zen
Another case here 2038233-zen
#2043020-zen
Closing as duplicate of 7861-wpcom