Files
oam/knowledge base/resize an image from cli.md
2022-08-24 12:12:21 +02:00

17 lines
301 B
Markdown

# Resize images using the CLI
Leverages `convert` from `imagemagick`.
```sh
convert input.jpg -adaptive-resize 50% output.jpg
# Scale down all images in a folder.
ls -1 | xargs -I{} convert {} -adaptive-resize 50% {}_scaled.jpg
```
Further readings
- [imagemagick]
[imagemagick]: imagemagick.md