对象存储

产品文档

对象存储

获取图片信息

获取图片基本信息及exif信息

参数:

操作方式 指令含义 参数格式 参数说明 结果说明
保留jpg,webp,tiff图片meta信息 Not strip ns 默认去除所有格式图片meta信息
指定ns后,保留
获取图片基本信息 Image information imginfo 可选参数 返回json格式结果,包含:
format图片格式
width宽
height高
fileSize文件字节数
imgType文件类型,取值范围[0 UndefinedType,
1 BilevelType,
2 GrayscaleType,
3 GrayscaleMatteType,
4 PaletteType,
5 PaletteMatteType,
6 TrueColorType,
7 TrueColorMatteType,
8 ColorSeparationType,
9 ColorSeparationMatteType,
10 OptimizeType]
orientation原始EXIF方向,取值范围[
0 UndefinedOrientation,
1 TopLeftOrientation,
2 TopRightOrientation,
3 BottomRightOrientation,
4 BottomLeftOrientation,
5 LeftTopOrientation,
6 RightTopOrientation,
7 RightBottomOrientation,
8 LeftBottomOrientation]
获取图片EXIF信息 Image EXIF Imgexif 可选参数 支持jpg,tiff格式图片

示例:

获取图片基本信息:

http://downloads.s3.cn-north-1.jdcloud-oss.com/example.jpg?x-oss-process=imginfo/ns

返回结果:

{"format":"JPEG","width":350,"height":236,"fileSize":38539,"imgType":6,"orientation":1}
获取图片EXIF信息:

http://downloads.s3.cn-north-1.jdcloud-oss.com/example.jpg?x-oss-process=imgexif

返回结果:

{"FileType":"JPEG","FileSize":"38539","ImageWidth":"350","ImageHeight":"236","Make":"Canon","Model":"Canon EOS 1100D","Software":"www.meitu.com","ExposureTime":"1/200","ExifOffset":"118","ExposureTime":"1/200","FNumber":"5/1","ISOSpeedRatings":"160, 0","DateTimeOriginal":"2013:05:17 16:21:36","Flash":"16, 0","FocalLength":"140/1","LensModel":"EF75-300mm f/4-5.6"}
更新时间:2021-01-26 13:13:12
feedback