Skip to content

Releases: Turistforeningen/node-aspectratio

v2.1.1

27 Jul 22:01
Compare
Choose a tag to compare

Deprecation Warning:

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

v2.1.0

27 Jul 21:58
Compare
Choose a tag to compare

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

27 Jul 21:58
Compare
Choose a tag to compare

Breaking Change:

  • Return crop offset from top left corner (fdc0a01)

Documentation:

  • Fix order of height and width parameters (df006d6)

v1.0.3

27 Jul 21:56
Compare
Choose a tag to compare

Changes:

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

v1.0.2

10 Apr 21:10
Compare
Choose a tag to compare

Changes:

  • Add documentation to README

v1.0.1

10 Apr 21:11
Compare
Choose a tag to compare

Bux fixes:

  • JSHint all the things!

v1.0.0

10 Apr 21:11
Compare
Choose a tag to compare

New features:

  • aspect.fixed()