Sizing up your images with Sindre

November 7, 2023 By Mark Otto 0

Node.js Weekly

🖼  image-dimensions: Get the Dimensions of Images — Sindre’s latest creation is a simple but comprehensive one. A way to get the size (as width and height in pixels) for JPEG, PNG, APNG, and GIFs in any modern JavaScript environment. He seeks PRs to add JPEG XL, HEIC, WebP support if you have experience in those areas.

Sindre Sorhus

Need to Offer SSO to Your Customers? Use WorkOS — WorkOS lets you quickly build enterprise features like SAML & SCIM. Integration is seamless with beautiful API docs and SDKs. Join hundreds of companies using WorkOS—including Vercel, PlanetScale & Webflow—and make your app Enterprise Ready today.


🛠 Code & Tools

Is Text or Binary? 7.0 — It first tries to determine from a filename if the contents of the file are likely to be binary or text. Failing that, it then looks at the actual data to figure it out.



“Maintaining an open-source project is like being a flight attendant for an airline where all tickets are free and the majority of customer surveys offer suggestions on how to fly the airplane.”

Kelsey Hightower #