View Full Version : .jpg - .JPG .. does it matter?
rubber30
09-05-2002, 10:39 PM
I have just noticed that a bunch of photos I have been editing are coming out of my digital camera with a .JPG extention. Will all browsers show the image if the file name is picture.JPG and you link to it as picture.jpg?
Or another way to put it, is the extention case sensitive??
:confused:
Sometimes will,sometimes won't.
It depends on the sever's os.
boris
09-06-2002, 02:09 PM
If your page is hosted on a UNIX based system (which is pretty likely) all filenames are case sensitive (Bla.html and bla.html are two different files), on Win9x/NT/2k/XP files are not case sensitive. Personally I think it's a good habit to keep all files names lower case, it's just easier to edit.
EnwTheGood
09-07-2002, 07:43 PM
I could never understand that penchant of some programs to name their files with .JPG instead of jpg. It really complicates linking, even on a simple website. I have a PHP script somewhere that goes through every file on the server and puts the extension into lower-case.
Personally I think it's a good habit to keep all text in upper or lower case as you feel in the editor, it's just easier to edit everything.
If you alway type in upper case then file name should be in upper case. If not, then use lower case on file name also.
Just keep everything together in one kind of case. This way the server will follow your rule.
BoR|S
09-14-2002, 07:54 AM
Hmm that's confusing... afaik, the only place where the letter register inside a url matters is when you enter with password (example ftp://login:PaSs@server.com), all other don't really matter (example: hTtP://wWw.EvRsOfT.cOm is just the same as http://www.evrsoft.com or HTTP://WWW.EVRSOFT.COM) more to the subject, when you type url in the IE address bar, no matter which register you used, it switches the entire url to lowercase...
Also, I do agree that it's a matter of a good habbit to stick to one specific register and not to combine uppercase with lowercase.
That will only work usually on the main domain. It wont work if you have anything on the end..ie
HTTP://WWW.DOMAIN.CO.UK would probably work because the browser will change to it to lowercase as you said, just as it will add on a http:// if missing.
HTTP://WWW.DOMAIN.CO.UK/FILES/INDEX.HTML
probably wont work if the files are actually in lower case (files/index.htm). It would normally be passed by the browser as http://www.domain.co.uk/FILES/INDEX.HTM which will not be found on any UNIX based o/s
BoR|S
09-14-2002, 08:21 AM
Oh true, just noticed it...
http://www.lib.ru/INOFANT/ works while http://www.lib.ru/inofant/ gives me 404 error...
Yes i think its because the domain should always be in lowercase so that is converted by the browser as default but because you could use upper or title case file names, the browser will leave those alone.. :)
dabbler
09-15-2002, 08:59 AM
Similar situation with tags.
In HTML tags can be any case, but in XHTML they must all be lowercase and be closed.
i.e <P> is OK in HTML
but in XHTML it must be <p> .....<p/>
and empty tags must be closed like: <br />
BoR|S
09-15-2002, 10:06 AM
That's why I don't really like XHTML... also the order of the tags matters (i.e. <b><u>blah</b></u> is incorrect while <b><u>blah</u></b> is correct)
Delicates
09-15-2002, 05:13 PM
Originally posted by dabbler
Similar situation with tags.
but in XHTML it must be <p> .....<p/>
Errrrr...
make that <p>.....</p>
<p> .....<p/> equals to <p> .....<p></p> - woopsie! :p
Delicates
09-15-2002, 05:17 PM
Originally posted by BoR|S
That's why I don't really like XHTML... also the order of the tags matters (i.e. <b><u>blah</b></u> is incorrect while <b><u>blah</u></b> is correct)
*shudders in horror*
Repent, sinner!
BoR|S
09-15-2002, 06:22 PM
Didn't get the last one...
Anyway, all the tags that in HTML 4.1 didn't have a closing tag, in XHTML are closed with <tag_/> (where _ represents space, I wrote it just to make it clear).
BoR|S
09-15-2002, 06:29 PM
As quoted from w3schools XHTML tutorial:
IMPORTANT Compatibility Note:
To make your XHTML compatible with today's browsers, you should add an extra space before the "/" symbol like this: <br />, and this: <hr />.
(Origin (http://www.w3schools.com/xhtml/xhtml_html.asp))
BoR|S
09-15-2002, 06:35 PM
Or more detailed:
Empty Tags: <hr> , <br> and <img>
Empty tags are not allowed in XHTML. The <hr> and <br> tags should be substituted with <hr /> and <br />.
This produced a problem with Netscape that misinterpreted the <br/> tags. We don't know why, but changing it to <br /> worked fine. After that discovery, a general search and replace function was executed to swap the tags.
A few other tags (like the < img> tag) were suffering from the same problem as above. We decided not to close the <img> tags with </img>, but with /> at the end of the tag. This was done manually.
(Origin (http://www.w3schools.com/xhtml/xhtml_howto.asp))
P.S. Oh cool, this is post number 1000! :p
dabbler
09-16-2002, 12:53 AM
Thanks, Delicates, for pointing out my typo! Perhaps that's where I've been going wrong!
I should have you debug my code full time! I certainly need someone to do it!
Seriously, though, I think it is important to write code according to W3C standard, now that HTML is not going to be developed any further, and if we want our work to be accessed by the new UA's.
Waves
09-19-2002, 06:33 PM
My webserver is Case Sensitive so if the file is photo1.jpg and I type photo1.JPG, my picture will not show up. I ususally like to save my files with all lowercase letters just so i don't screw up.
Yea. and i thnk that's good. (case sence) cause you can make fun and confusing sites ::evil grin::
David R.
10-08-2002, 07:18 AM
When using 1st Page 2000 to develop websites just drag the image filename and drop it over the document. The linked image filename will be the same => no problems with case sensitive web servers :D
jpegs are icky clunky yucki! Or "ICY" Heh I just made that up.
Actually if I was posting general digital cam art or dropping in my 3d art I'd say that is all a jpeg is good for. =p
Just my submissive ideas about jpegs and the web.
Orange
10-15-2002, 05:47 AM
It is best to keep all your code in upper or lower-case.
If you have a program that is saving your files as .JPG and you are using lower-case, do the following:
[list=1]1. Click the top of your page[/list=1]
[list=1]2. Hit Ctrl+r[/list=1]
[list=1]3. Text to Find: JPG[/list=1]
[list=1]4. Replace with: jpg[/list=1]
[list=1]5. Options check case-sensitive[/list=1]
[list=1]6. check Prompt on Replace[/list=1]
[list=1]7. Click Replace All[/list=1]
That should change all your upper-case JPG in a matter of seconds.
XHTML requires a closing tag for all tags that do not have a closing tag.
Ex. <br>
now needs a <br /> closing tag.
DCElliott
11-03-2002, 07:50 AM
It goes without saying that ensuring all your tags are lowercase is only half the battle. If your server is a *nix box, the files have all got to be lower case as well. Doh!
mandville
11-03-2002, 07:43 PM
there is one thing that is forgotton about a lot--the FTP prog...
some will respect your extension case others will force lower case so that if you link in caps all though, <img src="PIC.JPG"> it will /may force the image to be pic.jpg ,
soz for metal based tool,,
Mandy,
oh what about jpeg??? :rolleyes: :joy:
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.