新手,请教如何调用EXIF信息

huaxing
  • 22

做一个摄影站,需要显示EXIF信息,Qiniu用?exif调用方便,但是新手不太会用调用返回的JSON,求一php调用返回JSON的实例。
例如:http://img-other.u.qiniudn.com/AnyUp/140313083426?exif
返回:{"Artist":{"val":" ","type":2},"CFAPattern":{"val":"8 bytes undefined data","type":7},"ColorSpace":{"val":"sRGB","type":3},"ComponentsConfiguration":{"val":"Y Cb Cr -","type":7},"CompressedBitsPerPixel":{"val":" 4","type":5},"Compression":{"val":"JPEG compression","type":3},"Contrast":{"val":"Normal","type":3},"Copyright":{"val":"[None] (Photographer) - [None] (Editor)","type":2},"CustomRendered":{"val":"Normal process","type":3},"DateTime":{"val":"2014:03:06 00:04:09","type":2},"DateTimeDigitized":{"val":"2014:03:06 00:04:09","type":2},"DateTimeOriginal":{"val":"2014:03:06 00:04:09","type":2},"DigitalZoomRatio":{"val":" 1","type":5},"ExifVersion":{"val":"Unknown Exif Version","type":7},"ExposureBiasValue":{"val":"0.00 EV","type":10},"ExposureMode":{"val":"Manual exposure","type":3},"ExposureProgram":{"val":"Manual","type":3},"ExposureTime":{"val":"8 sec.","type":5},"FNumber":{"val":"f/3.5","type":5},"FileSource":{"val":"DSC","type":7},"Flash":{"val":"Flash did not fire, compulsory flash mode","type":3},"FlashPixVersion":{"val":"FlashPix Version 1.0","type":7},"FocalLength":{"val":"18.0 mm","type":5},"FocalLengthIn35mmFilm":{"val":"27","type":3},"GPSVersionID":{"val":"2.3.0.0","type":1},"GainControl":{"val":"Low gain up","type":3},"ISOSpeedRatings":{"val":"800","type":3},"InteroperabilityIndex":{"val":"R98","type":2},"InteroperabilityVersion":{"val":"0100","type":7},"LightSource":{"val":"Unknown","type":3},"Make":{"val":"NIKON CORPORATION","type":2},"MakerNote":{"val":"22556 bytes undefined data","type":7},"MaxApertureValue":{"val":"3.60 EV (f/3.5)","type":5},"MeteringMode":{"val":"Center-weighted average","type":3},"Model":{"val":"NIKON D7100","type":2},"Orientation":{"val":"Top-left","type":3},"PixelXDimension":{"val":"6000","type":3},"PixelYDimension":{"val":"4000","type":3},"ResolutionUnit":{"val":"Inch","type":3},"Saturation":{"val":"Normal","type":3},"SceneCaptureType":{"val":"Standard","type":3},"SceneType":{"val":"Directly photographed","type":7},"SensingMethod":{"val":"One-chip color area sensor","type":3},"Sharpness":{"val":"Normal","type":3},"Software":{"val":"Ver.1.01 ","type":2},"SubSecTimeDigitized":{"val":"90","type":2},"SubSecTimeOriginal":{"val":"90","type":2},"SubjectDistanceRange":{"val":"Unknown","type":3},"SubsecTime":{"val":"90","type":2},"UserComment":{"val":" ","type":7},"WhiteBalance":{"val":"Auto white balance","type":3},"XResolution":{"val":"300","type":5},"YCbCrPositioning":{"val":"Co-sited","type":3},"YResolution":{"val":"300","type":5}}
如何在php中调用返回JSON中的指定元素?

回复
阅读 2.9k
1 个回答
✓ 已被采纳
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进