Convert .ARW to jpeg and reduce size in a folder
Convert all the .ARW images in a specific folder
cd path/to/images/folder
for i in *.ARW; do sips -s format jpeg -s formatOptions 70 "${i}" --out "${i%ARW}jpeg"; done
Reduce all images
sips -Z 640 *.jpeg
sources
- Use sips to quickly, easily—and freely—convert image files
- Batch Resize Images Quickly in the OS X Terminal