It's not a sensible question, png is a graphics file, tap is a gcode file, there are many ways to process a png to end up with a tap file.
The best way is to describe what you are trying to achieve.