commands.sh

imgp

linux

Resize and rotate JPEG and PNG images.

More info →

Options (2)

-x, --resboolean

Convert single images and/or whole directories containing valid image formats

Example: imgp {{[-x|--res]}} {{1366x1000}} {{path/to/directory}} {{path/to/file}}
-o, --rotateboolean

Rotate an image clockwise by 90 degrees

Example: imgp {{[-o|--rotate]}} {{90}} {{path/to/file}}

Examples (3)

Convert single images and/or whole directories containing valid image formats

imgp [-x|--res] 1366x1000 path/to/directory path/to/file

Scale an image by 75% and overwrite the source image to a target resolution

imgp [-x|--res] 75 z-w path/to/file

Rotate an image clockwise by 90 degrees

imgp [-o|--rotate] 90 path/to/file
made by @shridhargupta | data from tldr-pages