没有合适的资源?快使用搜索试试~ 我知道了~
is-tif:检查BufferUint8Array是否为TIFF图像
共13个文件
tif:2个
js:2个
yml:1个
需积分: 9 0 下载量 47 浏览量
2021-05-26
08:08:19
上传
评论
收藏 212KB ZIP 举报
温馨提示
is-tif 检查Buffer / Uint8Array是否为图像 安装 $ npm install is-tif 用法 Node.js const readChunk = require ( 'read-chunk' ) ; const isTif = require ( 'is-tif' ) ; const buffer = readChunk . sync ( 'unicorn.tif' , 0 , 4 ) ; isTif ( buffer ) ; //=> true 浏览器 const xhr = new XMLHttpRequest ( ) ; xhr . open ( 'GET' , 'unicorn.tif' ) ; xhr . responseType = 'arraybuffer' ; xhr . onload = ( ) => { isTif ( new U
资源推荐
资源详情
资源评论
收起资源包目录
is-tif-main.zip (13个子文件)
is-tif-main
fixture.png 53KB
.gitignore 23B
.github
workflows
main.yml 464B
fixture-big-endian.tif 105KB
.gitattributes 29B
package.json 649B
readme.md 826B
index.js 285B
fixture-little-endian.tif 101KB
test.js 305B
.editorconfig 175B
license 1KB
.npmrc 19B
共 13 条
- 1
资源评论
易烊千玺的小朋友
- 粉丝: 33
- 资源: 4516
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功