This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
linux:bash_snippets [2017/04/05 15:42] mstraub [GIS] |
linux:bash_snippets [2019/09/19 14:39] (current) mstraub [PDF] |
||
---|---|---|---|
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 ===== | ||
Line 172: | Line 184: | ||
See also http://www.ghostscript.com/doc/9.05/Ps2pdf.htm#Options | See also http://www.ghostscript.com/doc/9.05/Ps2pdf.htm#Options | ||
+ | |||
+ | === Split pdf files === | ||
+ | |||
+ | <code bash> | ||
+ | pdfposter -p 2x1a4 in.pdf out_across_2_A4_pages_sidebyside.pdf | ||
+ | </code> | ||
+ | |||
+ | see also https://wiki.ubuntuusers.de/pdfposter/ |