User Tools

Site Tools


linux:bash_snippets

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
linux:bash_snippets [2017/04/05 15:42]
mstraub [GIS]
linux:bash_snippets [2017/09/10 13:04]
mstraub [EXIF]
Line 145: Line 145:
  
  
-===== EXIV =====+===== EXIF =====
  
-=== Adjust ​EXIV information ===+Exchangeable Image File Format 
 + 
 +=== Adjust ​EXIF information ===
  
 <code bash> <code bash>
Line 156: Line 158:
 </​code>​ </​code>​
  
-=== Rename file according to EXIV timestamp ​===+=== Retrieve GPS locations ​===
  
 <code bash> <code bash>
-renrot ​-n %Y-%m-%d_%H-%M-%S ​image.jpg+exiftool ​-n -p '​$gpslatitude,​ $gpslongitude,​ $gpsdatetime' ​image.jpg
 </​code>​ </​code>​
  
 +=== Rename file according to EXIV timestamp ===
  
 +Simple rename:
 +<​code>​
 +exiftool '​-FileName<​CreateDate'​ -d '​%Y-%m-%d_%H-%M-%S%%-c.%%le'​ image.jpg
 +</​code>​
 +
 +Rename and rotate:
 +<code bash>
 +renrot -n %Y-%m-%d_%H-%M-%S image.jpg
 +</​code>​
 ===== PDF ===== ===== PDF =====
  
linux/bash_snippets.txt · Last modified: 2019/09/19 14:39 by mstraub