Image processing 如何让filepicker.stat()返回旋转图像的尺寸?
我们正在从Image processing 如何让filepicker.stat()返回旋转图像的尺寸?,image-processing,filepicker.io,filepicker,Image Processing,Filepicker.io,Filepicker,我们正在从filepicker.pickAndStore()获取图像元数据并将其存储在成功回调中。现在,我们正在使用filepicker.stat()获取维度: 我们希望宽度和高度返回旋转图像的尺寸(使用rotate=exif)。做这件事最简单的方法是什么?你有没有碰巧得到什么解决方案? // file is an object returned from the success callback filepicker.stat(file, { width: true, height: true
filepicker.pickAndStore()
获取图像元数据并将其存储在成功回调中。现在,我们正在使用filepicker.stat()
获取维度:
我们希望宽度和高度返回旋转图像的尺寸(使用
rotate=exif
)。做这件事最简单的方法是什么?你有没有碰巧得到什么解决方案?
// file is an object returned from the success callback
filepicker.stat(file, { width: true, height: true }, function(metadata) {
// our app code
});