It depends on the file type you're starting with. If you're starting with a .jpg file, the simplest way would be to save that file as a bitmap (.bmp), and then just change the extension to .pes. They're nearly identical files.
There is a free program called JPG/JPEG Photo Converter that claims to be able to convert a jpg file for you, but I have never used it.