First, it requires axodraw4j.sty.
Second, “latex fig.tex” to generate a dvi file.
Third, download the dvieps tool and run “dvieps fig.dvi” to get an eps file. (or use dvips fig.dvi -E -o fig.eps)
Last, download the convert tool and run “convert -density 600×600 fig.eps -quality 85 fig.jpg”