@aptoma/aoi-smart-crop
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -79,3 +79,3 @@ 'use strict'; | ||
const targetRatio = targetSize.width / targetSize.height; | ||
const areaOfInterest = image.aoi || { | ||
const areaOfInterest = Object.assign({ | ||
x: 0, | ||
@@ -85,3 +85,3 @@ y: 0, | ||
height: image.height | ||
}; | ||
}, image.aoi); | ||
const focusPoint = areaOfInterest.focus || getCenter(areaOfInterest); | ||
@@ -88,0 +88,0 @@ if (imageRatio < targetRatio) { |
@@ -7,3 +7,3 @@ { | ||
}, | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "Helper library for doing smart crops of images based on area of interest data", | ||
@@ -10,0 +10,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23155