在调试:
调用微笑的生成的二维码图片
返回后,从request中的content:
respQrcode = wechat.show_qrcode(respTicket) app.logger.debug(‘type(respQrcode)=%s, respQrcode=%s’, type(respQrcode), respQrcode) respQrcodeContent = respQrcode.content |
返回的respQrcodeContent,经过打印,看起来好像是图片等二进制数据:
其中最开头的部分是:
JFIF
怀疑:
jpeg图片的最开始的头部数据,就是JFIF?
搜:
JFIF
jfif jpeg header
-》
JPEG小组(Independent JPEG Group
JFIF(JPEG File Interchange Format,JPEG档案交换格式)
JPEG File Interchange Format – Wikipedia, the free encyclopedia
JFIF, JPEG File Interchange Format, Version 1.02
“JFIF is a minimal file format that enables JPEG bitstreams to be exchanged between a wide variety of platforms and applications. It does not include any of the advanced features (like tagged headers) found in the TIFF specification. JFIF conforms to the interchange format syntax specified in JPEG Standard (ISO/IEC 10918-1, Annex B); its only additional requirement is the mandatory presence of the application segment APP0 marker right after the SOI (Start of Image) marker.”
JPEG File Interchange Format: Summary from the Encyclopedia of Graphics File Formats
转载请注明:在路上 » 【整理】JFIF Jpeg图片的头部数据