{"id":4839,"date":"2014-12-19T20:28:28","date_gmt":"2014-12-19T19:28:28","guid":{"rendered":"http:\/\/www.b.shuttle.de\/hayek\/hayek\/jochen\/wp\/blog-en\/?p=4839"},"modified":"2014-12-19T20:28:28","modified_gmt":"2014-12-19T19:28:28","slug":"camera-pictures-and-their-file-names-pdf-files-if-you-want-them-to-carry-some-date-they-already-have-inside-their-header","status":"publish","type":"post","link":"https:\/\/wp.jochen.hayek.name\/blog-en\/2014\/12\/19\/camera-pictures-and-their-file-names-pdf-files-if-you-want-them-to-carry-some-date-they-already-have-inside-their-header\/","title":{"rendered":"camera pictures and their file names, PDF files \u2013 if you want them to carry some date they already have inside their header \u2026"},"content":{"rendered":"<ul>\n<li><a href=\"https:\/\/github.com\/JochenHayek\/misc\/blob\/master\/jpg-exif-suggest-rename-as_vouchers.sh\">https:\/\/github.com\/JochenHayek\/misc\/blob\/master\/jpg-exif-suggest-rename-as_vouchers.sh<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/JochenHayek\/misc\/blob\/master\/jpg-exif-suggest-rename-versioned.sh\">https:\/\/github.com\/JochenHayek\/misc\/blob\/master\/jpg-exif-suggest-rename-versioned.sh<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/JochenHayek\/misc\/blob\/master\/pdf-suggest-rename-as_vouchers.sh\">https:\/\/github.com\/JochenHayek\/misc\/blob\/master\/pdf-suggest-rename-as_vouchers.sh<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/JochenHayek\/misc\/blob\/master\/pdf-suggest-rename-versioned.sh\">https:\/\/github.com\/JochenHayek\/misc\/blob\/master\/pdf-suggest-rename-versioned.sh<\/a><\/li>\n<\/ul>\n<p>For accessing the EXIF header there are a couple of utilities available, &#8220;exif &#8211;xml-ouptut&#8221; and &#8220;exiftool -s&#8221;; for PDF the package &#8220;xpdf&#8221; provides a utility called &#8220;pdfinfo -meta -rawdates&#8221;. All of them can provide you with quite a few date-time-strings from the respective heards.<\/p>\n<p>Long ago I wrapped these utilities in nice little shell scripts, that take all these date-time-strings and list the possible renaming commands with descriptive comments (&#8220;mv \u2026 \u2026 # \u2026&#8221;) on STDOUT, so that you can pick from the alternatives.<\/p>\n<p>One variant of my wrapper scripts suggests renamings, that put the date-time-string at the beginning of your file name, so that your files will get sorted by the date and time, that they got created on \u2013 that&#8217;s usually, what I pick.<\/p>\n<p>The other variant puts the date-time-string right before the extension of the file.\t\t\t\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>https:\/\/github.com\/JochenHayek\/misc\/blob\/master\/jpg-exif-suggest-rename-as_vouchers.sh https:\/\/github.com\/JochenHayek\/misc\/blob\/master\/jpg-exif-suggest-rename-versioned.sh https:\/\/github.com\/JochenHayek\/misc\/blob\/master\/pdf-suggest-rename-as_vouchers.sh https:\/\/github.com\/JochenHayek\/misc\/blob\/master\/pdf-suggest-rename-versioned.sh For accessing the EXIF header there are a couple of utilities available, &#8220;exif &#8211;xml-ouptut&#8221; and &#8220;exiftool -s&#8221;; for PDF the package &#8220;xpdf&#8221; provides a utility called &#8220;pdfinfo -meta -rawdates&#8221;. All of them can provide you with quite a few date-time-strings from the respective heards. Long ago I wrapped these utilities in [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false,"_share_on_mastodon":"0"},"categories":[666],"tags":[1035,1125],"class_list":["post-4839","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-exif","tag-jpeg"],"share_on_mastodon":{"url":"","error":""},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paO0kP-1g3","jetpack_likes_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/4839","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/comments?post=4839"}],"version-history":[{"count":0,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/4839\/revisions"}],"wp:attachment":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/media?parent=4839"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/categories?post=4839"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/tags?post=4839"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}