I used NPT to Compression fittings when I initially altered my IR compressor for the after cooler. I had placed the aftercooler in picture above between the pump and tank.
I double-flared the tubing for the compression fitting below.
I then read through this rather infamous thread below on aftercooler placement, and restored my compressor back to original design and the aftercooler is now after the tank.