Install Inscape with Python support
Export trace as dxf from Inkscape acording tutorial: How to create a GCode file from a JPG or DXF.
Open in LibreCAD do what is neccesary scale move etc.
Export as MakerCAM SVG.
Import SVG in FlatCAM.
Continue in FlatCAM.
If you want to use DXF2GCODE you have to export from Inkscape without LWPOLYLINE.
How to create a GCode file from a JPG or DXF
apt-get install python-tk python-imaging-tk
Alternatively using pip
pip install python-tk pillow