Code Monkey home page Code Monkey logo

macosappiconresizer's Introduction

macOS App Icon Resizer

Bash script which generates all power-of-2 sized images down to 16x16 (default) from an input image. This is useful if you need to frequently convert a high-resolution image into multiple half-sized variants. In particular, it can be used to quickly generate draft icon files for macOS applications.

Example

The script takes two arguments:

  1. The size for the largest image you want to create (should be a power of 2 bigger than 16)
  2. The path to the full-size image file. The input image should be a raster format with a 1:1 aspect ratio.

./AppIconResizer.sh 1024 MyFullSizeIcon.png

Would generate all power-of-2 size images from MyFullSizeIcon.png starting with 1024x1024 down to 16x16px. New images will be placed alongside the original, with the dimension appended to the name.

MacOSAppIconResizerTerminalDemo

Before:

demoBefore

After:

demoAfter

Notes

This is a general-purpose script which is intended for working with draft icons or other developer resizing needs. When shipping the final icons for your polished macOS application, you should be customizing the icon visually for each size and for retina or non-retina displays. More info: https://developer.apple.com/library/content/documentation/UserExperience/Conceptual/OSXHIGuidelines/Designing.html

Author

Matt Reagan - Website: http://sound-of-silence.com/ - Twitter: @hmblebee

License

Source code and related resources are Copyright (C) Matthew Reagan 2016. The source code is released under the MIT License.

macosappiconresizer's People

Contributors

matthewreagan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.