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: 3 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 (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-02-16T17:42:38.000Z (over 3 years ago)
- Last Synced: 2024-12-09T22:44:33.551Z (10 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
[](http://badge.fury.io/js/alfred-squoosh)
[](http://badge.fury.io/js/alfred-squoosh)
[](https://lbesson.mit-license.org/)
[](http://makeapullrequest.com)
[](https://GitHub.com/jopemachine/alfred-squoosh/issues/)
## 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.

### 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)