pict-converter now export datetime correctly (some pictures don't have right datetime in exif, why ?
This commit is contained in:
@@ -53,9 +53,9 @@ function convert {
|
||||
# SRC
|
||||
src="${pict/public_html\/pictures\//}"
|
||||
# TIME
|
||||
time="${pict/public_html\/pictures\/hehe-/}"
|
||||
time="${time/.jpg/}"
|
||||
# time=`exiftool 2>/dev/null -S --DateTimeOriginal -p '$DateTimeOriginal' -d %Y/%m/%d-%T "$pict"`
|
||||
# time="${pict/public_html\/pictures\/hehe-/}"
|
||||
# time="${time/.jpg/}"
|
||||
time=`exiftool 2>/dev/null -S --DateTimeOriginal -p '$DateTimeOriginal' -d %Y-%m-%dT%T "$pict"`
|
||||
# GPS
|
||||
gps=`exiftool 2>/dev/null -n -p '$GPSLatitude,$GPSLongitude' $pict`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user