Mac下.CR2格式圖片批量轉(zhuǎn)換

我的相機(jī)是佳能X7i型號,之前拍的照片都是.cr2格式,想上傳照片到Flickr,因為格式原因上傳不了,開始一張張手動格式轉(zhuǎn)換,太傻瓜。直到今天,發(fā)現(xiàn)了這個,感覺太好了。

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 $i --out "${i%.}.jpg"; done

So you now can save some space in your card by skipping the RAW + JPG option :)

意思即為,在mac終端先cd對應(yīng)目錄,然后執(zhí)行以下命令,目錄下會多了一些jpg格式的圖片。

for i in *.CR2; do sips -s format jpeg $i --out "${i%.*}.jpg"; done
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • 今夜冷風(fēng)又來送,不知何時,越來越喜歡安靜了,歲月深深處安坐,聽著一首曲子,讓心獨自行走在這冬天里的冷風(fēng)中,...
    謝錦均閱讀 369評論 0 0
  • 為你,千千萬萬遍。 為你,千千萬萬遍。 為你… 千千萬萬遍… 反復(fù)咀嚼著這句話,內(nèi)心仿佛迷失在縱橫交叉的十字路口,...
    夏沫er閱讀 399評論 0 1

友情鏈接更多精彩內(nèi)容