středa 24. února 2021

Exif

 Co všechno se dá najít v exif dat fotky?




Můžeme použít Exif knihovnu PHPčka:

<?php
    $exif = exif_read_data("IMG_20200402_191638.jpg");
    echo $exif;
    echo print_r($exif);   
?>

a získáme:

ArrayArray
(
    [FileName] => IMG_20200402_191638.jpg
    [FileDateTime] => 1585840600
    [FileSize] => 1186791
    [FileType] => 2
    [MimeType] => image/jpeg
    [SectionsFound] => ANY_TAG, IFD0, THUMBNAIL, EXIF, GPS, INTEROP
    [COMPUTED] => Array
        (
            [html] => width="3968" height="2976"
            [Height] => 2976
            [Width] => 3968
            [IsColor] => 1
            [ByteOrderMotorola] => 1
            [ApertureFNumber] => f/2.2
            [Thumbnail.FileType] => 2
            [Thumbnail.MimeType] => image/jpeg
            [Thumbnail.Height] => 384
            [Thumbnail.Width] => 512
        )

    [ImageWidth] => 3968
    [ImageLength] => 2976
    [BitsPerSample] => Array
        (
            [0] => 8
            [1] => 8
            [2] => 8
        )

    [ImageDescription] => sdr
    [Make] => HUAWEI
    [Model] => FRD-L19
    [Orientation] => 0
    [XResolution] => 72/1
    [YResolution] => 72/1
    [ResolutionUnit] => 2
    [Software] => FRD-L19 8.0.0.521(C432)
    [DateTime] => 2020:04:02 19:16:40
    [YCbCrPositioning] => 1
    [Exif_IFD_Pointer] => 288
    [GPS_IFD_Pointer] => 8462
    [DeviceSettingDescription] => ipp
    [THUMBNAIL] => Array
        (
            [ImageWidth] => 512
            [ImageLength] => 384
            [Compression] => 6
            [Orientation] => 0
            [XResolution] => 72/1
            [YResolution] => 72/1
            [ResolutionUnit] => 2
            [JPEGInterchangeFormat] => 8818
            [JPEGInterchangeFormatLength] => 29029
        )

    [DocumentName] => 
    [ExposureTime] => 2314000/1000000000
    [FNumber] => 220/100
    [ExposureProgram] => 2
    [ISOSpeedRatings] => 50
    [ExifVersion] => 0210
    [DateTimeOriginal] => 2020:04:02 19:16:40
    [DateTimeDigitized] => 2020:04:02 19:16:40
    [ComponentsConfiguration] => 
    [ShutterSpeedValue] => 298973/10000
    [ApertureValue] => 227/100
    [BrightnessValue] => 0/1
    [ExposureBiasValue] => 0/10
    [MeteringMode] => 5
    [LightSource] => 1
    [Flash] => 24
    [FocalLength] => 4500/1000
    [MakerNote] => Auto
    [SubSecTime] => 704387
    [SubSecTimeOriginal] => 704387
    [SubSecTimeDigitized] => 704387
    [FlashPixVersion] => 0100
    [ColorSpace] => 1
    [ExifImageWidth] => 3968
    [ExifImageLength] => 2976
    [InteroperabilityOffset] => 8432
    [SensingMethod] => 2
    [FileSource] => 
    [SceneType] => 
    [CustomRendered] => 1
    [ExposureMode] => 0
    [WhiteBalance] => 0
    [DigitalZoomRatio] => 100/100
    [FocalLengthIn35mmFilm] => 27
    [SceneCaptureType] => 0
    [GainControl] => 0
    [Contrast] => 0
    [Saturation] => 0
    [Sharpness] => 0
    [SubjectDistanceRange] => 0
    [GPSVersion] => 
    [GPSLatitudeRef] => N
    [GPSLatitude] => Array
        (
            [0] => 50/1
            [1] => 24/1
            [2] => 20563659/1000000
        )

    [GPSLongitudeRef] => E
    [GPSLongitude] => Array
        (
            [0] => 14/1
            [1] => 56/1
            [2] => 40690841/1000000
        )

    [GPSAltitudeRef] => 
    [GPSAltitude] => 0/100
    [GPSTimeStamp] => Array
        (
            [0] => 17/1
            [1] => 16/1
            [2] => 38/1
        )

    [GPSProcessingMode] => CELLID
    [GPSDateStamp] => 2020:04:02
    [InterOperabilityIndex] => R98
    [InterOperabilityVersion] => 0100
)
1

https://cs.wikipedia.org/wiki/Exif

Žádné komentáře:

Okomentovat