AppIconResizer

1.0.0

Renders a png file into the different sizes Xcode needs for App Icons
num42/icon-resizer-swift

What's New

2022-02-10T13:53:38Z

AppIconResizer

License

AppIconResizer renders a given app icon png file into the different sizes Xcode needs for iOS projects in pure Swift, with no special dependencies on external tools. It also generates the required folder structure and json files.

Minimum iOS Version supported is iOS 10.0

Installation

mint install num42/icon-resizer-swift

PRs for additional installation methods welcome!

Usage

Examples

mint run icon-resizer-swift icon-resizer-swift --devices iphone,ipad inputIcon.png

Resizes inputIcon.png to iPhone and iPad sizes.

mint run icon-resizer-swift icon-resizer-swift --devices iphone --badge badge.png --targetPath /Users/steve/dev/icons inputIcon.png

Resizes inputIcon.png to iPhone sizes with badge badge.png and saves it to /Users/steve/dev/icons.

Just run the tool to get all available options:

> mint run icon-resizer-swift icon-resizer-swift
🌱  Using num42/icon-resizer-swift 1.0.0 from Mintfile.
🌱  icon-resizer-swift 1.0.0 already installed
🌱  Running icon-resizer-swift 1.0.0...
Arguments:

    inputPath - The path of your input app icon.

Options:
    --devices [default: all] - The devices you need app icons for. Valid devices are iphone, ipad, watch and marketing. Use multiple devices by separating them with a comma.
    --badge - Use this if you want a badge rendered on top of your app icon. Just give the path to the badge PNG.
    --targetPath [default: /Users/admin/dev/Apps/template-app-beta-ios] - The path that the xcassets folder structure and app icons will be written to. If no path is given by the user, icons are written into the current path.

Related tools

Description

  • Swift Tools 5.0.0
View More Packages from this Author

Dependencies

Last updated: Fri Mar 15 2024 12:41:18 GMT-0900 (Hawaii-Aleutian Daylight Time)