Linux command
imgp 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
Resize
imgp -x [1366x1000] [path/to/directory] [path/to/file]
Scale
imgp -x [75] -w [path/to/file]
Rotate
imgp -o [90] [path/to/file]
说明
imgp is a fast, command-line image resizer and rotator for JPEG and PNG files. It can process single files or entire directories, making batch operations efficient. The tool preserves aspect ratio by default when resizing and can process images in parallel for improved performance. It maintains EXIF orientation metadata and supports both percentage-based scaling and absolute resolution targets.
参数
- -x, --res _RES_
- Target resolution (WxH) or scale percentage
- -o, --rotate _DEGREES_
- Rotate image clockwise (90, 180, 270)
- -w, --overwrite
- Overwrite source images
- -q, --quality _VALUE_
- JPEG quality (1-95, default 75)
- -n, --enlarge
- Allow enlarging images
- -e, --erase
- Remove EXIF metadata
- -c, --convert
- Convert between PNG and JPEG
FAQ
What is the imgp command used for?
imgp is a fast, command-line image resizer and rotator for JPEG and PNG files. It can process single files or entire directories, making batch operations efficient. The tool preserves aspect ratio by default when resizing and can process images in parallel for improved performance. It maintains EXIF orientation metadata and supports both percentage-based scaling and absolute resolution targets.
How do I run a basic imgp example?
Run `imgp -x [1366x1000] [path/to/directory] [path/to/file]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -x, --res _RES_ do in imgp?
Target resolution (WxH) or scale percentage