Git Product home page Git Product logo

ios-resource-3x2x1x's Introduction

iOS 3x to 2x and 1x

Description

ios-resource-3x2x1x is a shell script which aim to convert 3x resource to 2x and 1x simply. image

VERSION: 1.0.0
USAGE: ./ios-resource-3x2x1x.sh srcdir dstdir

DESCRIPTION:
    This script aim to convert 3x to 2x and 1x.

    srcfile - The source path. Must be 3x.
    dstpath - The destination path where the icons generate to.

    This script is depend on ImageMagick. So you must install ImageMagick first
    You can use 'sudo brew install ImageMagick' to install it

AUTHOR:
    Pawpaw

LICENSE:
    This script follow MIT license.
   
NOTE:
	The dstdir must not locate in srcdir.

EXAMPLE:
    ./ios-resource-3x2x1x.sh ~/input ~/output

Usage

  1. Install ImageMagick

    Before you run this script, please check whether you had install ImageMagick. If you don't have install. Follow this:

     sudo brew install ImageMagick
  2. Clone And Chmod

     git clone https://github.com/smallmuou/ios-resource-3x2x1x
     cd ios-resource-3x2x1x.sh
     chmod 777 ios-resource-3x2x1x.sh.sh
     
  3. Run

StarnetdeMacBook-Pro:ios-icon-generator starnet$ ./ios-resource-3x2x1x.sh ~/Downloads/input ~/Dowload/output [INFO] mkdir /Users/starnet/Downloads/output/2X ... [INFO] mkdir /Users/starnet/Downloads/output/1X ... [INFO] /Users/starnet/Downloads/output/2X/[email protected] ... [INFO] /Users/starnet/Downloads/output/1X/1.jpg ... [INFO] /Users/starnet/Downloads/output/2X/[email protected] ... [INFO] /Users/starnet/Downloads/output/1X/2.jpg ... [INFO] Done PS: You can find out all resource in ~/Download/output directory.

History

  • 1.0.0
    • Support convert 3x to 2x and 1x.

License

This script follow MIT license.

Contact

If you have any question with using it, you can email to me. My email is: [email protected]

ios-resource-3x2x1x's People

Contributors

smallmuou avatar

Watchers

 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.