Here is what worked for me...no reformat required:
Go to:
Settings >> Applications >> Manage Applications >> All tab
For each of the following, I clicked on Clear data and Clear cache: (Just clearing Gallery did not do it for me)
Gallery
Media Container Service
Media Storage
Then I restarted phone by holding down power button, clicking Power Off, then held it again to turn on and working great! It did take a few minutes for the Gallery to get all the thumbnails again the first time I started it, but works!
I was afraid I deleted all files on SD but they are all still there. Just be patient, will take several minutes for Gallery to repopulate.
I am experiencing the same thing. I open the gallery and it flashes on for about a tenth of a second and then closes. I put 3D gallery on and it works fine, all pictures show but I prefer the original gallery. Very strange.
You could also attach the X in USB mode to your computer, open the X's SD card as a flash drive, then open either the photographs or DCIM folders to view your pictures. Find the problem ones and delete there.
(Yes, I did the .nomedia file trick too but they were still showing as a folder for some reason - for what it's worth, the .nomedia trick didn't work for my audio files either).
Sailmaker: are you 100000% positive the clear cache & clear data doesn't erase all on the sd card? Im nervous it will. Im having the same gallery issue. But when I go to the gallery app clear cache isn't clickable.Here is what worked for me...no reformat required:
Go to:
Settings >> Applications >> Manage Applications >> All tab
For each of the following, I clicked on Clear data and Clear cache: (Just clearing Gallery did not do it for me)
Gallery
Media Container Service
Media Storage
Then I restarted phone by holding down power button, clicking Power Off, then held it again to turn on and working great! It did take a few minutes for the Gallery to get all the thumbnails again the first time I started it, but works!
I was afraid I deleted all files on SD but they are all still there. Just be patient, will take several minutes for Gallery to repopulate.