Hey guys

Quick question,
What are my chances of being able to convert a txt file on a sever, to a png file?

Say for example I have a txt file with a bunch of pixel information in it... eg:
one pixel = 33ff55
text file contains = 33ff5533ff5533ff5533ff55
(note, output png file will have no transparency)

At the moment I have a server-side drawing app reading each pixel from the txt file, converting the hex codes into rgb, and then drawing a png file pixel by pixel... it works, but it takes wayyy too long...

Anyone have thoughts on this?
Help appriciated

~TheWaste