mckoss/hugo-cards

Scale images to appropriate sizes where used.

Closed this issue · 0 comments

Three distinct image sizes:

Home page: 250x250
Sidebar: 300x600
Single (in content flow): 800x400

Note that this scheme will have the downside of downloading an additional hidden image in each single page. Solution would be to scale it to: 800x600 and use a single image.

300x600 + 800x400 == 500K
800 x 600 == 480K

But it's so close, I think we can just leave it. Note that for square images, we'd actually get:

300x300 + 400x400 = 250K
600x600 = 360K

So the two images are 50% smaller!