midi to jpg conversion is not possible in a file conversion sense, on file by file basis. What is however possible is to create a picture of the music sheet generated from the MIDI sample. This can be done with various music composition software, just keep in mind that the resulting picture of the sheet will be just that, picture. If you want to share the music sheet, you might better use the MusicXML format.
Updated: August 16, 2023