Nic*_*las 3 automator image-editing preview.app macos
我一直在通过菜单栏通过预览 (OS X) 批量调整图像大小,但我想要一个更简单的工作流程,因为我每天都这样做十几次。
我想要的是:
我也想要的:
我可以通过预览对一批文件手动执行所有操作。我可以使用 Photoshop 或 Pixelmator 中的一些键盘快捷键一次完成一个。
Automator(使用预览)可以在最长维度上缩放到 600 像素,但它不允许我指定宽度。(它可以在裁剪高度之前专门缩放到宽度。)它可以更改为 JPG,但不能指定图像质量。我也无法为整个过程分配键盘快捷键。
这是我在 Mac 上的最佳选择吗?我可以通过 Quicksilver 等其他应用程序更有效地完成这项工作吗?
您可以使用brew install imagemagick或安装 ImageMagicksudo port install imagemagick并使用以下内容:
for f in *.png; do convert $f -filter lanczos2 -resize 600x -extent 600x200 -quality 75 ${f%png}jpg; done
更多例子:
# modify images in place and make images larger than 1280x1280 pixels smaller
mogrify -filter lanczos2 -resize '1280x1280>' *.png
# save thumbnails to ~/Desktop and make images wider than 500 pixels smaller
mogrify -filter lanczos2 -thumbnail 'x500>' -format jpg -quality 93 -path ~/Desktop/ *.png
# make images smaller or larger and crop them so that they are exactly 200x200 pixels
-resize 200x200^ -extent 200x200 -gravity center
# use a white instead of a black background
convert transparent-bg.png -flatten white-bg.jpg
Run Code Online (Sandbox Code Playgroud)
缩小图像的默认过滤器是Triangle,在我看来,这通常会使图像看起来太模糊而没有额外的锐化。Triangle类似于 Automator 和 使用的调整大小方法sips。我通常使用Lanczos2(2-lobe Lanczos),这使得图像不如Lanczos(Lanczos3或 3-lobe Lanczos)清晰。Lanczos2几乎与 相同Catrom,也与 Photoshop 中的 bicubic 选项相似。
不同调整大小选项的比较:http : //lri.me/upload/imagemagick-osx-resizing/index.html
| 归档时间: |
|
| 查看次数: |
3488 次 |
| 最近记录: |