Batch-converting raw image files to JPEG in Linux (批量转换RAW格式图片为JPEG格式)

Reference: http://www.mohdshakir.net/2012/03/26/batch-converting-raw-image-files-to-jpeg-in-linux

RAW格式的图片一张占十几兆空间,伤不起呀。。可以使用ufraw-batch命令批量转换称jpeg,可以通过参数调节压缩比例,一般能压缩到2M左右。

1. 安装ufraw软件包
# yum install ufraw ufraw-common

2. 批量转换RAW格式(这里文件后缀为.ARW) 文件为JPEG,保存到jpeg/子目录里
# ufraw-batch --out-type=jpeg --out-path=jpeg/ --compression=100 --overwrite *.ARW

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.