终端中的Sips命令不起作用 - “错误4:未指定文件”

时间:2023-01-16 22:07:31

Trying to resize some imgs for web project direct from command line. I'm no terminal expert, but I normally use sips -z maxWidth# nameofimg.jpg"

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

What I typed here:

我在这里输入的内容:

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

I am in the correct directory, and have a file name slideshow1.jpg in there. What else could be going wrong? Thanks in advance for help.

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

1 个解决方案

#1


1  

From the manpage we can see that there are two versions, -z and -Z.

从联机帮助页我们可以看到有两个版本,-z和-Z。

sips -z pixelsH pixelsW
sips -Z pixelsWH

#1


1  

From the manpage we can see that there are two versions, -z and -Z.

从联机帮助页我们可以看到有两个版本,-z和-Z。

sips -z pixelsH pixelsW
sips -Z pixelsWH