nodeca / probe-image-size

Get image size without full download. Supported image types: JPG, GIF, PNG, WebP, BMP, TIFF, SVG, PSD, ICO.
MIT License
978 stars 77 forks source link

Add support for flip row order BMP #77

Open Tsuk1ko opened 1 year ago

Tsuk1ko commented 1 year ago

Refer to https://github.com/image-size/image-size/pull/89

A BMP with flip row order can be made by Photoshop:

image


One more thing I found these two functions were named incorrectly:

https://github.com/nodeca/probe-image-size/blob/158c262a7e58b8e3abd7573e2d854299146fcc37/lib/common.js#L55-L67

They actually read signed integers, not unsigned integers.