Solved W7 lists .jpg as .JPG needs to be in lower c

Microsoft Windows 7 professional - upgra...
June 23, 2011 at 07:27:00
Specs: Windows 7, duocore intel/ 2 GB
I want to know why the head brick at Mickysoft screwed this up. Every one knows when you load files up to a web site EVERYTHING is in lower case ( extensions), otherwise you can spend all day trying to figure out why your images are not loading.
My only cure so far was to batch ren *.JPG to *.jpg in a temp file folder from "Command"

This is a pain in the butt. some one please help or explain ? ( sorry this is totally frustrating and time wasting). Non productive.

ps the sign in is totally ridicules I had to try 9 times because humans can not read the secret code.


See More: W7 lists .jpg as .JPG needs to be in lower c

Report •

✔ Best Answer
June 25, 2011 at 11:01:49
I'm not sure that it's an OS issue. There are a number of default pictures in my Win7-64 installation that have lowercase JPEG extensions (.jpg). From the naming convention that I see in saintcroix's posts, it appears to be camera naming convention, so it may be relative to the camera OS, or (just speculating because I don't have a media card handy to test) the media card design. I suspect that once they come across as .JPG, then changing them to .jpg in the same folder appears to Win7 as essentially no change, so they maintain the original file name in the file system, and the "change" is only an OS UI convention in the file system metadata rather than a real change.

I do know that Windows file systems are not case sensitive, and as a result, either upper or lowercase equal the same name. However, many web sites are hosted on UNIX or Linux OSs, whose file systems are almost always case sensitive, making the two different.

When copied to a website, where the underlying OS/file system between posting computer and web server may or may not be the same, the file resumes its original name for "lowest common denominator" reasons between what may or may not be different file systems. The upload function would likely try to abstract any differences by taking only those "relatively absolute" file attributes, hence the original file name.

So after all that long winded speculation, my suggestion would be to try copying to a new folder like this:

c:\picturefolder> copy c:\picturefolder\DS000001.JPG to c:\newpicturefolder\ds000001.jpg

Then try uploading and see if the results are now actually in lowercase on the web site. HTH!

RMW



#1
June 23, 2011 at 16:57:52
It's a bit hard for helpers on a forum to explain why MS have screwed something up.
If you have a bleat with MS why not ask them?

What website is the last line is referring to, MS again or this one? In fact I have found that often happens on many websites and have therefore learned to be patient.

Please do not post then vanish - let us know the outcome


Report •

#2
June 24, 2011 at 06:58:34
Let me try this again.

"Every one knows when you load files up to a web site EVERYTHING is in lower case ( extensions), otherwise you can spend all day trying to figure out why your images are not loading.
My only cure so far was to batch ren *.JPG to *.jpg in a temp file folder from "Command" "

Although this is one way it does not always work, Win 7 will even rename the extensions back to caps.

If you have this or a similar problem I want to know what you found that can change ibit.t. I do not want to know that " I have that too", from several others.

I did contact MS, their answer was Much like them in the fact that it was absolutely no help., ( and they don't really care). I suppose I could return to good old XP pro and give up on win 7 pro 64. As for the improvement in OS, Other than window dressing, I just do not see a real advantage. I do know that old xp never changed what I typed, or substituted something else that would not work.

I am here asking for help, not to be ridiculed, I can stay home and get that.
While I apologize for submitting this forum to my distress, I can not apologize for those who's interest it is to talk down to or insult others , so please do not waste your time, or mine with what a better person you are. I am patient as well, I am simply older and don't have as much time as you may have, you will learn this as you get older.


Report •

#3
June 24, 2011 at 08:04:18
Sorry but your initial post read like a rant about MS, and that you were asking why they had screwed things up. All is clear now from your #2.

If you do a batch file change via another file extension, eg from *.JPG > *.txt > *.jpg (two lines) maybe this will help but I've not tried so I can't be certain. You probably already know this but, just in case, you can put your batch file, exactly as given, in the same folder as the jpg's and it will work from there - without even specifying the path. My general experience is that each time you change (or copy) a file to the same name and extension it changes the case of the extension, hence my suggestion.

If you re-read my last line you'll see it was referring to your last line, about human/machine security coding on websites. Maybe I should have said it is "widespread" (if my choice of words hit a wrong chord somehow). I've found it usually takes less than a minute to find a readable code. Whilst I'm only 75 I don't find that delay too much of an issue but this is nothing to do with anyone being better than anyone else. I did not say that - even Mary Poppins was only "practically" perfect in every way.

What we had here was a misunderstanding. We all have to be careful with words because they do not always convey what is intended.


Report •

Related Solutions

#4
June 24, 2011 at 17:20:47
Further to my suggestion about the batch file. I had a quick try and found that going via txt with a two line batch file and no delay was too fast, hence unreliable. The following worked every time for me:

=================================
ren *.JPG *.txt
ping 1.1.1.1 -n 1 -w 2000 > nul
Ren *.txt *.jpg
=================================

The ping line is to insert a delay, "2000" corresponding to 2 seconds.
It should be fine but if not increase it to 3000 or whatever.

Although I appreciate that the above is just an improved workaround, there is no easy way to modify the OS itself - only MS are in a position to do that.

EDIT:
I understand that the old "Choice" command is back in Windows 7, so could be used instead of the ping line to create a delay. I haven't worked out the syntax for that yet but will have a look at it if you prefer to use "Choice".


Report •

#5
June 24, 2011 at 19:57:38
Have done a complete rename as well. win 7 lets you change the image name by clicking on the image.. the extension remains, ( usually in caps), so I do the name change example.

raw camera image DCS0098.JPG I click then highlight all of the name including the extension. This works to keep and hold the change, but it only allows for a single change, no batch. If I move all the files to a new folder, then rename ( in a batch) and save them to yet another folder, win 7 makes the jpg extension in caps again. I appreciate your help, But I think Microsoft needs to address this. It is clearly not a bug, but a faulty code. I also noted if the preview window is opened in a file folder, Photoshop will not let you save, (resave), and altered file back to the original name. It says the file is busy. ( this is because it is busy being previewed... ( Just thought I would mention this other oddity because it affects my work as well. Thank you Derick for the valiant try.


Just a side note, I read that Microsoft is getting ready to release windows 8. which makes me realize, the trick here is to make a bad product that needs adjustments, and quickly release an updated product that does not really work better.... as long as you keep making a newer one every one will keep buying it. Ok gotta run now and find a product.


Report •

#6
June 25, 2011 at 03:50:46
Just to makes sure we are on the same wavelength, my idea was to copy/paste the text between the lines in #4 into NotePad then save this as a batch (.bat) file. This file can then be copied into whatever folder in Windows the JPG files happen to be. Double clicking the bat file makes the change to the JPG files in that folder (JPG to jpg).

I realise this doesn't address all the issues you have raised but it might be make things a tad easier in terms of working round the problem.


Report •

#7
June 25, 2011 at 11:01:49
✔ Best Answer
I'm not sure that it's an OS issue. There are a number of default pictures in my Win7-64 installation that have lowercase JPEG extensions (.jpg). From the naming convention that I see in saintcroix's posts, it appears to be camera naming convention, so it may be relative to the camera OS, or (just speculating because I don't have a media card handy to test) the media card design. I suspect that once they come across as .JPG, then changing them to .jpg in the same folder appears to Win7 as essentially no change, so they maintain the original file name in the file system, and the "change" is only an OS UI convention in the file system metadata rather than a real change.

I do know that Windows file systems are not case sensitive, and as a result, either upper or lowercase equal the same name. However, many web sites are hosted on UNIX or Linux OSs, whose file systems are almost always case sensitive, making the two different.

When copied to a website, where the underlying OS/file system between posting computer and web server may or may not be the same, the file resumes its original name for "lowest common denominator" reasons between what may or may not be different file systems. The upload function would likely try to abstract any differences by taking only those "relatively absolute" file attributes, hence the original file name.

So after all that long winded speculation, my suggestion would be to try copying to a new folder like this:

c:\picturefolder> copy c:\picturefolder\DS000001.JPG to c:\newpicturefolder\ds000001.jpg

Then try uploading and see if the results are now actually in lowercase on the web site. HTH!

RMW


Report •

#8
June 25, 2011 at 11:09:29
Forgot to add: The other reason I think this method will work is that if you move the files instead of copying them, and what I suspect is true, then the metadata and original file names persist for a while, resulting in what you see as a reversion to the original uppercase extension. If you copy from uppercase name to lowercase name, then it's essentially a new file, and it's original name will be as you specify on the copy command line.

Best of luck!!

RMW


Report •

#9
June 25, 2011 at 13:45:20
RMW,

I thought exactly the same. I send all the files to a " C:\Temp\ *.*...
then in Command I change all to lowercase extensions as follows

"REN *.JPG *.jpg enter" This does successfully rename all the extensions to lower case " jpg". How ever, when I send them back, either to the original folder, or a NEW folder, win 7 has changed all the extensions back to caps.

I have run this batch over the years in XP and Vista, and every thing is ok. How ever win 7 (64) is simply persistent about the upper case extension names.

This is why my original inquiry sounded more like a rant, because I thought maybe MS hired some non programmers to write 64 bit win 7. I say this because as long as I can remember lowercase extensions are required in HTML pages, ( voice trails off)

I would like to thank each of you for the valiant try. I guess we will never know the "WHY" of this problem. again many thanks for trying to find a work around.


Report •

#10
June 25, 2011 at 13:47:32
All are decent answers thank you all.

Report •

#11
June 30, 2011 at 08:35:45
Derick has good points as does RMW. I have to in all fairness split the credit for best answer, Sorry I read both sides, and decided to cut the baby in half.

I am in the process of talking to Nikon about the naming process in the camera's OS. If i get something interesting back I will post it here. I really hate to admit that Microsoft may not have had any thing to do with the Caps / Lower case naming convention except that win XP Pro did not do this.


Report •

#12
June 30, 2011 at 08:38:38
Hmm, it did not let me split it......:(

Report •

Ask Question