Files
oam/knowledge base/resize an image from cli.md
2023-07-09 14:49:46 +02:00

17 lines
316 B
Markdown

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