V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
xLzgkddTywk9ALsX
V2EX  ›  问与答

mac的sips命令用法问题

  •  
  •   xLzgkddTywk9ALsX · Feb 2, 2014 · 4720 views
    This topic created in 4473 days ago, the information mentioned may be changed or developed.
    sips -Z 600 *.jpg

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

    有没有常用的同学,指导一下?
    3 replies    1970-01-01 08:00:00 +08:00
    xLzgkddTywk9ALsX
        1
    xLzgkddTywk9ALsX  
    OP
       Feb 2, 2014
    @Livid 你前几天不是在介绍这货吗?
    lanceli
        2
    lanceli  
       Feb 2, 2014
    -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  
       Feb 2, 2014
    请参考 manual.
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   800 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 21:55 · PVG 05:55 · LAX 14:55 · JFK 17:55
    ♥ Do have faith in what you're doing.