can-can-word-bug
Version:
can-can-word-bug 是一个 TS 编写的工具库
14 lines (13 loc) • 443 B
TypeScript
/**
* 获取图片的的宽高
* @example
* import { uploadFile, getImgMeta } from 'can-can-word-bug'
*
* document.onclick = async () => {
* const file = await uploadFile({ accept: 'image/*' })
* const imgMeta = await getImgMeta(file)
* console.log(imgMeta)
* }
*/
declare const getImgMeta: (file: Uint8Array | string | Blob | ArrayBuffer | Buffer | File) => Promise<import('image-meta').ImageMeta>;
export default getImgMeta;