{"id":15843,"date":"2019-12-15T09:44:21","date_gmt":"2019-12-15T14:44:21","guid":{"rendered":"http:\/\/scruss.com\/blog\/?p=15843"},"modified":"2019-12-15T09:44:27","modified_gmt":"2019-12-15T14:44:27","slug":"adding-the-date-to-sony-mavica-fd-91-images","status":"publish","type":"post","link":"https:\/\/scruss.com\/blog\/2019\/12\/15\/adding-the-date-to-sony-mavica-fd-91-images\/","title":{"rendered":"Adding the date to Sony Mavica FD-91 images"},"content":{"rendered":"\n<p>20 years ago, this was one state-of-the-art brick:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"340\" height=\"240\" src=\"https:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2019\/12\/fd91_front_angle.jpg\" alt=\"\" class=\"wp-image-15845\" srcset=\"https:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2019\/12\/fd91_front_angle.jpg 340w, https:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2019\/12\/fd91_front_angle-320x226.jpg 320w, https:\/\/scruss.com\/wordpress\/wp-content\/uploads\/2019\/12\/fd91_front_angle-160x113.jpg 160w\" sizes=\"auto, (max-width: 340px) 100vw, 340px\" \/><figcaption>Sony Mavica FD-91: a camera with a floppy drive, or a Sovet brutalist monument? Discuss (briefly)<\/figcaption><\/figure>\n\n\n\n<p>The only way to get pictures from it is via the floppy disk drive on the side. Then you&#8217;ve got a bunch of images with 8.3 filenames and the only metadata being the date saved from the camera&#8217;s clock. I&#8217;d <a href=\"https:\/\/scruss.com\/blog\/2019\/04\/13\/digital-photo-archaeology-featuring-hardware-drm-from-the-crypt\/\">written about it before<\/a>, but I had an <a href=\"https:\/\/www.tpug.ca\/world-of-commodore\/world-of-commodore-2019\/about\/\">event<\/a> that I wanted to <a href=\"https:\/\/www.flickr.com\/photos\/scruss\/albums\/72157712161256903\">record with a suitable camera<\/a>, so adding some metadata to the pictures became important.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">#!\/bin\/bash\n# mavicafix - add some basic exif info to MVC-FD91 images\n# scruss - 2019-12\n\njhead -mkexif  \"$@\"\njhead -ta+5:00 \"$@\"\nexiftool -Make='Sony' -Model='MVC-FD91' -Orientation=1 -n \"$@\"\njhead -ft \"$@\"\nrename '$_=lc($_);' \"$@\"<\/pre>\n\n\n\n<p>What it does:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>uses <a href=\"https:\/\/www.sentex.ca\/~mwandel\/jhead\/\">jhead<\/a> to add a minimal EXIF header containing the file modification time<\/li><li>corrects that time (I think the Mavica expects it in UTC) to my local time<\/li><li>adds basic make\/model\/which-way-up data using <a href=\"https:\/\/exiftool.org\/\">exiftool<\/a><\/li><li>Corrects the file modification time back to the stored EXIF value<\/li><li><a href=\"https:\/\/metacpan.org\/release\/File-Rename\">rename<\/a>s the files to all lower case.<\/li><\/ol>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>20 years ago, this was one state-of-the-art brick: The only way to get pictures from it is via the floppy disk drive on the side. Then you&#8217;ve got a bunch of images with 8.3 filenames and the only metadata being the date saved from the camera&#8217;s clock. I&#8217;d written about it before, but I had [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"Adding the date to Sony Mavica FD-91 images (only 20 years late, Linux)","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}},"categories":[2],"tags":[29,730,270,3193,230],"class_list":["post-15843","post","type-post","status-publish","format-standard","hentry","category-goatee-stroking-musing-or-something","tag-camera","tag-floppy","tag-linux","tag-metadata","tag-sony"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pQNZZ-47x","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/posts\/15843","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/comments?post=15843"}],"version-history":[{"count":2,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/posts\/15843\/revisions"}],"predecessor-version":[{"id":15847,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/posts\/15843\/revisions\/15847"}],"wp:attachment":[{"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/media?parent=15843"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/categories?post=15843"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/scruss.com\/blog\/wp-json\/wp\/v2\/tags?post=15843"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}