LaTeX数学公式变成图片

以 GET 方式

1. convert latex equation into svg image: /...
2. convert latex equation into png image: /png/...
3. convert latex equation into jpg image: /jpg/...
4. convert text into svg image: /2svg/...
5. show text path d for svg: /2path/...

以 POST 方式

6. post 表单: formula=..., height=100, format=png/jpg
7. post json, {"formula": "...", "height": 300, "format": "png/jpg"}

以 PUT 方式

8. put json数据, {"formula": "...", "height": 300, "format": "png/jpg"}
使用模块: MathJax, sharp. NodeJS version: v24.10.0
format (png/jpg/svg):
height for png or jpeg:
公式: