1.0.6 • Published 2 years ago

base64image-dimensions v1.0.6

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Description

Get the image dimensions and image type of a base64 Image.

Installation

npm install base64image-dimensions --save

Usage

const imageInfo = require("base64image-dimensions");

base64Image = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAIAQMAAAD+wSzIAAAABlBMVEX///+/v7+jQ3Y5AAAADklEQVQI12P4AIX8EAgALgAD/aNpbtEAAAAASUVORK5CYII'; // any base64 image

let info  = imageInfo(base64Image);

console.log(info.height, info.width, info.type);
1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago