EXIF 可交换图像文件格式

本文介绍了Exchangeable Image File Format (EXIF)标准,展示了如何使用Python的exifread模块解析JPEG图像的EXIF信息,重点讲解了Image Orientation字段的识别与图像旋转操作。通过案例详细解读了exifread库在处理EXIF数据时的应用。

Exchangeable image file format
https://zh.wikipedia.org/wiki/EXIF

Exif 2.3官方标准(上面wiki内提取)
http://www.cipa.jp/std/documents/e/DC-008-2012_E.pdf
https://www.media.mit.edu/pia/Research/deepview/exif.html

Python Exif 解析模块
https://pypi.org/project/exif/

JPEG Rotation and EXIF Orientation 字段,(图像旋转字段解读)
https://www.impulseadventure.com/photo/exif-orientation.html

图虫EXIF查看器
https://exif.tuchong.com/

imagemagick 分析工具 identify
https://imagemagick.org/script/identify.php

分析参考:

# magick identify -verbose /Users/bytedance/Downloads/Lark20210112-201836.jpeg 
Image:
  Filename: /Users/bytedance/Downloads/Lark20210112-201836.jpeg
  Format: JPEG (Joint Photographic Experts Group JFIF format)
  Mime type: image/jpeg
  Class: DirectClass
  Geometry: 4032x3024+0+0
  Resolution: 72x72
  Print size: 56x42
  Units: PixelsPerInch
  Colorspace: sRGB
  Type: TrueColor
  Base type: Undefined
  Endianness: Undefined
  Depth: 8-bit
  Channel depth:
    Red: 8-bit
    Green: 8-bit
    Blue: 8-bit
  Channel statistics:
    Pixels: 12192768
    Red:
      min: 0  (0)
      max: 255 (1)
      mean: 89.0166 (0.349085)
      median: 31 (0.121569)
      standard deviation: 60.5416 (0.237418)
      kurtosis: -0.572173
      skewness: 0.588149
      entropy: 0.94586
    Green:
      min: 0  (0)
      max: 255 (1)
      mean: 109.909 (0.431016)
      median: 29 (0.113725)
      standard deviation: 64.9169 (0.254576)
      kurtosis: -1.18594
      skewness: -0.20972
      entropy: 0.94162
    Blue:
      min: 0  (0)
      max: 255 (1)
      mean: 133.504 (0.523543)
      median: 35 (0.137255)
      standard deviation: 73.5451 (0.288412)
      kurtosis: -1.30359
      skewness: -0.406024
      entropy: 0.932756
  Image statistics:
    Overall:
      min: 0  
评论 1
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值