LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Images on SD card now .JPG, used to be .jpg (https://www.linuxquestions.org/questions/fedora-35/images-on-sd-card-now-jpg-used-to-be-jpg-944514/)

terry-duell 05-11-2012 11:33 PM

Images on SD card now .JPG, used to be .jpg
 
Hello All,
I am running Fedora 16 x86_64, gnome, always up to date.
A strange problem. For years I have been importing images from my camera SD card, and they have always ended up (in linux dir) as xxxx.jpg (I have checked some dirs of photos from years ago).
A day or so ago, I downloaded some photos from the SD card and tried to import them into some new software I'm working with (VisualSFM) and it couldn't see any of the images in the dir...it was looking for .jpg and all the recently imported files were .JPG.
I have had to resort to using PyRenamer to get around this problem.
I wasn't sure where the problem was, in Fedora somewhere, or the camera. I checked some old SD cards, written by the same camera, and Nautilus shows them all as .JPG, but the previously imported copies of these files on my disc are all .jpg, and I have never before had to resort to renaming.
So, I'm beginning to wonder if Nautilus is the indigenous person in the woodpile. A snoop about in Nautilus preferences doesn't indicate any settings that might affect this.
Does any one have any clues as to what might be going here?

Cheers,
Terry

SharpyWarpy 05-12-2012 01:39 AM

Have a look at the --filename option in the gphoto2 man page. There is mention there of forcing lowercase.

terry-duell 05-12-2012 05:50 PM

Quote:

Originally Posted by SharpyWarpy (Post 4676469)
Have a look at the --filename option in the gphoto2 man page. There is mention there of forcing lowercase.

No gphoto2 man page here.

Cheers,
Terry

terry-duell 05-12-2012 06:19 PM

Quote:

Originally Posted by terry-duell (Post 4676897)
No gphoto2 man page here.

Sorry to reply to my own post, but have found gphoto2.
This looks like it might just be another approach similar to PyRenamer, ie fix the problem after the event, unless I have misunderstood.
It may be a good solution for that, but I was really looking for any advice on what has caused the apparent change that I see.

Cheers,
Terry

terry-duell 05-12-2012 09:06 PM

Quote:

[snip] ... but I was really looking for any advice on what has caused the apparent change that I see.
Me again.
It is now getting a little clearer.
Mount options for vfat have changed in the linux kernel.
One of the options is shortname={lower|win95|winnt|mixed}, where 'lower' forces the name to lowercase, and this is probably what the default was previously, going by historical behaviour here.
The current default is 'mixed', which is probably sensible, although does add inconvenience to import of images from vfat device via some software.
There is a way of adding an entry to /etc/fstab for the particular device, using 'shortname=lower', but that may mean a number of entries if one has a number of devices.
Although it probably isn't a recommended solution, I wonder if there is a way of overriding the default for all vfat devices, in some config file somewhere?

Cheers,
Terry

SharpyWarpy 05-16-2012 08:53 PM

Not meaning to tell you what to do but the way I do it is insert the card, mount it manually if you have to and open a terminal. Go to or make a directory and go to it and run gphoto2 -P and that downloads all the pics off your card. If you use the "--filename %:" option along with that you get your files in lowercase. Simple. I suspect Nautilus is using gphoto2 as the backend for this, I don't know. But if that is the case you can edit your ~/.bashrc file to include the line
alias gphoto2='gphoto2 --filename %:'
and when Nautilus calls gphoto2 to download your pics they will all be in lowercase. Hope this helps. I tried it and it works with
gphoto -P
but I don't know about Nautilus. I'm a command line person so I can't say. I don't even have Nautilus installed. I use Midnight Commander installed as a file manager so I can use the same file manager in a run level 3 environment. I would have gotten back to you sooner but I'm having issues with getting notifications from this forum about new posts to which I am subscribed. I'll be checking back.

terry-duell 05-17-2012 01:40 AM

Quote:

Originally Posted by SharpyWarpy (Post 4680432)
[snip] I suspect Nautilus is using gphoto2 as the backend for this, I don't know. But if that is the case you can edit your ~/.bashrc file to include the line
alias gphoto2='gphoto2 --filename %:'
and when Nautilus calls gphoto2 to download your pics they will all be in lowercase. Hope this helps. I tried it and it works with
gphoto -P

No, gphoto2 not installed here. Nautilus, as I'm using it, is simply a gui file manager...drag selected files from the SD card window to the the desired directory window on my hard disc.

Quote:

but I don't know about Nautilus. I'm a command line person so I can't say. I don't even have Nautilus installed. I use Midnight Commander installed as a file manager so I can use the same file manager in a run level 3 environment. I would have gotten back to you sooner but I'm having issues with getting notifications from this forum about new posts to which I am subscribed. I'll be checking back.
OK. Your proposal may be a suitable solution. At the moment I can make the required filename changes with PyRenamer, but your proposal is probably a bit simpler. Thanks for your help.

Cheers,
Terry

SharpyWarpy 05-17-2012 09:45 PM

Quote:

Originally Posted by terry-duell (Post 4680565)
No, gphoto2 not installed here. Nautilus, as I'm using it, is simply a gui file manager...drag selected files from the SD card window to the the desired directory window on my hard disc.



OK. Your proposal may be a suitable solution. At the moment I can make the required filename changes with PyRenamer, but your proposal is probably a bit simpler. Thanks for your help.

Cheers,
Terry

You are quite welcome and if I can help in any way whatsoever feel free to ask. Sometimes the command line is the only way to get exactly what you want the way you want it. And it's always faster.


All times are GMT -5. The time now is 08:55 PM.