Mac 自动操作 icns 图片转换器 发表于 2021-01-03 | 更新于 2025-08-28
| 总字数: 479 | 阅读时长: 2分钟 | 浏览量:
Mac 自动操作 制作程序
原理 将 png 转换成 icns 图标目前只能 使用 png 格式 市场上已经有类似的app,image2icon
1 2 3 4 5 6 7 8 9 10 11 12 sips -z 16 16 pic.png --out icons.iconset/icon_16x16.png sips -z 32 32 pic.png --out icons.iconset/icon_16x16@2x.png sips -z 32 32 pic.png --out icons.iconset/icon_32x32.png sips -z 64 64 pic.png --out icons.iconset/icon_32x32@2x.png sips -z 64 64 pic.png --out icons.iconset/icon_64x64.png sips -z 128 128 pic.png --out icons.iconset/icon_64x64@2x.png sips -z 128 128 pic.png --out icons.iconset/icon_128x128.png sips -z 256 256 pic.png --out icons.iconset/icon_128x128@2x.png sips -z 256 256 pic.png --out icons.iconset/icon_256x256.png sips -z 512 512 pic.png --out icons.iconset/icon_256x256@2x.png sips -z 512 512 pic.png --out icons.iconset/icon_512x512.png sips -z 1024 1024 pic.png --out icons.iconset/icon_512x512@2x.png
1 iconutil -c icns icons.iconset -o Icon.icns
自动操作 Mac > 自动操作 > 搜索 shell > 传递输入 > 作为自变量
代码 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 mkdir ${1%/*}/icons.iconset/ sips -z 16 16 $1 --out ${1%/*}/icons.iconset/icon_16x16.png sips -z 32 32 $1 --out ${1%/*}/icons.iconset/icon_16x16@2x.png sips -z 32 32 $1 --out ${1%/*}/icons.iconset/icon_32x32.png sips -z 64 64 $1 --out ${1%/*}/icons.iconset/icon_32x32@2x.png sips -z 64 64 $1 --out ${1%/*}/icons.iconset/icon_64x64.png sips -z 128 128 $1 --out ${1%/*}/icons.iconset/icon_64x64@2x.png sips -z 128 128 $1 --out ${1%/*}/icons.iconset/icon_128x128.png sips -z 256 256 $1 --out ${1%/*}/icons.iconset/icon_128x128@2x.png sips -z 256 256 $1 --out ${1%/*}/icons.iconset/icon_256x256.png sips -z 512 512 $1 --out ${1%/*}/icons.iconset/icon_256x256@2x.png sips -z 512 512 $1 --out ${1%/*}/icons.iconset/icon_512x512.png sips -z 1024 1024 $1 --out ${1%/*}/icons.iconset/icon_512x512@2x.png iconutil -c icns ${1%/*}/icons.iconset -o ${1%/*}/ApplicationStub.icns rm -rf ${1%/*}/icons.iconset/
换个风格
修改图标 转换
修改
快点去批量修改吧!
下载 写好的程序 链接: 密码: btjs
XRSec has the right to modify and interpret this article. If you want to reprint or disseminate this article, you must ensure the integrity of this article, including all contents such as copyright notice. Without the permission of the author, the content of this article shall not be modified or increased or decreased arbitrarily, and it shall not be used for commercial purposes in any way