stefanbc / arca

A simple aspect ratio calculator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

npm install -g grunt-cli
gem install sass

You can then install all the project dependencies using:

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

python -m SimpleHTTPServer <specify a port>

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

About

A simple aspect ratio calculator

License:MIT License


Languages

Language:HTML 34.7%Language:CSS 28.1%Language:CoffeeScript 17.0%Language:JavaScript 12.8%Language:Shell 7.4%