0.0.3 • Published 2 years ago

alfred-squoosh v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

alfred-squoosh

Convert images through Squoosh in Alfred 4

NPM download total NPM version MIT license PR's Welcome GitHub issues

demo

Install

$ npm install --global alfred-squoosh

Requires Node.js 12+ and the Alfred Powerpack.

Usage

In Alfred, select image files and turn up the file window, type squ, and Enter.

Config

You can change converter's setting in your config.

config

width

Type: Number

Required: false

If you want to resize your image, set this value.

When either width or height is specified, the image resized to specified size keeping aspect ratio.

height

Type: Number

Required: false

If you want to resize your image, set this value.

When either width or height is specified, the image resized to specified size keeping aspect ratio.

format

Type: String

Required: true

Default: webp

quality

Type: Number

Required: true

Default: 100

dest

Type: String

Required: false

Default: process.cwd()

Related links

  • squoosh - Image compression web app that reduces image sizes through numerous formats.

License

MIT © jopemachine

0.0.3

2 years ago

0.0.2

3 years ago

0.0.1

3 years ago