简体   繁体   English

Quasar Icon Genie CLI 将图标从方形裁剪为矩形

[英]Quasar Icon Genie CLI crops icons from square to rectangle

How can I omit the cropping?我怎样才能省略裁剪? I have an icon 512x512 I pass it to Icon Genie CLI and generate icons for my Capacitor app.我有一个 512x512 的图标,我将它传递给 Icon Genie CLI 并为我的 Capacitor 应用程序生成图标。 I use the command icongenie generate -m capacitor -i /path/to/source/icon.png .我使用命令icongenie generate -m capacitor -i /path/to/source/icon.png In result I get my icons cropped to rectangle and for ios it has a white background.结果,我将图标裁剪为矩形,而对于 ios,它具有白色背景。 Here is example of my input (512x512):这是我的输入示例 (512x512):

输入

Here is example of my output (AppIcon-512@2x):这是我的输出示例 (AppIcon-512@2x):

在此处输入图片说明

I just came across this as well.我也刚遇到这个。

I used the following flag per the docs :我根据文档使用了以下标志:

--skip-trim           Do not trim the icon source file

The result matches the expected square input结果与预期的平方输入匹配

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM