So I have a stupid camera that names all of the pictures on it with an extension that is all capital letters (i.e. .JPG). Unfortunately, Word Press looks for pictures that end in .jpg (lower-case) and since GNU/Linux is case-sensitive, Word Press cannot see the photos downloaded from the camera unless I rename the photos. Here’s an easy way to change the name of all of the photos in a directory at once.
1) Open the Terminal and change to the directory containing the photos you want to rename (cd name-of-directory-with-photos)
2) Enter this command:
rename -v ‘s/\.JPG$/\.jpg/’ *.JPG
Easy.
Advertisement