{"id":786,"date":"2012-07-12T17:33:16","date_gmt":"2012-07-13T00:33:16","guid":{"rendered":"http:\/\/thelawlers.com\/Blognosticator\/?p=786"},"modified":"2017-01-01T08:53:56","modified_gmt":"2017-01-01T16:53:56","slug":"mysterious-forces-in-osx-can-change-files-types","status":"publish","type":"post","link":"https:\/\/thelawlers.com\/Blognosticator\/?p=786","title":{"rendered":"Mysterious Forces in OSX appear to change file types (but can\u2019t really)"},"content":{"rendered":"<p><a href=\"https:\/\/thelawlers.com\/Blognosticator\/wp-content\/uploads\/2011\/07\/Blognosticator-Head.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5\" title=\"Blognosticator Head\" src=\"https:\/\/thelawlers.com\/Blognosticator\/wp-content\/uploads\/2011\/07\/Blognosticator-Head.png\" alt=\"\" width=\"252\" height=\"115\" \/><\/a><\/p>\n<p><strong><span style=\"color: #ff0000;\">Note to my kind readers (January, 2017):<br \/>\n<\/span><\/strong><span style=\"color: #ff0000;\"><span style=\"color: #000000;\">The mysterious forces described below no longer seem to work. I have experimented with this in recent months, and have had no luck in repairing JPEGs using this technique. But read on anyway! It will still work with older Mac operating systems\u2026<\/span><\/span><\/p>\n<p>I attended the monthly meeting of the local Macintosh Users Group last night (I am the Treasurer of the group), and listened as a bright young man names Justin Sharp told the audience how to fix things before taking a Mac in for service. It was pretty good stuff.<\/p>\n<p>At one point he was talking about file types, and he mentioned that the Macintosh Operating System will convert photos from one format to another just by changing the suffix of the file.<\/p>\n<p>I was skeptical of this, as I have had to solve problems caused by this same technique for customers and students, and I just couldn\u2019t believe it was true.<\/p>\n<p>His comment was that if you change the .png suffix of a PNG file to .jpg, and click on the \u201cUse .jpg\u201d alert that follows, the file will actually be converted to a JPEG. It seemed preposterous to me. So when I got home I tested it, and in fact it does not work.<\/p>\n<p><a href=\"https:\/\/thelawlers.com\/Blognosticator\/wp-content\/uploads\/2012\/07\/Sure-you-want-to-change.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-787\" title=\"Sure you want to change\" src=\"https:\/\/thelawlers.com\/Blognosticator\/wp-content\/uploads\/2012\/07\/Sure-you-want-to-change.jpg\" alt=\"\" width=\"420\" height=\"159\" srcset=\"https:\/\/thelawlers.com\/Blognosticator\/wp-content\/uploads\/2012\/07\/Sure-you-want-to-change.jpg 420w, https:\/\/thelawlers.com\/Blognosticator\/wp-content\/uploads\/2012\/07\/Sure-you-want-to-change-300x113.jpg 300w\" sizes=\"auto, (max-width: 420px) 100vw, 420px\" \/><\/a><\/p>\n<p><span style=\"color: #0000ff;\"><em>This is the kind of alert you get when you change the suffix of a file from .png to ,jpg. If you check the \u201cUse .jpg\u201d button, it will dutifully change the suffix for you, rendering the file inoperable.<br \/>\n<\/em><\/span><\/p>\n<p><a href=\"https:\/\/thelawlers.com\/Blognosticator\/wp-content\/uploads\/2012\/07\/JPEG-Marker-error.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-789\" title=\"JPEG Marker error\" src=\"https:\/\/thelawlers.com\/Blognosticator\/wp-content\/uploads\/2012\/07\/JPEG-Marker-error.jpg\" alt=\"\" width=\"420\" height=\"162\" srcset=\"https:\/\/thelawlers.com\/Blognosticator\/wp-content\/uploads\/2012\/07\/JPEG-Marker-error.jpg 420w, https:\/\/thelawlers.com\/Blognosticator\/wp-content\/uploads\/2012\/07\/JPEG-Marker-error-300x115.jpg 300w\" sizes=\"auto, (max-width: 420px) 100vw, 420px\" \/><\/a><\/p>\n<p><span style=\"color: #0000ff;\"><em>After you change the suffix to .jpg, then attempt to open the file in Adobe Photoshop, you\u2019ll get this error message.<\/em><\/span><\/p>\n<p>But, I tried a few other variations on this theme, and I discovered that some combinations of photo file types do work this way, just by changing the suffix. I searched the Interwebs and looked high and low for documentation to explain this, and I can\u2019t find any. I did find a blog where Automator is discussed in detail, and it turns out that Automator can convert some files from one type to another without the support of any application. This must be an OS-level tool that Automator calls, and it will convert file types quickly and easily.<\/p>\n<p>So, let\u2019s assume that the OS calls the <em>AppleEvent<\/em> (called an <em>OSAX<\/em>) for a file conversion from PNG to TIFF, executes it on a file, and makes it into a TIFF file. Or, you could do the opposite. I tested this, and it works. It may also be that PNG files and TIFF files have so much in common that all it takes is to change the file suffix to make Photoshop think it\u2019s opening the opposite, and it just works. A happy conicidence?<\/p>\n<p>I tried interlaced PNG files and non-interlaced PNG files. Both work. I tried saving a TIFF file, and changing the suffix to .png. It works.<\/p>\n<p>But, when I tried to change JPEG to TIFF or JPEG to PNG, it will not work.<\/p>\n<p>Here\u2019s a chart of my findings:<\/p>\n<p><a href=\"https:\/\/thelawlers.com\/Blognosticator\/wp-content\/uploads\/2012\/07\/Chart-of-file-conversions1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-790\" title=\"Chart of file conversions\" src=\"https:\/\/thelawlers.com\/Blognosticator\/wp-content\/uploads\/2012\/07\/Chart-of-file-conversions1.png\" alt=\"\" width=\"192\" height=\"153\" \/><\/a><\/p>\n<p>This can be summarized as follows: PNG and TIFF can be converted back and forth by changing the suffix of the file. Nothing else works.<\/p>\n<p>And, it is an interesting phenomenon that I am chalking-up to <em>Mysterious Forces<\/em> at work.<\/p>\n<p>This will not work on Windows.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Note to my kind readers (January, 2017): The mysterious forces described below no longer seem to work. I have experimented with this in recent months, and have had no luck in repairing JPEGs using this technique. But read on anyway! &hellip; <a href=\"https:\/\/thelawlers.com\/Blognosticator\/?p=786\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,25],"tags":[],"class_list":["post-786","post","type-post","status-publish","format-standard","hentry","category-photography","category-software-2"],"_links":{"self":[{"href":"https:\/\/thelawlers.com\/Blognosticator\/index.php?rest_route=\/wp\/v2\/posts\/786","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thelawlers.com\/Blognosticator\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thelawlers.com\/Blognosticator\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thelawlers.com\/Blognosticator\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thelawlers.com\/Blognosticator\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=786"}],"version-history":[{"count":11,"href":"https:\/\/thelawlers.com\/Blognosticator\/index.php?rest_route=\/wp\/v2\/posts\/786\/revisions"}],"predecessor-version":[{"id":2239,"href":"https:\/\/thelawlers.com\/Blognosticator\/index.php?rest_route=\/wp\/v2\/posts\/786\/revisions\/2239"}],"wp:attachment":[{"href":"https:\/\/thelawlers.com\/Blognosticator\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=786"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thelawlers.com\/Blognosticator\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=786"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thelawlers.com\/Blognosticator\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=786"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}