Giter Site home page Giter Site logo

aspect-ratio's Introduction

README

Note

The compilation of the package aspect-ratio is in preparation. When the package is available on Launchpad, the script as well as the package will be published here.

Especially in photography, it is important to know the aspect ratio of images. It is often desirable to retain the aspect ratio after cropping an image. Some graphic tools allow to keep the aspect ratio while cropping an image other not.

While dealing with old photos from a digital camera I figured out, that the resolution of digital cameras can vary in a wide range [1].

The tool aspect-ratio calculates the underlying aspect ratio from any given resolution in the x- and y-direction. The aspect ratio is output without a line break. This enables the direct use in other scripts or programs.

The calculation is done using the greatest common divisor (GCD) of two integer numbers. If the result does not match the input values, this is due to a suitable aspect ratio. Otherwise, the image is not based on a standard aspect ratio. For example, it has already been edited.

Directory organisation

The script which is base of the tool can be found in SCRIPTS. The milestones of the package can be found in LAUNCHPAD.

Tool aspect-ratio on Launchpad

The tool aspect-ratio is hosted on Launchpad https://launchpad.net/~zentrocdot/+archive/ubuntu/aspect-ratio and can be installed using a PPA or by using the DEB package.

References

[1]. en.wikipedia.org/wiki/List_of_image_resolutions_used_in_digital_cameras

aspect-ratio's People

Contributors

zentrocdot 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.