Livid
408.15D
532.07D
V2EX  ›  macOS

OS X 下是否有什么命令行的可以用到 GPU 能力的图片尺寸调整工具?

  •  
  •   Livid ·
    PRO
    · Jan 31, 2014 · 3857 views
    This topic created in 4685 days ago, the information mentioned may be changed or developed.
    4 replies  •  1970-01-01 08:00:00 +08:00
    Livid
    Livid
    MOD
    OP
    PRO
    Jan 31, 2014
    1
    看来我们还是处于异构计算的早期阶段:

    https://github.com/Homebrew/homebrew/pull/23826
    Livid
    Livid
    MOD
    OP
    PRO
    Jan 31, 2014
    2
    找到一个神器 sips,使用 CoreImage 来完成对图片的常见调整:

    https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/sips.1.html
    alexrezit
    alexrezit
    Jan 31, 2014❤️1
    3
    @Livid
    刚想说 sips. 系统自带:
    $ man sips
    Livid
    Livid
    MOD
    OP
    PRO
    Jan 31, 2014❤️1
    4
    对同一张图片进行的同一个处理:

    Python 的 wand:

    real 0m0.412s
    user 0m0.371s
    sys 0m0.037s

    sips:

    real 0m0.040s
    user 0m0.031s
    sys 0m0.008s

    CoreImage 确实给力。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2499 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 10:48 · PVG 18:48 · LAX 02:48 · JFK 05:48
    ♥ Do have faith in what you're doing.