How Do You Save / Convert an Image to Be in the Frequency Domain?
A trick would be to use the TIFF format which supports many channels.
For each channel in your original image create 2 channels, one for the magnitude and the other for the phase.

TIFF supports 32 bit hence data will be well preserved.