🖼️ JSON 转图片Convert JSON to Image
把 JSON 渲染成可下载的 PNG:可调字号、内边距和背景色。本地处理。可设置「字号」、「内边距」、「背景色」、「文字色」。Render JSON into a downloadable PNG with font size, padding and background colour. Processed locally. Settings: Font size, Padding, Background, Text.
使用说明与常见问题How-to & FAQ
「JSON 转图片」是什么?What is the Convert JSON to Image tool?
把 JSON 渲染成可下载的 PNG:可调字号、内边距和背景色。本地处理。可设置「字号」、「内边距」、「背景色」、「文字色」。Render JSON into a downloadable PNG with font size, padding and background colour. Processed locally. Settings: Font size, Padding, Background, Text.
如何使用「JSON 转图片」?How do I use the Convert JSON to Image tool?
在「JSON 转图片」中,按需设置「字号」、「内边距」、「背景色」、「文字色」等选项,然后点击「生成」、「下载 PNG」按钮即可。In the Convert JSON to Image: Set "Font size", "Padding", "Background", "Text", then click "Generate", "Download PNG".
能导出透明背景的 PNG 吗?Can it export a PNG with a transparent background?
不能。画布会先用所选的背景色铺满再绘制文字,导出的 PNG 没有透明区域。可以把背景色设成与目标页面相同的颜色。No. The canvas is filled with the chosen background colour before the text is drawn, so the PNG has no transparent areas. Set the background colour to match the page where you will use the image.
很长或很宽的 JSON 会被截掉吗?Is long or wide JSON cut off?
不会悄悄截掉。超过 3000 px 宽的行会自动换行(用 ↪ 标出接续);总高度超过 10000 px 时不生成图片,并提示需要多少行、能放多少行。改了内容或任何选项都会自动重新生成,下载的总是当前设置的图片。Nothing is cut off silently. Lines wider than 3000 px wrap (marked with ↪); if the total height would exceed 10000 px no image is made and a message says how many lines are needed and how many fit. Editing the text or any option regenerates automatically, so the download always matches the current settings.
大数字和重复键会怎样?What about big numbers and duplicate keys?
数字按原文保留,不经过 JavaScript 浮点:12345678901234567890、1e400、1.50 原样输出,不会变成 12345678901234567000、Infinity 或 1.5。重复的键按 JSON 规则保留最后一个值,并在结果下方提示是哪个键。语法错误会写出第几行第几列。Numbers are kept exactly as written, with no JavaScript floating-point step: 12345678901234567890, 1e400 and 1.50 come out unchanged instead of 12345678901234567000, Infinity or 1.5. Duplicate keys keep the last value, as JSON parsers do, and a notice below the result names the key. Syntax errors give the line and column.
有哪些选项可以调整?What options can I adjust?
「JSON 转图片」的设置:「字号」默认 13;「内边距」默认 20;「背景色」默认 #ffffff;「文字色」默认 #111111。每次生成结果都按当前设置处理。Settings in the Convert JSON to Image — "Font size" default 13; "Padding" default 20; "Background" default #ffffff; "Text" default #111111. The result always uses the current settings.
代码或数据会被上传吗?Is my code or data uploaded?
不会。「JSON 转图片」完全用 JavaScript 在本地运行,适合处理含有密钥、内部接口等敏感内容的数据。No. The Convert JSON to Image runs entirely in local JavaScript, so it is safe for data containing keys or internal endpoints.
「JSON 转图片」免费吗?需要注册吗?Is the Convert JSON to Image free? Do I need an account?
「JSON 转图片」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The Convert JSON to Image is completely free with no sign-up or install and works on phones and desktops; what you enter is processed only in your browser.