FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
Aspect Ratios Explained: Why Your Images Look Stretched
NewsWeb Development

Aspect Ratios Explained: Why Your Images Look Stretched

via Dev.toMichael Lip2h ago

You resize an image to fit a container and it looks wrong. The photo is distorted. People's faces are too wide or too narrow. The landscape that looked stunning at full size now looks like it was shot through a funhouse mirror. The problem is almost always the same: you changed the dimensions without preserving the aspect ratio. Aspect ratio is the proportional relationship between width and height. It's one of those concepts that's simple in theory and surprisingly tricky in practice, especially when you're dealing with responsive layouts, multiple screen sizes, and media from different sources. What aspect ratio actually means An aspect ratio is expressed as two numbers separated by a colon: width:height . A 16:9 image is 16 units wide for every 9 units tall. The actual pixel dimensions don't matter -- 1920x1080, 1280x720, and 3840x2160 are all 16:9 because the ratio simplifies to the same proportion. To calculate the aspect ratio from pixel dimensions, find the greatest common divis

Continue reading on Dev.to

Opens in a new tab

Read Full Article
0 views

Related Articles

Iran War Puts Global Energy Markets on the Brink of a Worst-Case Scenario
News

Iran War Puts Global Energy Markets on the Brink of a Worst-Case Scenario

Wired • 6m ago

The data from 400,000 developers exposes the grind myth — and shows what actually separates good…
News

The data from 400,000 developers exposes the grind myth — and shows what actually separates good…

Medium Programming • 32m ago

News

Why your next mobile app is probably headless

Lobsters • 40m ago

Major SteamOS update adds support for Steam Machine, even more third-party hardware
News

Major SteamOS update adds support for Steam Machine, even more third-party hardware

Ars Technica • 50m ago

News

Is Composer 2 in Cursor Any Good?

Medium Programming • 51m ago

Discover More Articles