GRAY has no header
A GRAY file is just a stream of raw pixel values (grayscale samples) with no width, height or color information stored inside. Anything opening it has to be told the exact dimensions and layout separately — so it isn't a portable image you can simply convert to.