《Android资产工作室》当我上传我的 .png 图标时会增加额外的空间,但在使用其内部剪贴画时不会.为什么? [英] "Android Asset Studio" adds extra space when I upload my .png icons, but doesn't when it uses its internal cliparts. Why?

查看:29
本文介绍了《Android资产工作室》当我上传我的 .png 图标时会增加额外的空间,但在使用其内部剪贴画时不会.为什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试为我正在处理的一些 Android 应用程序创建一些漂亮的图标,有人将我引导到Android Asset Studio",这是一个不错的在线工具,可以创建完整的图标包,准备部署到我的(可怕的)碎片化的 Android 项目 res 文件夹.

I'm trying to create some nice icons for some Android APP I'm dealing with, and someone directed me to the "Android Asset Studio", that nice online tool which creates full packs of icons ready to be deployed onto my (horridly) fragmented Android project res folder.

我刚刚访问了它的 URL 来创建我的图标:

I just went to its URL to create my icons:

[截至 2016 年 10 月的 URL 已损坏.显然所有内容都已移入 Android Studio]http://android-ui-utils.googlecode.com/hg/asset-studio/dist/icons-actionbar.html#source.type=image&source.space.trim=1&source.space.pad=0&name=ic_action_stickers&theme=custom&color=000%2C80

[broken URL as of Oct 2016. Apparently everything has moved into Android Studio] http://android-ui-utils.googlecode.com/hg/asset-studio/dist/icons-actionbar.html#source.type=image&source.space.trim=1&source.space.pad=0&name=ic_action_stickers&theme=custom&color=000%2C80

然后我注意到一些令人讨厌的事情:当使用它的内部剪贴画时,它们看起来完美修剪/剪裁/填充(即 0 填充),但是当我尝试上传我简单的透明 .png 文件时,这个工具总是添加无论如何,我的最终图标周围都有一些烦人的填充空间.

Then I noticed something a bit annoying: When using its internal cliparts, they appear perfectly trimmed/clipped/padded (that is, 0 padding), but when I try to upload my simple transparent .png files, this tool always adds some annoying padding space around my final icons, no matter what.

正常吗?我玩过修剪/不修剪"和填充"按钮,但没有运气(它甚至让事情变得更糟).

Is it normal? I've played with "trim/no-Trim" and "padding" buttons, but no luck (it just even makes things a bit worse).

有什么提示吗?我错过了什么吗?

Any hint? Am I missing something?

谢谢.

推荐答案

几天前我做了这个:

http://reiszecke.github.io/AndroidAssetStudioFullsize/

当你选择>>启动器图标<<全尺寸编辑 您将能够在没有任何填充的情况下以全尺寸获取文件.我没有为每个形状都这样做

when you choose >> Launcher icons << Full Size edit you will be able to get your files on full size without any padding. I didn't do it for every shape tho

我需要再次提及它只适用于形状NONE,有点适用于BEVEL,也许适用于CIRCLE

I need to mention again it only works for the shape NONE, a bit for BEVEL and maybe for CIRCLE

我不需要谷歌丑陋的时髦狗耳朵、圆角或 3D 风格的预设.如果您认为自己需要时尚,请使用 photoshop.这就是为什么我说我没有为每个形状都做.我的 mod 的唯一目的是节省您将图标转换为每个图标大小所浪费的时间.与其抱怨,不如自己处理其他形状.代码是公开的,做点什么吧.

I do not need Google's ugly hipster dogears, rounded corners or 3D-style presets. Use photoshop if you think you need to be trendy. This is why I said I did not do it for every shape. The only purpose of my mod is to save the time you would waste converting your icon into every single icon-size. Instead of complaining, just do your own for the other shapes. The code is public, make something of it.

这篇关于《Android资产工作室》当我上传我的 .png 图标时会增加额外的空间,但在使用其内部剪贴画时不会.为什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆