Socket
Socket
Sign inDemoInstall

image-size

Package Overview
Dependencies
0
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0-beta.1 to 2.0.0-beta.2

4

dist/cjs/types/heif.js

@@ -8,6 +8,6 @@ "use strict";

mif1: 'heif',
msf1: 'heif',
msf1: 'heif', // hief-sequence
heic: 'heic',
heix: 'heic',
hevc: 'heic',
hevc: 'heic', // heic-sequence
hevx: 'heic', // heic-sequence

@@ -14,0 +14,0 @@ };

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.types = exports.typeHandlers = void 0;
// load all available handlers explicitely for browserify support
// load all available handlers explicitly for browserify support
const bmp_1 = require("./bmp");

@@ -6,0 +6,0 @@ const cur_1 = require("./cur");

@@ -81,6 +81,2 @@ "use strict";

}
// Every JPEG block must begin with a 0xFF
if (input[index] !== 0xff) {
throw new TypeError('Invalid JPG, marker table corrupted');
}
}

@@ -97,2 +93,7 @@ exports.JPG = {

const i = (0, utils_1.readUInt16BE)(input, 0);
// Every JPEG block must begin with a 0xFF
if (input[i] !== 0xff) {
input = input.slice(1);
continue;
}
if (isEXIF(input)) {

@@ -99,0 +100,0 @@ orientation = validateExifBlock(input, i);

@@ -58,3 +58,3 @@ "use strict";

// '492049', // currently not supported
'49492a00',
'49492a00', // Little endian
'4d4d002a', // Big Endian

@@ -61,0 +61,0 @@ // '4d4d002a', // BigTIFF > 4GB. currently not supported

{
"name": "image-size",
"version": "2.0.0-beta.1",
"version": "2.0.0-beta.2",
"description": "get dimensions of any image file",

@@ -32,3 +32,3 @@ "main": "./dist/cjs/index.js",

},
"packageManager": "yarn@4.0.1",
"packageManager": "yarn@4.0.2",
"bin": "bin/image-size.js",

@@ -71,23 +71,23 @@ "scripts": {

"devDependencies": {
"@types/chai": "4.3.10",
"@types/chai": "4.3.11",
"@types/chai-as-promised": "7.1.8",
"@types/glob": "8.1.0",
"@types/mocha": "10.0.4",
"@types/node": "18.18.9",
"@types/sinon": "17.0.1",
"@typescript-eslint/eslint-plugin": "6.10.0",
"@typescript-eslint/parser": "6.10.0",
"@types/mocha": "10.0.6",
"@types/node": "18.19.3",
"@types/sinon": "17.0.2",
"@typescript-eslint/eslint-plugin": "6.16.0",
"@typescript-eslint/parser": "6.16.0",
"chai": "4.3.10",
"chai-as-promised": "7.1.1",
"eslint": "8.53.0",
"eslint-config-prettier": "9.0.0",
"eslint-plugin-prettier": "5.0.1",
"eslint": "8.56.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-prettier": "5.1.2",
"glob": "10.3.10",
"mocha": "10.2.0",
"nyc": "15.1.0",
"prettier": "3.1.0",
"prettier": "3.1.1",
"sinon": "17.0.1",
"ts-node": "10.9.1",
"typedoc": "0.25.3",
"typescript": "5.2.2"
"ts-node": "10.9.2",
"typedoc": "0.25.4",
"typescript": "5.3.3"
},

@@ -94,0 +94,0 @@ "nyc": {

@@ -21,3 +21,3 @@ # image-size

- JPEG
- KTX
- KTX (1 and 2)
- PNG

@@ -76,4 +76,4 @@ - PNM (PAM, PBM, PFM, PGM, PPM)

```javascript
const { imageSize } = require('image-size')
const { images } = imageSize('images/multi-size.ico')
const { imageSize } = require('image-size/fromFile')
const { images } = await imageSize('images/multi-size.ico')
for (const dimensions of images) {

@@ -80,0 +80,0 @@ console.log(dimensions.width, dimensions.height)

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with โšก๏ธ by Socket Inc