linux - 终端中的 Sips 命令不起作用 - "Error 4: no file was specified"

标签 linux bash command-line terminal sips

尝试直接从命令行为 Web 项目调整一些 img 的大小。我不是终端专家,但我通常使用 sips -z maxWidth# nameofimg.jpg"

我在这里输入的内容:

mycomputer$ sips -z 650 slideshow1.jpg
Error 4: no file was specified
Try 'sips --help' for help using this tool

我在正确的目录中,其中有一个名为 slideshow1.jpg 的文件。还有什么可能出错?在此先感谢您的帮助。

最佳答案

来自manpage我们可以看到有两个版本,-z-Z

sips -z pixelsH pixelsW
sips -Z pixelsWH

关于linux - 终端中的 Sips 命令不起作用 - "Error 4: no file was specified",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23547149/

相关文章:

Linux awk 命令不能正确打印整数?

linux - linux 内核版本 3.2 中的 init_MUTEX 去了哪里?

shell - Docker:在容器中运行的spigot控制台上执行命令

linux - 查找带有重音字符的 unix 文件

linux - Ubuntu JeOS 适合生产用途吗?

Bash在执行前将引号插入字符串

regex - 我需要在 sed 命令行中引用什么?

Bash 选择没有标签的菜单格式

C 程序帮助使用 getopt 和命令行参数在 Unix/Linux 中打开文件

java - 在代码 : Implementation of "database" where a query and result is obtained from proprietary CLI commands 中表示命令行界面命令