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"

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.

有帮助吗?

解决方案

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

sips -z pixelsH pixelsW
sips -Z pixelsWH
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top