Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aptoma/aoi-smart-crop

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aptoma/aoi-smart-crop - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

4

lib/crop.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc