Apple's Automator: compression settings for jpg?

前端 未结 5 1828
滥情空心
滥情空心 2021-02-04 12:53

When I run Apple\'s Automator to simply cut a bunch of images in their size Automator will also reduce the quality of the files (jpg) and they get blurry.

How can I pr

5条回答
  •  有刺的猬
    2021-02-04 13:50

    Comment from '17

    To avoid "space" problem, it's smarter to change IFS than renaming. Back up current IFS and change it to \n only. And restore original IFS after the processing loop.

    ORG_IFS=$IFS
    IFS=$'\n'
    for file in $@
    do
        ...
    done
    IFS=$ORG_IFS
    

提交回复
热议问题