Ross ROSS = Recommend OSS · open-source software intelligence for agents

fregante/object-fit-images

🗻 Polyfill object-fit/object-position on <img>: IE9, IE10, IE11, Edge, Safari, ... observed · 2026-08-28

github.com/fregante/object-fit-images · homepage · JavaScript · MIT (permissive) · archived observed · 2026-08-28

Health v2 · maintenance only

10/100

  • Activity 0
  • Release rhythm 8
  • Longevity 100

Flags: archived

How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.

  • gap_med: n/a
  • age_days: 3827
  • days_rel: n/a
  • days_push: 692
  • n_releases_24m: 0

Full methodology

Adoption not part of the score

2015 stars · 254 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

A lightweight JavaScript polyfill that adds object-fit and object-position CSS support for <img> elements in browsers that lack it, such as IE9-11, old Edge, and older Safari. It works via CSS setup, requires no extra DOM elements, and preserves src/srcset behavior.

Use cases

  • make object-fit: cover work on img tags in IE11
  • polyfill object-position in old Safari
  • support srcset images with object-fit in legacy Edge
  • fix image cropping in browsers without object-fit support
  • apply cover/contain/fill/none/scale-down to images in old browsers

When to choose

  • you must support IE9-11, legacy Edge, or Safari < 10
  • you want a tiny, CSS-configured polyfill with no extra elements
  • you rely on srcset and dynamic img.src changes

When to avoid

  • you only target modern browsers with native object-fit support
  • you need to polyfill object-fit on video or picture elements
  • your project has dropped legacy browser support

Facets

library · maturity maintenance

ui-components image-processing web-development frontend browser polyfill css object-fit internet-explorer safari images

1 source

Member repositories

RepositoryRoleHealth v2
fregante/object-fit-imagesmain10

For agents

markdown · JSON · MCP: product_card(name="fregante/object-fit-images")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem