Resize and Rename photos in terminal (macOS)

twitter logo github logo Updated on ・1 min read

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

twitter logo DISCUSS
Classic DEV Post from Jul 10

How is your portfolio built?

Kiron Roy profile image
Learning C# and loving it!

Like what you're reading?
Hit the +FOLLOW button.