Инструменты пользователя

Инструменты сайта


 ↔

Боковая панель

linux:exif_data_and_renaming
Эта версия (2018/05/03 21:09) была проверена пользователем Случайный зритель.Доступна предыдущая проверенная версия (2016/05/18 14:51).Diff

Get photo meta data

exiv

exiv2 -pt 26701480945_c3be4000f2_o.jpg

Exif.Image.Make                              Ascii       6  Apple
Exif.Image.Model                             Ascii      10  iPhone 5s
Exif.Image.Orientation                       Short       1  right, top
Exif.Image.XResolution                       Rational    1  72
Exif.Image.YResolution                       Rational    1  72
Exif.Image.ResolutionUnit                    Short       1  inch
Exif.Image.Software                          Ascii       4  9.3
Exif.Image.DateTime                          Ascii      20  2016:04:01 19:32:40
Exif.Image.YCbCrPositioning                  Short       1  Centered
Exif.Image.ExifTag                           Long        1  198
Exif.Photo.ExposureTime                      Rational    1  1/33 s
Exif.Photo.FNumber                           Rational    1  F2.2
Exif.Photo.ExposureProgram                   Short       1  Auto
Exif.Photo.ISOSpeedRatings                   Short       1  250
Exif.Photo.ExifVersion                       Undefined   4  2.21
Exif.Photo.DateTimeOriginal                  Ascii      20  2016:04:01 19:32:40
Exif.Photo.DateTimeDigitized                 Ascii      20  2016:04:01 19:32:40
Exif.Photo.ComponentsConfiguration           Undefined   4  YCbCr
Exif.Photo.ShutterSpeedValue                 SRational   1  1/33 s
Exif.Photo.ApertureValue                     Rational    1  F2.2
Exif.Photo.BrightnessValue                   SRational   1  1.45772
Exif.Photo.ExposureBiasValue                 SRational   1  0 EV
Exif.Photo.MeteringMode                      Short       1  Multi-segment
Exif.Photo.Flash                             Short       1  No, compulsory
Exif.Photo.FocalLength                       Rational    1  4.2 mm
Exif.Photo.MakerNote                         Undefined 876  (Binary value suppressed)
Exif.Photo.SubSecTimeOriginal                Ascii       4  231
Exif.Photo.SubSecTimeDigitized               Ascii       4  231
Exif.Photo.FlashpixVersion                   Undefined   4  1.00
Exif.Photo.ColorSpace                        Short       1  sRGB
Exif.Photo.PixelXDimension                   Long        1  3264
Exif.Photo.PixelYDimension                   Long        1  2448
Exif.Photo.SensingMethod                     Short       1  One-chip color area
Exif.Photo.SceneType                         Undefined   1  Directly photographed
Exif.Photo.ExposureMode                      Short       1  Auto
Exif.Photo.WhiteBalance                      Short       1  Auto
Exif.Photo.FocalLengthIn35mmFilm             Short       1  29.0 mm
Exif.Photo.SceneCaptureType                  Short       1  Standard
Exif.Photo.LensSpecification                 Rational    4  83/20 83/20 11/5 11/5
Exif.Photo.LensMake                          Ascii       6  Apple
Exif.Photo.LensModel                         Ascii      35  iPhone 5s back camera 4.15mm f/2.2
Exif.Image.GPSTag                            Long        1  1622
Exif.GPSInfo.GPSLatitudeRef                  Ascii       2  North
Exif.GPSInfo.GPSLatitude                     Rational    3  59deg 56' 7.460" 
Exif.GPSInfo.GPSLongitudeRef                 Ascii       2  East
Exif.GPSInfo.GPSLongitude                    Rational    3  30deg 26' 5.760" 
Exif.GPSInfo.GPSAltitudeRef                  Byte        1  Above sea level
Exif.GPSInfo.GPSAltitude                     Rational    1  31.1 m
Exif.GPSInfo.GPSTimeStamp                    Rational    3  16:32:17.0
Exif.GPSInfo.GPSSpeedRef                     Ascii       2  km/h
Exif.GPSInfo.GPSSpeed                        Rational    1  0/1
Exif.GPSInfo.GPSImgDirectionRef              Ascii       2  True direction
Exif.GPSInfo.GPSImgDirection                 Rational    1  72013/298
Exif.GPSInfo.GPSDestBearingRef               Ascii       2  True direction
Exif.GPSInfo.GPSDestBearing                  Rational    1  72013/298
Exif.GPSInfo.GPSDateStamp                    Ascii      11  2016:04:01
Exif.Thumbnail.Compression                   Short       1  JPEG (old-style)
Exif.Thumbnail.XResolution                   Rational    1  72
Exif.Thumbnail.YResolution                   Rational    1  72
Exif.Thumbnail.ResolutionUnit                Short       1  inch
Exif.Thumbnail.JPEGInterchangeFormat         Long        1  2026
Exif.Thumbnail.JPEGInterchangeFormatLength   Long        1  10196

exiftool

exiftool 26701480945_c3be4000f2_o.jpg 

ExifTool Version Number         : 10.10
File Name                       : 26701480945_c3be4000f2_o.jpg
Directory                       : .
File Size                       : 1657 kB
File Modification Date/Time     : 2016:04:02 02:32:40+03:00
File Access Date/Time           : 2016:05:18 13:12:22+03:00
File Inode Change Date/Time     : 2016:05:18 11:10:56+03:00
File Permissions                : rw-r--r--
File Type                       : JPEG
File Type Extension             : jpg
MIME Type                       : image/jpeg
Exif Byte Order                 : Big-endian (Motorola, MM)
Make                            : Apple
Camera Model Name               : iPhone 5s
Orientation                     : Rotate 90 CW
X Resolution                    : 72
Y Resolution                    : 72
Resolution Unit                 : inches
Software                        : 9.3
Modify Date                     : 2016:04:01 19:32:40
Y Cb Cr Positioning             : Centered
Exposure Time                   : 1/33
F Number                        : 2.2
Exposure Program                : Program AE
ISO                             : 250
Exif Version                    : 0221
Date/Time Original              : 2016:04:01 19:32:40
Create Date                     : 2016:04:01 19:32:40
Components Configuration        : Y, Cb, Cr, -
Shutter Speed Value             : 1/33
Aperture Value                  : 2.2
Brightness Value                : 1.457716197
Exposure Compensation           : 0
Metering Mode                   : Multi-segment
Flash                           : Off, Did not fire
Focal Length                    : 4.2 mm
Run Time Flags                  : Valid
Run Time Value                  : 145593188316833
Run Time Epoch                  : 0
Run Time Scale                  : 1000000000
Burst UUID                      : FA42FF57-B2E3-4899-A4A2-2A52AAD8DC04
Sub Sec Time Original           : 231
Sub Sec Time Digitized          : 231
Flashpix Version                : 0100
Color Space                     : sRGB
Exif Image Width                : 3264
Exif Image Height               : 2448
Sensing Method                  : One-chip color area
Scene Type                      : Directly photographed
Exposure Mode                   : Auto
White Balance                   : Auto
Focal Length In 35mm Format     : 29 mm
Scene Capture Type              : Standard
Lens Info                       : 4.15mm f/2.2
Lens Make                       : Apple
Lens Model                      : iPhone 5s back camera 4.15mm f/2.2
GPS Latitude Ref                : North
GPS Longitude Ref               : East
GPS Altitude Ref                : Above Sea Level
GPS Time Stamp                  : 16:32:16.99
GPS Speed Ref                   : km/h
GPS Speed                       : 0
GPS Img Direction Ref           : True North
GPS Img Direction               : 241.6543624
GPS Dest Bearing Ref            : True North
GPS Dest Bearing                : 241.6543624
GPS Date Stamp                  : 2016:04:01
GPS Horizontal Positioning Error: 1414 m
Compression                     : JPEG (old-style)
Thumbnail Offset                : 2038
Thumbnail Length                : 10196
XMP Toolkit                     : XMP Core 5.4.0
Region Area Y                   : 0.470588
Region Area W                   : 0.068627
Region Area X                   : 0.287377
Region Area H                   : 0.091503
Region Area Unit                : normalized
Region Type                     : Face
Region Extensions Angle Info Yaw: 0
Region Extensions Angle Info Roll: 270
Region Extensions Confidence Level: 284
Region Extensions Time Stamp    : 3494234918942
Region Extensions Face ID       : 5
Region Applied To Dimensions H  : 2448
Region Applied To Dimensions W  : 3264
Region Applied To Dimensions Unit: pixel
Image Width                     : 3264
Image Height                    : 2448
Encoding Process                : Baseline DCT, Huffman coding
Bits Per Sample                 : 8
Color Components                : 3
Y Cb Cr Sub Sampling            : YCbCr4:2:0 (2 2)
Aperture                        : 2.2
GPS Altitude                    : 31 m Above Sea Level
GPS Date/Time                   : 2016:04:01 16:32:16.99Z
GPS Latitude                    : 59 deg 56' 7.46" N
GPS Longitude                   : 30 deg 26' 5.76" E
GPS Position                    : 59 deg 56' 7.46" N, 30 deg 26' 5.76" E
Image Size                      : 3264x2448
Megapixels                      : 8.0
Run Time Since Power Up         : 1 days 16:26:33
Scale Factor To 35 mm Equivalent: 7.0
Shutter Speed                   : 1/33
Create Date                     : 2016:04:01 19:32:40.231
Date/Time Original              : 2016:04:01 19:32:40.231
Thumbnail Image                 : (Binary data 10196 bytes, use -b option to extract)
Circle Of Confusion             : 0.004 mm
Field Of View                   : 63.7 deg
Focal Length                    : 4.2 mm (35 mm equivalent: 29.0 mm)
Hyperfocal Distance             : 1.82 m
Light Value                     : 6.0
for i in $(ls -1); do
    z=$(exiftool $i | grep "Date/Time Original" | grep "\." | cut -d ":" -f2-99 | sed -e "s: ::g" -e "s|:||g" -e "s|\.||");
    echo $i" -> "$z".jpg";
    cp -n $i $z".jpg"; 
done

Обсуждение

Ваш комментарий. Вики-синтаксис разрешён:
O U S Q K
 
/home/d/dgaloc/wiki.dmgl.info/public_html/data/pages/linux/exif_data_and_renaming.txt · Последние изменения: 2018/05/03 21:09 — Случайный зритель