LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 05-11-2012, 11:33 PM   #1
terry-duell
Member
 
Registered: Jan 2007
Location: Melbourne, Australia
Distribution: Fedora 20 x86_64
Posts: 389

Rep: Reputation: 47
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
 
Old 05-12-2012, 01:39 AM   #2
SharpyWarpy
Member
 
Registered: Feb 2003
Location: Florida
Distribution: Fedora 18
Posts: 862

Rep: Reputation: 90
Have a look at the --filename option in the gphoto2 man page. There is mention there of forcing lowercase.
 
Old 05-12-2012, 05:50 PM   #3
terry-duell
Member
 
Registered: Jan 2007
Location: Melbourne, Australia
Distribution: Fedora 20 x86_64
Posts: 389

Original Poster
Rep: Reputation: 47
Quote:
Originally Posted by SharpyWarpy View Post
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
 
Old 05-12-2012, 06:19 PM   #4
terry-duell
Member
 
Registered: Jan 2007
Location: Melbourne, Australia
Distribution: Fedora 20 x86_64
Posts: 389

Original Poster
Rep: Reputation: 47
Quote:
Originally Posted by terry-duell View Post
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
 
Old 05-12-2012, 09:06 PM   #5
terry-duell
Member
 
Registered: Jan 2007
Location: Melbourne, Australia
Distribution: Fedora 20 x86_64
Posts: 389

Original Poster
Rep: Reputation: 47
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
 
Old 05-16-2012, 08:53 PM   #6
SharpyWarpy
Member
 
Registered: Feb 2003
Location: Florida
Distribution: Fedora 18
Posts: 862

Rep: Reputation: 90
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.
 
Old 05-17-2012, 01:40 AM   #7
terry-duell
Member
 
Registered: Jan 2007
Location: Melbourne, Australia
Distribution: Fedora 20 x86_64
Posts: 389

Original Poster
Rep: Reputation: 47
Quote:
Originally Posted by SharpyWarpy View Post
[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
 
Old 05-17-2012, 09:45 PM   #8
SharpyWarpy
Member
 
Registered: Feb 2003
Location: Florida
Distribution: Fedora 18
Posts: 862

Rep: Reputation: 90
Quote:
Originally Posted by terry-duell View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Need to copy all .jpg images in subdirectories to a specific directory sikanders Linux - Newbie 5 08-06-2010 07:15 AM
.jpg images too big for uploading, need to use gimp to downsize them, but how? xyla Linux - Software 4 07-14-2008 07:42 AM
HELP! BASH - Convert filenames from dsc00***.jpg to *.jpg jimmybond01 Programming 9 05-08-2007 06:17 AM
recrusiv scale of jpg images saavik Programming 6 09-29-2006 06:32 AM
Opening BMP and JPG images in Solaris 10? as400 Solaris / OpenSolaris 4 05-10-2006 10:19 AM


All times are GMT -5. The time now is 06:18 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration