Showing results for 
Search instead for 
Did you mean: 

Canon 5D IV RAW to Apple IIe image


I have an Apple IIe emulator for my Mac and wanted to start with an image I captured, scale it, convert to black & white and somehow end up with that image saved to a disk (emulator saves files representing 5 1/4" floppies).


I wasn't able to figure out how to write the data directly to a disk image, but came up with the following:


1. Photoshop - crop original RAW.  As the resolution of the IIe is very low, needed a portion of the image that could output a decent result:




2.  Photoshop - scale down to 280 x 192, convert to indexed (B&W) using dithering.  I found a value in the 20s to be good.  Save to a PNG.


3. Write an iOS app to run in the simulator on the Mac that would take the PNG image, scan for runs of pixels that were "on" and spit out AppleSoft BASIC drawing commands.   I could have also created a Mac app for this.




3. A bit over 400 lines of BASIC was generated.  Grabbed in batches of 100, pasted into the emulator and ran.  Saved the partial image.  Cleared the memory, and repeated.  I think the 100 lines of BASIC was around 24 K and didn't want to paste more as that may have hit up against graphics memory.


4. Saved the final image to disk:




Here's the result:





Finally, some file size comparisons for perspective:


  • An Apple IIe hi-res image takes up only 8,192 bytes.
  • The original RAW from the 5D IV is 35,025,671 bytes
  • The cropped PNG (before final scale and B&W conversion) is 798,192 bytes.
  • The B&W PNG that was processed is 7,667 bytes.



EOS 5D IV, EF 50mm f/1.2L, EF 135mm f/2L, 600EX-RT (x6), ST-E3-RT
EOS C70, RF 24-70 f/2.8L IS, EF-EOS R 0.71x
06/30/2022: Service Notice: EOS 70D: Error 70 or Error 80
06/10/2022: Service Notice:UPDATE: Canon Inkjet Printer continuous reboot loop or powering down
06/07/2022: New firmware version 1.3.2 is available for PowerShot G7 X Mark III
06/07/2022: New firmware version 1.0.3 is available for EOS M50 Mark II
05/31/2022: Did someone SAY Badges?
05/26/2022: New firmware version is available for EOS-C500 Mark II
05/26/2022: New firmware version is available for EOS-C300 Mark III
05/10/2022: Keep your Canon gear in optimal condition with a Canon Maintenance Service
05/05/2022: We are excited to announce that we have refreshed the ranking scale within the community!
04/26/2022: New firmware version is available for EOS R5 C
03/23/2022: New firmware version is available for EOS-C70
03/22/2022: New firmware version 1.2.0 is available for PowerShot PICK
03/16/2022: New firmware version 1.5.2 is available for EOS-R5
03/16/2022: New firmware version 1.5.2 is available for EOS-R6
02/09/2022: Share Your Photos is back!
02/07/2022: New firmware version 1.1.1 is available for EOS-R3
02/07/2022: New firmware version 1.6.1 is available for EOS-1DX Mark III
01/13/2022: Community Update. We will be retiring the legacy profile avatars on 01/20/2022. Click this link to read more.
01/05/2022: Welcome to CES 2022!
12/7/2021: New firmware version 1.3.0 is available for Mount Adapter EF-EOS R 0.71x
12/7/2021: New firmware version 1.1.1 is available for CR-N 300
12/7/2021: New firmware version 1.1.1 is available for CR-N 500
12/2/2021: New firmware version 1.1.0 is available for RF 70-200 F4 L IS USM