DEV Community

Kiron Roy
Kiron Roy

Posted on • Updated on

Resize and Rename photos in terminal (macOS)

apple logo

Do in this order

cd Desktop/images/ cd to your photos

mkdir fulls make fulls directory

mv *.jpg fulls move all .jpg files into fulls directory

cp -r fulls/ thumbs copy fulls directory to thumbs directory

Thumbs directory will automatically be created

cd thumbs/ cd thumbs

sips -Z 360 *.jpg resize (width will be 360 px)

Rename photos (or other files) by selecting all and right click


  1. Go to thumbs folder

  2. command a to select all images/docs/etc.

  3. right click any file

  4. select rename x(how many items in folder) items

  5. navigate to Add Text and before name

  6. then rename

Discussion (0)