Do you know a Caja plugin that showing file's EXIF metadata in properties window ?
In Nautilus there is a tab "Audio" or "Image" where metadata are displayed.
Thanks
I run exif
on http://i.imgur.com/4sftcoo.jpg
$ exif 4sftcoo.jpg
Corrupt data
The data provided does not follow the specification.
ExifLoader: The data supplied does not seem to contain EXIF data.
I was wondering why the error?
I'm not sure why this is so difficult under Ubuntu/Linux. With Windows if I rotate an image in Windows Explorer or Window's image viewer, it retains that orientation everywhere in every application. But with Ubuntu some applications rotate and save that rotation, but the rotation is ignored by other applications and visa versa.
My main problem is that I can't seem to get the orientation of my photos to be set correctly and the honored by all applications. Apparently I hold my phone in different orientations when taking pictures and I'd like to fix them once and for all. But there doesn't seem to be any simple tutorial on how to do this, just random posts about command line picture editing which doesn't work if I have to open the images up in a viewer, then close and run a command on them and open them up again to check... This is madness.
The best I can find is cryptic discussions of Exif data, without any clear novice instruction.
Does someone have a simple tutorial on how to do this simply and permanently so that I can get my 1000's of pictures corrected once and for all?
Thank you
I'm curious if anybody could give me some insight on a current issue I'm having.
For some context, my wife and I have an Android phone (Moto G5 Plus). The phones sync all items in DCIM folder to my Ubuntu Server over SFTP. The items are stored in an "unsorted_pictures" directory. Once a night, a cron job runs, executing a script that automatically copies the contents from unsorted_pictures over to pictures/year/month. Later on (after the phones max in space) I'll purge the unsorted_pictures directory as a maintenance step.
The script, for whatever it's worth, is as follows:
#!/bin/bash
exiftool -overwrite_original_in_place -P -if 'not $CreateDate' '-CreateDate<FileModifyDate' -r /mnt/vault/unsorted_pictures/staging
exiftool -o . '-Directory<CreateDate' -d /mnt/vault/pictures/%Y/%m -r /mnt/vault/unsorted_pictures/staging
exit
So basically, the first exiftool line checks if CreateDate exists. If it doesn't, it uses the FileModifyDate to create the CreateDate parameter. This is really only useful for pictures saved via Hangouts conversations as Google seems to strip exif data. (?!) After that, the second exiftool line does the copying+sorting.
This process is kind of amazing and I'm very happy with it. There's one snafu though -- the video files seem to be recording in UTC time, whereas the pictures seem to be recorded in local time. Below is a video file that was taken, immediately transferred to my server, and exiftool was ran against it to check all of the time stamps.
administrator@vault:/mnt/vault/unsorted_pictures$ exiftool -time:all -s VID_20171225_214456599.mp4
FileModifyDate : 2017:12:25 21:47:02-05:00
FileAccessDate : 2017:12:25 21:47:00-05:00
FileInodeChangeDate : 2017:12:25 21:47:02-05:00
CreateDate : 2017:12:26 02:45:00
ModifyDate : 2017:12:26 02:45:00
TrackCreateDate : 2017:12:26 02:45:00
TrackModifyDate : 2017:12:26 02:45:00
MediaCreateDate : 2017:12:26 02:45:00
MediaModifyDate : 2017:12:26 02:45:00
administrator@vault:/mnt/vault/unsorted_pictures$ date
Mon Dec 25 21:47:23 EST 2017
As you can see, the CreateDate is set, seemingly, to a future time. Further below I ran the 'date' command so you can see the current local time when this took place. In the upper lines you can see the time stamps ending with 05:00, which is my understanding that it's the time differential to UTC.
On to my actual questions:
1) I tried multiple camera apps on my Motorola, but all of them yielded the exact same behavior. This suggests that it's not an app-specific setting. Is there a way to keep my videos from being recorded in UTC format? Pictures are fine, it's just videos. I find this to be a little strange, but online searching suggests it's common, but I have yet to hear and understand why.
2) I'm sure I can add some logic within my script to simply sort pictures via CreateDate and sort video file types via FileModifyDate, or even added some extra parameter to systematically re-date all videos back by 5 hours. But I got to wondering, is there a means to have exiftool look at an mp4 file and acknowledge the UTC timing difference? I know video files are a different beast and exiftool is largely focused on pictures, but even still, given exiftool does such a good job with acknowledging metadata even on these videos, it had me thinking there might be a way to tweak it to view the non-UTC time. Or perhaps there's no hope if the phone is recording in UTC time. /shrug
Perhaps this is even more reason to sort by year/month instead of year/month/day, as I won't even tell that videos are shifted by 5 hours since they'll all be within that month's directory. But still, I find myself intrigued by this and wondering... why?
Any help or insight would be very much appreciated!
In Nautilus, I would like to add columns displaying metadatas contained in files.
This is mostly useful with audio and pictures files:
Columns would be editable in the standard 'View - Visible Columns' option in Nautilus