|Oct 6, 2012, 02:22 PM||#1|
meaningful web image filenames- max length
I'm replacing an Extensis Portfolio image database on the web with one embedded in an e-commerce system and I'm cleaning up the old database in preparation. One of the preps I'm doing on the old files is to rename them with meaningful English names, for which I'm writing an AppleScript. My question is how long can I or should I go with a filename phrase before I start breaking web pages or image links? Remember, these are file names not page titles. Obviously, the more information the better if no harm is done. Should I target a filename length of say 40-50 characters? Would 70 chars be too long? Any insights appreciated.
|Oct 7, 2012, 09:10 AM||#2|
Does the filename get shown in the URL? IE seems to limit the URL length to 2048 characters or fewer, while other browsers may allow more. So, from a technical point of few 70 characters sounds fine. Shorter names might be better if you except users to share links in some way, or reference them in printed documents.
The operating system running your web server will have some sort of limit on filename length, but again it will be much more than 70.
Longer names might help search engines find the pictures.
Longer names will slow down your page load time slightly, if you have an HTML page referencing lots of long filenames.
|Oct 8, 2012, 05:24 AM||#3|
max 70 sounds about right to me, too and convert special characters and spaces to underscores and allow dashes, then strip existing ext if any and check mime-type and add the proper dot extension through code if processing an upload server side. Makes it easily readable by humans and machines (i.e. semantic). The extension handling is optional, of course, it just is a safety check to ensure to extension is correct, makes sense to do this in the kind of project you are undertaking so I made mention of it.
Sr. Web Developer, owner GoldTechPro, LLC
|Oct 19, 2012, 01:28 PM||#4|
|image file names, web filename length|
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|I need time of photo to make meaningful Events||vjaaan||Digital Photography||2||Mar 23, 2013 08:30 PM|
|Max Length Mini Display cable.||dmax35||Mac Pro||1||Mar 11, 2013 08:05 AM|
|iPhone: Filenames for theme image files||FredrikHagen||Jailbreaks and iOS Hacks||0||Feb 4, 2013 05:43 PM|
|Max USB cable length for backup HD?||Qwerty11||Mac Peripherals||1||Oct 25, 2012 08:52 AM|
All times are GMT -5. The time now is 11:26 PM.