GitShow/sindresorhus/image-dimensions
sindresorhus

image-dimensions

Get the dimensions of an image

by sindresorhus
Star on GitHubForknpm

JavaScript

585 stars19 forks6 contributorsActive · 1mo 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 · 3 commits

Full graph →

Community health

4 of 6 standards met

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

Recent PRs & issues

Active · 1 in progress · Last activity 1mo ago
See all on GitHub →
jeremy-code
Add and export ImageDimensions typeOpenPR

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

Recent fixes

View closed PRs →
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 · 1mo 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 · 1mo ago
jeremy-code
Add support for Safari non-async iterable web streamsMergedPR

Closes #16 Adds support for non-async iterable web streams (Safari iOS and Desktop) by converting stream to async iterable Add test for web stream non-async readable

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

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

·@ofershap

Replace github.com with gitshow.dev