image-size-from-base64

1.0.7 • Public • Published

image-size-from-base64

My website: click here

Features

  • Get file image size from base64 string return to kb

Example

const getSize = require("image-size-from-base64")

let base64ImageData = `iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAY ...`

async function imageSize() {
    let size = await getSize(base64ImageData)

    console.log(size) // kb (Kilobyte)
}

imageSize()

Package Sidebar

Install

npm i image-size-from-base64

Weekly Downloads

147

Version

1.0.7

License

none

Unpacked Size

816 B

Total Files

3

Last publish

Collaborators

  • keooudone