imageinfo
A node.js package that returns information about an image or flash file such as type, dimensions etc.

imageinfo downloads imageinfo version

imageinfo유사 패키지:
npm 다운로드 트렌드
3 년
🌟 imageinfo의 README.md에 실시간 사용 차트를 표시하려면 아래 코드를 복사하세요.
## Usage Trend
[![Usage Trend of imageinfo](https://npm-compare.com/img/npm-trend/THREE_YEARS/imageinfo.png)](https://npm-compare.com/imageinfo#timeRange=THREE_YEARS)
Cumulative GitHub Star Trend
🌟 imageinfo의 README.md에 GitHub Stars 트렌드 차트를 표시하려면 아래 코드를 복사하세요.
## GitHub Stars Trend
[![GitHub Stars Trend of imageinfo](https://npm-compare.com/img/github-trend/imageinfo.png)](https://npm-compare.com/imageinfo)
통계 세부사항
패키지
다운로드
Stars
크기
Issues
발행일
라이선스
imageinfo19,64259-414年前-
imageinfo의 README

node-imageinfo

This is a small package for node.js to allow the analysis of image data in a Buffer, and return mime-type, and image dimensions for the data.

It is designed to be fast, completely written in javascript and have no dependencies on external packages or libraries.

Currently it supports Png, Jpeg, Gif and (uncompressed) Swf analysis.

If you also have zlib available (npm install zlib) then it will support compressed Swf files.

Usage:

To install imageinfo into your project, use npm install imageinfo, then it's simply a matter of calling it with the buffer object containing your image, like this:

var imageinfo = require('imageinfo'),
	fs = require('fs');

fs.readFile('testimage', function(err, data) {
	if (err) throw err;

	info = imageinfo(data);
	console.log("Data is type:", info.mimeType);
	console.log("  Size:", data.length, "bytes");
	console.log("  Dimensions:", info.width, "x", info.height);
});