Sha256: eb06592012c8fa866547d2e328feda645079ba09762ce77dab40df5fbb1b6c95
Contents?: true
Size: 287 Bytes
Versions: 2
Compression:
Stored size: 287 Bytes
Contents
'use strict'; function isBMP (buffer) { return ('BM' === buffer.toString('ascii', 0, 2)); } function calculate (buffer) { return { 'width': buffer.readUInt32LE(18), 'height': buffer.readUInt32LE(22) }; } module.exports = { 'detect': isBMP, 'calculate': calculate };
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
less-execjs-2.6.0.4 | lib/less/js/image-size/lib/types/bmp.js |
less-execjs-2.6.0.3 | lib/less/js/image-size/lib/types/bmp.js |