GitShow/sindresorhus/image-dimensions
sindresorhus

image-dimensions

Get the dimensions of an image

by sindresorhus
Star on GitHubForknpm

JavaScript

592 stars19 forks6 contributorsQuiet · 3mo agoSince 2023v2.5.1MIT

Meet the team

See all 6 on GitHub →
sindresorhus
sindresorhus17 contributions
levibuzolic
levibuzolic2 contributions
Richienb
Richienb2 contributions
eigilsagafos
eigilsagafos1 contribution
jeremy-code
jeremy-code1 contribution
fabon-f
fabon-f1 contribution

Languages

View on GitHub →
JavaScript100%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
71
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template

Recent fixes

View closed PRs →
jeremy-code
Add and export ImageDimensions typeMergedPR

Adds and exports it in index.d.ts The README.md wasn't updated to use this new type since I figured you wanted to make the object properties visible, but that might be warranted.

jeremy-code · 1mo ago
jsakas
Support correct dimensions for rotated imagesMergedPR

Hello @sindresorhus I found that this package resolves swapped dimensions for images that are rotated 90 or 270 degrees. For example, in the included picture. Please consider this contribution to the package API.

jsakas · 3mo ago
jeremy-code
Bug: TypeError: undefined is not a function (near '...chunk of stream...') in SafariClosedIssue

This seems to be the affected line: https://github.com/sindresorhus/image-dimensions/blob/aa978c8d17d96a1c73e571689b40cf046fba0a72/index.js#L29 Per caniuse: https://caniuse.com/wf-async-iterable-streams, it seems that asynchronously iterable streams are not supported in Safari (both desktop and mobile)

jeremy-code · 3mo ago
Structured data for AI agents

Repository: sindresorhus/image-dimensions. Description: Get the dimensions of an image Stars: 592, Forks: 19. Primary language: JavaScript. Languages: JavaScript (100%). License: MIT. Latest release: v2.5.1 (3mo ago). Open PRs: 0, open issues: 1. Last activity: 3mo ago. Community health: 71%. Top contributors: sindresorhus, levibuzolic, Richienb, eigilsagafos, jeremy-code, fabon-f.

·@ofershap

Replace github.com with gitshow.dev