Files
oam/knowledge base/resize an image from cli.md
2023-07-09 20:48:18 +02:00

360 B

Resize images using the CLI

Leverage convert from imagemagick:

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