Converting Unix executable photo files

If you have had photos become “Unix executable” format then do the following to convert them to jpeg:

Be sure that you have the files on a disk that is properly formatted for Mac and not for Windows.

Append .jpg to the file name

Open in Preview

In the File menu choose “Export to….”

In the export menu that opens enter the destination, change the file name if you wish, and MOST CRITICALLY be sure that it is saved in the jpeg format because this may not automatically happen.

The saved file then should behave like a normal .jpg

MacBook Air 13″, macOS 14.1

Posted on Dec 14, 2023 4:40 PM

Reply
Question marked as Top-ranking reply

Posted on Dec 15, 2023 7:30 AM

One can obtain a reasonable idea (before guessing) of what the UNIX Executable file format is by its byte signature as illustrated in a list of file signatures. One checks the file for its byte signature like so:


xxd -u -c8 -l8 -g1 filename
00000000: 89 50 4E 47 0D 0A 1A 0A  .PNG....

xxd -u -c8 -l8 -g1 filename
00000000: FF D8 FF E0 00 10 4A 46  ......JF (jpg)

xxd -u -c8 -l8 -g1 filename
00000000: 00 00 00 0C 6A 50 20 20  ....jP (jp2)

xxd -u -c8 -l8 -g1 filename
00000000: 4D 4D 00 2A 00 75 30 08  MM.*.u0. (tif)



18 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Converting Unix executable photo files

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.