Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jopemachine/alfred-squoosh
Convert images through Squoosh in Alfred 4
https://github.com/jopemachine/alfred-squoosh
alfred-workflow alfy image-conversion image-converter libsquoosh squoosh
Last synced: about 2 months ago
JSON representation
Convert images through Squoosh in Alfred 4
- Host: GitHub
- URL: https://github.com/jopemachine/alfred-squoosh
- Owner: jopemachine
- License: mit
- Created: 2021-11-03T02:06:18.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-02-16T17:42:38.000Z (almost 3 years ago)
- Last Synced: 2024-09-19T01:28:47.061Z (4 months ago)
- Topics: alfred-workflow, alfy, image-conversion, image-converter, libsquoosh, squoosh
- Language: JavaScript
- Homepage:
- Size: 1.53 MB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# alfred-squoosh
> Convert images through Squoosh in Alfred 4
[![NPM download total](https://img.shields.io/npm/dt/alfred-squoosh)](http://badge.fury.io/js/alfred-squoosh)
[![NPM version](https://badge.fury.io/js/alfred-squoosh.svg)](http://badge.fury.io/js/alfred-squoosh)
[![MIT license](https://img.shields.io/badge/License-MIT-blue.svg)](https://lbesson.mit-license.org/)
[![PR's Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat)](http://makeapullrequest.com)
[![GitHub issues](https://img.shields.io/github/issues/jopemachine/alfred-squoosh.svg)](https://GitHub.com/jopemachine/alfred-squoosh/issues/)![demo](./demo.gif)
## Install
```
$ npm install --global alfred-squoosh
```*Requires [Node.js](https://nodejs.org) 12+ and the Alfred [Powerpack](https://www.alfredapp.com/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](./config.png)
### 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](https://github.com/GoogleChromeLabs/squoosh) - Image compression web app that reduces image sizes through numerous formats.
## License
MIT © [jopemachine](https://github.com/jopemachine)