TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: SVG Resolution

1 点作者 parisianka大约 4 年前
Hello. I use .svg images only for the web. In my software (Affinity Designer), while creating an image, I&#x27;m always asked to choose the file resolution, for example, DPI 300 or DPI 72.<p>The question: Why, if SVG format is scalable vector and does NOT depend on the resolution? What DPI I should choose for web use?<p>Thank you for the precious help!

1 comment

compressedgas大约 4 年前
When exporting to a raster, the product of the inch dimensions and the DPI specifies the raster&#x27;s pixel dimensions.<p>It is this pixel dimensions that matters on the web as it sets the size.<p>Some prefer to leave this out of the SVG and size them with CSS where there are richer options for dynamic sizing.<p>I recommend setting a good default size and then overriding it using CSS.<p>I have seen too many SVG that due to the lack of sizing constraints that would have been imposed by their container end up as wide as the screen and equally tall.
评论 #26590415 未加载