V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
buobuk
V2EX  ›  问与答

mac的sips命令用法问题

  •  
  •   buobuk · 2014-02-02 14:38:39 +08:00 · 4243 次点击
    这是一个创建于 3735 天前的主题,其中的信息可能已经有所发展或是发生改变。
    sips -Z 600 *.jpg

    这个批处理,应该是全部转化为宽度为600,高度自适的图片,可是我在10.9.1下使用时,却是转为最大边为600的图片.

    有没有常用的同学,指导一下?
    3 条回复    1970-01-01 08:00:00 +08:00
    buobuk
        1
    buobuk  
    OP
       2014-02-02 15:44:16 +08:00
    @Livid 你前几天不是在介绍这货吗?
    lanceli
        2
    lanceli  
       2014-02-02 15:53:57 +08:00
    -Z pixelsWH
    --resampleHeightWidthMax pixelsWH
    Resample image so height and width aren't greater than specified size.

    -Z 是宽高不超过600

    如果你希望指定宽度为600, 用

    --resampleWidth pixelsW
    Resample image to specified width.
    alexrezit
        3
    alexrezit  
       2014-02-02 17:49:30 +08:00
    请参考 manual.
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   4824 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 01:12 · PVG 09:12 · LAX 18:12 · JFK 21:12
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.