snippetbashTip
imgp — Resize and rotate JPEG and PNG images. More information: <https://github.com/jarun/imgp#usage>.
Viewed 0 times
imgpcommandresizeandjpegclirotate
linux
Problem
How to use the
imgp command: Resize and rotate JPEG and PNG images. More information: <https://github.com/jarun/imgp#usage>.Solution
imgp — Resize and rotate JPEG and PNG images. More information: <https://github.com/jarun/imgp#usage>.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}}Code Snippets
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}}Context
tldr-pages: linux/imgp
Revisions (0)
No revisions yet.