In order to create an embroidery design (such as the .pec file for Brother stitching machines), you need to use a special embroidery software with a digitizing function, ie. a function that allows users to create vector based designs from bitmap pictures.
Even when jpeg to pec conversion is finished, manual tweaking is usually required by users with experience with embroidery design, because the digitizing function alone is not perfect.