This is a demo for the blog post Center and crop thumbnails with CSS

Landscape format image

Mountains

Portrait format image

Mountains