nodejs读取图像数据 [英] nodejs read image data

查看:131
本文介绍了nodejs读取图像数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何库可以读取jpeg的图像数据?

Is there any library to read image data of a jpeg ?

我想得到一个jpeg的像素。

I would like to get the pixel of a jpeg.

我只找到类似node-jpeg或gm的库,但它们不提供图像数据。

I only find library like node-jpeg or gm but they don't provide images data.

推荐答案

您可以使用 node-imagemagick 模块执行此操作。
(参见在NodeJS上打开图像并找出宽度/ height )。

You could do this with the node-imagemagick module. (see Opening images on NodeJS and finding out width/height).

此外,如果您更喜欢访问EXIF元数据,还有 node-exif

Also, if you prefer accessing the EXIF metadata, there is node-exif.

这篇关于nodejs读取图像数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆