{"id":10044,"date":"2023-10-07T17:24:23","date_gmt":"2023-10-07T15:24:23","guid":{"rendered":"https:\/\/linux-bibel.at\/?p=10044"},"modified":"2023-10-07T17:24:24","modified_gmt":"2023-10-07T15:24:24","slug":"das-dateidatum-von-bildern-wieder-auf-die-aufnahmezeit-setzen","status":"publish","type":"post","link":"https:\/\/linux-bibel.at\/index.php\/2023\/10\/07\/das-dateidatum-von-bildern-wieder-auf-die-aufnahmezeit-setzen\/","title":{"rendered":"Das Dateidatum von Bildern (wieder) auf die Aufnahmezeit setzen"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Bei Bildern ist es oft gew\u00fcnscht, dass das Dateidatum eines Bildes gleich dem Aufnahmezeitpunkt ist. Viele Bildbearbeitungsprogramme \u00e4ndern das Dateidatum aber beim Speichern auf den Zeitstempel im Moment des Speicherns. Eine Option wie zum Beispiel <em>Originalzeit des Bildes beim Speichern beibehalten<\/em> haben nur wenige Programme.<br>Mit dem ExifTool ist es aber kein Problem, das Datum wieder auf den Zeitpunkt der Aufnahme zu setzen. Es reicht der Befehl:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>exiftool '-DateTimeOriginal&gt;FileModifyDate' bild.jpg<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Im Exif-Feld <em>DateTimeOriginal <\/em>wird von der Kamera Datum und Uhrzeit im Moment des Ausl\u00f6sens gespeichert. Dieses Feld wird im obigen Beispiel dazu benutzt, um das Datum der Datei\u00e4nderung zu setzen. Und schon hat die Bild-Datei wieder den urspr\u00fcnglichen Zeitstempel.<br>Jetzt muss man das aber nicht f\u00fcr jedes Foto einzeln machen. Mit:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>exiftool '-DateTimeOriginal&gt;FileModifyDate' .<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">wird das Datum und die Uhrzeit aller Bilder im aktuellen Verzeichnis auf den urspr\u00fcnglichen Aufnahmezeitpunkt zur\u00fcckgesetzt. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Um auch alle Bilder in allen Unterverzeichnissen einzubeziehen, wird zus\u00e4tzlich die Option <strong>-r<\/strong> zum rekursiven Durchlaufen aller Verzeichnisse verwendet. Damit ergibt sich dann:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>exiftool -r '-DateTimeOriginal&gt;FileModifyDate' .<\/code><\/pre>\n<div class=\"pld-like-dislike-wrap pld-custom\">\r\n    <div class=\"pld-like-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-like-trigger pld-like-dislike-trigger  \" title=\"Gef\u00e4llt mir\" data-post-id=\"10044\" data-trigger-type=\"like\" data-restriction=\"cookie\" data-already-liked=\"0\">\r\n                            <img src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/Daumen-Hoch.png\" alt=\"Gef\u00e4llt mir\" \/>\r\n            <\/a>\r\n    <span class=\"pld-like-count-wrap pld-count-wrap\">3    <\/span>\r\n<\/div><div class=\"pld-dislike-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-dislike-trigger pld-like-dislike-trigger  \" title=\"Gef\u00e4llt mir nicht\" data-post-id=\"10044\" data-trigger-type=\"dislike\" data-restriction=\"cookie\" data-already-liked=\"0\">\r\n                            <img src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/Daumen-Runter.png\" alt=\"Gef\u00e4llt mir nicht\" \/>\r\n            <\/a>\r\n    <span class=\"pld-dislike-count-wrap pld-count-wrap\"><\/span>\r\n<\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>Bei Bildern ist es oft gew\u00fcnscht, dass das Dateidatum eines Bildes gleich dem Aufnahmezeitpunkt ist. Viele Bildbearbeitungsprogramme \u00e4ndern das Dateidatum aber beim Speichern auf den Zeitstempel im Moment des Speicherns. Eine Option wie zum Beispiel Originalzeit des Bildes beim Speichern beibehalten haben nur wenige Programme.Mit dem ExifTool ist es aber kein Problem, das Datum wieder [&hellip;]<\/p>\n","protected":false},"author":50,"featured_media":10045,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[51,664,4],"tags":[693,692,12,6],"class_list":["post-10044","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-bildbearbeitung","category-bildverwaltung","category-terminal","tag-exiftool","tag-foto","tag-kommandozeile","tag-terminal"],"_links":{"self":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/10044","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/users\/50"}],"replies":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/comments?post=10044"}],"version-history":[{"count":2,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/10044\/revisions"}],"predecessor-version":[{"id":10047,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/10044\/revisions\/10047"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media\/10045"}],"wp:attachment":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media?parent=10044"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/categories?post=10044"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/tags?post=10044"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}