PDA

View Full Version : What is Standard for Case of JPG Extension


ArtM
26th of January 2007 (Fri), 18:03
What is felt to be the case standard for naming image JPG files - upper or lower case?

Filename.jpg

or

Filename.JPG


Before I rename a zillion files one way or the other !!

- Art

Packhorse-4
26th of January 2007 (Fri), 18:32
Generally lower case is used, but I really don't think it makes a difference. I have found JPEG pictures on my system with both upper case and lower case file extensions.

UweB
27th of January 2007 (Sat), 04:23
A UNIX System cares about lower or upper case even in the middle of a word whereas a Windows system doesn't know anything about this... So it depends if one or both your webserver or client OS is UNIX based

Packhorse-4
27th of January 2007 (Sat), 12:16
Excellent point UweB... I need to be careful in my assumptions. Thanks for pointing that out.:o

ArtM
27th of January 2007 (Sat), 12:49
OK - after Googling through a number of Standards sites;
I concluded Upper Case is the way to go.

Thus

Filename.JPG


Though I do use a webserver on Windows, it is Apache,
and I believe it IS case sensitive.

- Art

wkitty42
4th of February 2007 (Sun), 03:51
Though I do use a webserver on Windows, it is Apache,
and I believe it IS case sensitive.
apache IS case sensitive but this may also depend on which modules you have loaded... the spellcheck (?) module may be helpful... it has greatly assisted me when i've had directories in mixed case and specified lowercase or otherwise in my urls in my pages... it just happily checks and corrects them as needed...

ArtM
5th of February 2007 (Mon), 16:58
Good tip Wkitty. I didn't know about that one & will check the Apache Spellcheck module out.

However - don't think it solves the problem with the JPG's.
The file names are entered in EE's MySQL database.
I have not done this in a while, but if I remember thats where the problem is.
Some files or thumbs or sizes end up lower case & others upper. Or perhaps it was my thumbnailing/sizing program.

- Art

wkitty42
6th of February 2007 (Tue), 01:31
i remember fighting something along those lines back with v1.22 or so... i was doing all my sizing manually and then i discovered that my software was loosing the EXIF data and such... i quit doing that when i learned a bit more about eE... i remember, also, a problem uploading bmps and something else that seemed to work and then would fail later on... at some point i ended up having to edit the names in the database to get them fixed...