Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

aspectify

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aspectify

Converts one or more images to a given aspect ratio by cropping

latest
Source
npmnpm
Version
2.0.1
Version published
Weekly downloads
10
Maintainers
1
Weekly downloads
 
Created
Source

aspectify

Converts one or more images to a given aspect ratio by cropping.
Requires node.js >= 14.

Installation

npm install -g aspectify

Usage

Usage
  $ aspectify <...files>

Options
  -a, --aspect       Aspect ratio to use (eg: 16:9, 4:3, 1.77) - default is 16:9
  -o, --output       Output filename (default: <filename>.<aspect>.<ext>)
  -r, --replace      Replace the original file
  -w, --max-width    Max width of the image
  -h, --max-height   Max height of the image
  -c, --concurrency  Maximum number of crops to perform simultaneously
  -v, --verbose      Be verbose about operations performed

Examples
  $ aspectify you.jpg
  $ aspectify -o target.png source.png
  $ aspectify -r replace-me.webp
  $ aspectify 1.jpg 2.jpg 3.jpg
  $ aspectify -c 3 *.jpg
  $ apectify -a 16:10 -r -w 2000 *.jpg

License

MIT © Espen Hovlandsdal

Keywords

aspect-ratio

FAQs

Package last updated on 05 Apr 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts