Direct png to mid conversion is most likely not possible, considering that PNG images cannot be converted to MIDI music. Nonetheless some users might be actually trying to recover or convert scanned music scores to MIDI music.
It is likely that is very complicated procedure and would require OCR software with capability to recognize music scores. We unfortunately do not have information about any such software solution yet, if you know any, please let us and other know in the discussion below.