项目作者: stefanbc

项目描述 :
A simple aspect ratio calculator
高级语言: HTML
项目地址: git://github.com/stefanbc/arca.git
创建时间: 2016-06-02T20:58:10Z
项目社区:https://github.com/stefanbc/arca

开源协议:MIT License

下载


arca

Build Status Dependency Status Code Climate Built with Grunt

A simple aspect ratio calculator

While resizing images, use this calculator to preserve their aspect ratio. The formula used by this app is:

(h1 / w1) x w2 = h2

Where h1 is the original height, w1 is the original width, w2 is the new width and h2 is the new height.

Screenshot

Installation

Just download the latest release and place the contents of the bin folder on your local or web server.

Preview a demo HERE.

Requirements

  • Any local or web server

Developers

Make sure you have Node 0.10^ and npm installed. You’ll need to have Grunt and Sass installed. Use these commands:

  1. npm install -g grunt-cli
  2. gem install sass

You can then install all the project dependencies using:

  1. npm install

Available Grunt tasks:

  • grunt - will build the whole project.
  • grunt watch - will watch for any file modifications and will build. Will also build on start.
  • grunt test - will test the main app js file using jshint (more tests are coming soon).

For local development you can use

  1. python -m SimpleHTTPServer <specify a port>

and you can check if the build passes using Travis-CI.