Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/59naga/pixel-jpg
Parse Jpeg to ImageData in cross-platform
https://github.com/59naga/pixel-jpg
Last synced: 3 days ago
JSON representation
Parse Jpeg to ImageData in cross-platform
- Host: GitHub
- URL: https://github.com/59naga/pixel-jpg
- Owner: 59naga
- Created: 2015-06-01T07:42:08.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-11-01T14:49:15.000Z (about 9 years ago)
- Last Synced: 2024-10-14T11:36:50.787Z (about 1 month ago)
- Language: CoffeeScript
- Homepage:
- Size: 164 KB
- Stars: 3
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PixelJpg [![NPM version][npm-image]][npm] [![Build Status][travis-image]][travis] [![Coverage Status][coveralls-image]][coveralls]
[![Sauce Test Status][sauce-image]][sauce]
> Parse JPEG to ImageData in cross-platform.
## Installation
```bash
$ npm install pixel-jpg --save
```
```js
var pixelJpeg= require('pixel-jpg');
console.log(pixelJpeg); //object
```# API
## pixelJpg.parse(`file`) -> promise.then(`images`)
return `images` is Array contains one or more `ImageData`.
> Return the `object` instead of `ImageData` in Node.js```js
var file= 'https://59naga.github.io/fixtures/still.JPG';pixelJpeg.parse(file).then(function(images){
console.log(images[0]);
});
// {width: 256, height: 192, data: }
```# Related projects
* [pixel-util](https://github.com/59naga/pixel-util/)
* [pixel-gif](https://github.com/59naga/pixel-gif-/)
* [pixel-png](https://github.com/59naga/pixel-png/)
* __pixel-jpg__
* [pixel-bmp](https://github.com/59naga/pixel-bmp/)
* [pixel](https://github.com/59naga/pixel/)
* [pixel-to-ansi](https://github.com/59naga/pixel-to-ansi/)
* [pixel-to-svg](https://github.com/59naga/pixel-to-svg/)License
---
[MIT][License][License]: http://59naga.mit-license.org/
[sauce-image]: http://soysauce.berabou.me/u/59798/pixel-jpg.svg?large
[sauce]: https://saucelabs.com/u/59798
[npm-image]:https://img.shields.io/npm/v/pixel-jpg.svg?style=flat-square
[npm]: https://npmjs.org/package/pixel-jpg
[travis-image]: http://img.shields.io/travis/59naga/pixel-jpg.svg?style=flat-square
[travis]: https://travis-ci.org/59naga/pixel-jpg
[coveralls-image]: http://img.shields.io/coveralls/59naga/pixel-jpg.svg?style=flat-square
[coveralls]: https://coveralls.io/r/59naga/pixel-jpg?branch=master