Git Product home page Git Product logo

ii's Introduction

ii

ii(image idea)是一个处理移动端图片的工作套件,推荐在mac osx中运行。

Installation

安装imagemagick

如果你安装了brew,输入以下代码:

$ brew install imagemagick

安装rmagick

$ brew install pkgconfig
$ brew install rmagick

###安装ii

这是安装的最后一步,在终端输入以下命令:

$ gem install ii

Usage

压缩图片

假设需要压缩的图片放在/Users/yuguo/test/_source

/Users/yuguo/test/_source/[email protected] 200%

在命令行中先切换到/Users/yuguo/test/目录(注意,~代表当前的用户目录,这样你就不用输入/Users/yuguo/了):

$ cd ~/test

然后运行ii,如果一切正常的话,你会在/Users/yuguo/test/目录查看到生成的图片:

/Users/yuguo/test/ios/[email protected] 200%
/Users/yuguo/test/ios/source.png 100%
/Users/yuguo/test/Android/drawable-xldpi/source.png 200%
/Users/yuguo/test/Android/drawable-ldpi/source.png 150%
/Users/yuguo/test/Android/drawable-mdpi/source.png 100%

Bug反馈

如有bug,请发起issue

Contributing

  1. Fork it ( https://github.com/[my-github-username]/ii/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

ii's People

Contributors

yuguo avatar

Watchers

 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.