圆形游戏图标导出后变椭圆?检查 SVG 视口比例
用 100×100 的 viewBox 和 200×100 的视口,分辨正常留边、拉伸与裁切。


同一个圆形徽章,设计稿里是圆的,导出的 PNG 却变成椭圆。先检查 SVG 的内部坐标与输出视口,确认变形在哪里发生。
构造两个只有适配规则不同的版本
设 viewBox 为 0 0 100 100,在坐标 (50,50) 放一个半径 40 的实心圆,把输出视口设为 200×100。A 版用 xMidYMid meet,B 版用 none。按规范,A 版等比居中,圆应约为 80×80;B 版横向被放大两倍,约为 160×80。以输出 PNG 的不透明边界近似比较,边缘抗锯齿可能影响一两个像素。
分清留边和裁切
如果填满宽视口比显示全图更重要,可以第三次试 xMidYMid slice。它仍等比缩放,但这个测试圆从 80 放大到 160,高度超过视口,顶部和底部可能被裁掉。留边、椭圆、裁切是三种不同结果;不要为了填满外框就改成非等比适配。
回到发布尺寸复查
核对中间 PNG 的透明边界与最终平台预览。使用应用图标生成器做目标尺寸的图标交付,先核对当前支持的输入格式;如需中间 PNG,就用等比方案栅格化后再上传。若中间文件仍是圆,找后续尺寸调整或布局拉伸,别在 SVG 主文件里反向变形补偿。
推荐使用本站工具

How to Design Better Mobile App Icons for App Store and Google Play
Learn practical app icon design principles for better recognition, stronger store presentation, and cleaner iOS and Android exports.

Best Sound Effects to Create First for an Indie Game Prototype
A practical checklist of the most important game sound effects indie developers should create first, including UI clicks, pickups, hits, rewards, errors, transitions, and completion cues.

App Icon Generator Guide: Create iOS and Android Icons from One Image
Learn how an app icon generator turns one source image into iOS and Android icon sizes, adaptive icons, app store assets, and organized export files.
