Lychee does not support modern Google Motion Pictures (aka Live Photos) #1283
Description
Detailed description of the problem
Google changed the format and EXIF data of their live photos, called "top photos" nowadays. Consequently, Lychee is not able to detect live photos as such anymore. Lychee treats these photos as ordinary photos, generates the smaller size variants of the photos without problems, but does not detect the embedded video stream.
The existing logic checks for the EXIF attribute MicroVideoOffset
to determine whether a photo contains a video stream and where this video streams is positioned in the binary file.
The new format does not set the attribute MicroVideoOffset
, but uses the binary EXIF attribute MotionPhoto
. EXIFtools supports this attribute, but Lychee does not evaluate it.
Steps to reproduce the issue
Steps
- Take a "top photo" with a Google Pixel and Android 12
- Upload the photo
something.MP.jpg
to Lychee - Lychee treats the photo as an ordinary photo
Sample Pictures
Output of EXIFtools
ExifTool Version Number : 12.30
File Name : PXL_20220418_135549208.MP.jpg
Directory : .
File Size : 6.2 MiB
File Modification Date/Time : 2022:04:18 15:55:49+02:00
File Access Date/Time : 2022:04:18 15:57:51+02:00
File Inode Change Date/Time : 2022:04:18 15:57:52+02: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 : Google
Camera Model Name : Pixel 3a
Orientation : Horizontal (normal)
Modify Date : 2022:04:18 15:55:49
Exposure Time : 1/2134
F Number : 1.8
ISO : 60
Date/Time Original : 2022:04:18 15:55:49
Create Date : 2022:04:18 15:55:49
Offset Time : +02:00
Offset Time Original : +02:00
Offset Time Digitized : +02:00
Shutter Speed Value : 2120.2
Aperture Value : 1.8
Subject Distance : 0.138 m
Flash : No Flash
Focal Length : 4.4 mm
Sub Sec Time : 208
Sub Sec Time Original : 208
Sub Sec Time Digitized : 208
Exif Image Width : 4032
Exif Image Height : 3024
Subject Distance Range : Macro
GPS Latitude Ref : North
GPS Longitude Ref : East
GPS Altitude Ref : Above Sea Level
GPS Time Stamp : 13:55:14
GPS Date Stamp : 2022:04:18
XMP Toolkit : Adobe XMP Core 5.1.0-jc003
Motion Photo : 1
Motion Photo Version : 1
Motion Photo Presentation Timestamp Us: 1428706
Directory Item Mime : image/jpeg
Directory Item Semantic : Primary
Directory Item Length : 0
Directory Item Padding : 0
JFIF Version : 1.02
Resolution Unit : None
X Resolution : 1
Y Resolution : 1
Profile CMM Type :
Profile Version : 4.0.0
Profile Class : Display Device Profile
Color Space Data : RGB
Profile Connection Space : XYZ
Profile Date Time : 2016:12:08 09:38:28
Profile File Signature : acsp
Primary Platform : Unknown ()
CMM Flags : Not Embedded, Independent
Device Manufacturer : Google
Device Model :
Device Attributes : Reflective, Glossy, Positive, Color
Rendering Intent : Perceptual
Connection Space Illuminant : 0.9642 1 0.82491
Profile Creator : Google
Profile ID : 75e1a6b13c34376310c8ab660632a28a
Profile Description : sRGB IEC61966-2.1
Profile Copyright : Copyright (c) 2016 Google Inc.
Media White Point : 0.95045 1 1.08905
Media Black Point : 0 0 0
Red Matrix Column : 0.43604 0.22249 0.01392
Green Matrix Column : 0.38512 0.7169 0.09706
Blue Matrix Column : 0.14305 0.06061 0.71391
Red Tone Reproduction Curve : (Binary data 32 bytes, use -b option to extract)
Chromatic Adaptation : 1.04788 0.02292 -0.05019 0.02959 0.99048 -0.01704 -0.00922 0.01508 0.75168
Blue Tone Reproduction Curve : (Binary data 32 bytes, use -b option to extract)
Green Tone Reproduction Curve : (Binary data 32 bytes, use -b option to extract)
Image Width : 4032
Image Height : 3024
Encoding Process : Baseline DCT, Huffman coding
Bits Per Sample : 8
Color Components : 3
Y Cb Cr Sub Sampling : YCbCr4:2:0 (2 2)
Aperture : 1.8
Image Size : 4032x3024
Megapixels : 12.2
Shutter Speed : 1/2134
Create Date : 2022:04:18 15:55:49.208+02:00
Date/Time Original : 2022:04:18 15:55:49.208+02:00
Modify Date : 2022:04:18 15:55:49.208+02:00
GPS Altitude : 367.1 m Above Sea Level
GPS Date/Time : 2022:04:18 13:55:14Z
GPS Latitude : 48 deg 49' 1.34" N
GPS Longitude : 9 deg 6' 37.03" E
Focal Length : 4.4 mm
GPS Position : 48 deg 49' 1.34" N, 9 deg 6' 37.03" E
Light Value : 13.5
Browser and system
Linux Kernel 5.15.11 (Gentoo), Apache 2.4.53, PHP 8.0.16, EXIFtool 12.30, Firefox 91.8.0
Activity