Object Storage Service

Products

Object Storage Service

Obtaining image information

Obtain basic image information and exif information

Parameters:

Actions mode Instruction meaning Parameter format Parameter description Result description
Retain meta information of jpg, webp and tiff images Not strip ns Remove the meta information of images of all formats by default
retain after assigning ns
Obtain basic image information Image information imginfo Selectable parameters Returned results of json format, including:
format format
width width
height height
fileSize file bytes number
imgType file type, value range[0 UndefinedType,
1 BilevelType,
2 GrayscaleType,
3 GrayscaleMatteType,
4 PaletteType,
5 PaletteMatteType,
6 TrueColorType,
7 TrueColorMatteType,
8 ColorSeparationType,
9 ColorSeparationMatteType,
10 OptimizeType]
orientation original EXIF orientation, value range[
0 UndefinedOrientation,
1 TopLeftOrientation,
2 TopRightOrientation,
3 BottomRightOrientation,
4 BottomLeftOrientation,
5 LeftTopOrientation,
6 RightTopOrientation,
7 RightBottomOrientation,
8 LeftBottomOrientation]
Obtain image EXIF information Image EXIF Imgexif Selectable parameters Support jpg and tiff format images

Example:

Obtain basic image information:

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

Returned results:

{"format":"JPEG","width":350,"height":236,"fileSize":38539,"imgType":6,"orientation":1}
Obtain image EXIF information:

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

Returned results:

{"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"}
Update Time:2019-05-28 16:47:16