圖片顯示不正常時
- 確認
- 解決辦法
You converted an SVG but the typeface is different, parts are missing or it is blank white. Here are causes and remedies for when Convert SVG to PNG's output looks different from the original SVG.
What to check first
- Whether the SVG loads external images or fonts
- Whether the SVG file itself is broken
- How it looks in "Preview"
Steps (fixing)
- 確認 SVG 是否載入了外部圖片或字型。
- If possible, use an SVG with text converted to shapes (outlines).
- Convert again from "Choose one SVG file".
Common symptoms and causes
- The typeface changes: the SVG uses a font not on the device.
- Images don't show: the SVG refers to an external image file.
- Blank white: the background is white and the figure is white, or the shapes lie outside the drawing area.
- Part is missing: the SVG's drawing area (size) setting is smaller than the figure.
- Cannot convert: there is an error in the SVG's syntax.
Converting text to shapes
When exporting an SVG from design software, choosing a setting like "outline text" or "convert text to shapes" removes dependence on fonts.
Embedding external images
If the SVG refers to a separate image file, export with the setting that embeds the image inside the SVG.
Checking the drawing area
Check that the size specification in the SVG (width, height, viewing area) includes the whole figure.
Checking another way
- Open the SVG directly in a browser and check the display
- Open it in other software and see whether it breaks the same way
- If it breaks, the problem is in the SVG itself
A useful approach
Opening the SVG in design software and saving it again may fix it.
示例
A handmade SVG became a PNG with only the text in a different font. After outlining the text in design software and exporting again, the appearance matched.
Common stumbling blocks
- The size is extremely small: the SVG has no size specification.
- Colours change: an unusual way of specifying colour.
Frequently asked questions
Does conversion change the original SVG?
No. A new PNG is merely made.
小結
Dependence on external fonts and images is the main cause. Convert text to shapes and embed images before converting.
使用「把 SVG 轉換成 PNG」(免費)搭配使用的工具
- 轉換圖片格式(JPG、PNG、WebP):把圖片轉換為 JPG、PNG 或 WebP,可一次轉換多張。
- 按畫素調整圖片大小:按寬度、高度或百分比調整圖片大小。
- 製作網站圖示(Favicon):用一張圖片製作一整套網站圖示。