Comment 12 for bug 221409

Revision history for this message
Zambini (zambini845) wrote :

Hi All,
For anyone viewing this, you've obviously got some google skills.

I too have this same problem, using {Ubuntu 10.04, Chrome 5.0.375.86 beta, Nautilus 2.30.1}

Here is a temporary workaround to this problem, simply by re-naming all the files:
1) Open up the terminal and cd into the directory where your .JPG files are
2) Type in the following command:
---
for i in *.JPG; do mv "$i" "`basename $i .JPG `.jpg"; done
---
and hit enter. What this does is re-names all files that end in .JPG and re-names them to end with .jpg. For example:
IMG_1112.JPG gets re-named into IMG_1112.jpg

You can also use the gIMP plugin "David's Batch Processor" to do a batch re-name, but this one line command is much easier.

You can even write yourself a simple script that does this and place it into /usr/bin and chmod +x it and then you can run it just like it's a regular command.

Here's my script:
---
#!/bin/bash
for i in *.JPG; do mv "$i" "`basename $i .JPG `.jpg"; done
---
And now whenever I encounter this problem I can open up the Terminal and cd into my photos directory and then just run JPGtojpg (that's what I named it in my bin folder)