---
title: "Discussion on \"Calculate how much of an image object-fit: cover hides\" | Hashnode"
description: "Discussion on \"Calculate how much of an image object-fit: cover hides\". Calculate the visible source rectangle for cover and contain, with tested TypeScript and real square and portrait image dimensions."
url: "https://hashnode.com/posts/calculate-how-much-of-an-image-object-fit-cover-hides/6b083eb9822fdf9a638c5cf8"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Calculate how much of an image object-fit: cover hides](https://reifora.hashnode.dev/calculate-how-much-of-an-image-object-fit-cover-hides?utm_source=hashnode&utm_medium=feed)

Calculate the visible source rectangle for cover and contain, with tested TypeScript and real square and portrait image dimensions.

1d ago · 5 min read · reifora.hashnode.dev  
Read the article

-   [#css](https://hashnode.com/tag/css)

## Written by

[th0t3p](https://hashnode.com/@th0t3p)

@th0t3p

  
[View profile](https://hashnode.com/@th0t3p)

Independent developer building Reifora.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
