MeshCAM can convert a jpg to an .stl, if that's what your looking to do? www.meshcam.com
Are you talking about 2D engraving, or 3D carving? An .stl file is a 3D model composed of triangles. Most .dxf's used for machining are 2D, but can contain 3D objects as well?