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

301 B

Resize images using the CLI

Leverages convert from imagemagick.

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