Thanks for the reply back.
Yes, it happens with batch export as well. I've tried importing as jpeg and png and get the same results after exporting. And I've tried both win64 and win32.
Eureka! I figured it out!
I'm not able to preview the exported image. But once I import it into Gamemaker, I'm able to res it up to say 200% and it retains all the pixels.
Great software :)