0.1.3 • Published 6 years ago

pixel v0.1.3

Weekly downloads
69
License
MIT
Repository
-
Last release
6 years ago

Pixel

Get ImageData in cross-platform

Installation

for NodeJS

$ yarn add pixel
# or
$ npm install pixel --save

for Browser

<script src="https://unpkg.com/pixel"></script>
<script>
  console.log(pixel); //function
</script>

API

pixel(file) -> Promise<ImageData[]>

return images is Array contains one or more ImageData.

Return the object instead of ImageData at Node.js

file is...

  • string: url (e.g. http[s]://...)
  • string: datauri (e.g. data:image/...)
  • string: path (e.g. /path/to/file)
  • string: binary (unless above)
  • object: Blob/File
  • object: Buffer/ArrayBuffer/Uint8Array/Uint8ClampedArray
  • object: HTMLImageElement

Support

  • gif (static/animation)
  • png (static/animation)
  • jpeg
  • bitmap (24bit or less)
  • webp (static/animation)

Related projects

License

MIT

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.1-alpha.2

9 years ago

0.0.1-alpha.1

9 years ago

0.0.1-alpha.0

9 years ago

0.0.0

9 years ago

0.0.0-beta.2

9 years ago

0.0.0-beta.1

9 years ago

0.0.0-beta.0

9 years ago

0.0.0-alpha.9

9 years ago

0.0.0-alpha.8

9 years ago

0.0.0-alpha.7

9 years ago

0.0.0-alpha.6

9 years ago

0.0.0-alpha.4

9 years ago

0.0.0-alpha.3

9 years ago

0.0.0-alpha.2

9 years ago

0.0.0-alpha.0

9 years ago

0.0.2

10 years ago

0.0.1

10 years ago