Skip to content
This repository was archived by the owner on May 1, 2025. It is now read-only.

Releases: Turistforeningen/node-aspectratio

v2.1.1

Choose a tag to compare

@Starefossen Starefossen released this 27 Jul 22:01

Deprecation Warning:

  • aspect.fixed() has been deprecated; use aspect.crop() instead (d46a949)

v2.1.0

Choose a tag to compare

@Starefossen Starefossen released this 27 Jul 21:58

New Features:

  • Add support for forced aspect ratio orientation (6a83908)

By default #crop() will match the orientation of the original image unless a forced orientation is given on the follwing format: x:y!z where z is the orientation (v for vertical, or h for horizontal).

var crop = aspect.crop(2048, 768, '4:3!v');

v2.0.0

Choose a tag to compare

@Starefossen Starefossen released this 27 Jul 21:58

Breaking Change:

  • Return crop offset from top left corner (fdc0a01)

Documentation:

  • Fix order of height and width parameters (df006d6)

v1.0.3

Choose a tag to compare

@Starefossen Starefossen released this 27 Jul 21:56

Changes:

  • Fix link to LICENSE (2a34735)
  • Update documentation in README

v1.0.2

Choose a tag to compare

@Starefossen Starefossen released this 10 Apr 21:10

Changes:

  • Add documentation to README

v1.0.1

Choose a tag to compare

@Starefossen Starefossen released this 10 Apr 21:11

Bux fixes:

  • JSHint all the things!

v1.0.0

Choose a tag to compare

@Starefossen Starefossen released this 10 Apr 21:11

New features:

  • aspect.fixed()