Mac下.CR2格式图片批量转换

我的相机是佳能X7i型号,之前拍的照片都是.cr2格式,想上传照片到Flickr,因为格式原因上传不了,开始一张张手动格式转换,太傻瓜。直到今天,发现了这个,感觉太好了。

No need for slow and heavy Photoshop scripts for this one, you can do easily do this right from your terminal window.
This is possible using “sips”, an image editing tool already available on Mac which allows you to do all sorts of image manipulation, including resizing and converting.
So we first grab all RAW files in a folder,
We convert them to jpeg (or any other format),
And we output them somewhere else.

for i in .CR2; do sips -s format jpeg iout" {i%.}.jpg”; done
So you now can save some space in your card by skipping the RAW + JPG option :)

意思即为,在mac终端先cd对应目录,然后执行以下命令,目录下会多了一些jpg格式的图片。

for i in *.CR2; do sips -s format jpeg $i --out "${i%.*}.jpg"; done
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值