Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Special Interests > Visual Media > Web Design and Development

Reply
 
Thread Tools Search this Thread Display Modes
Old Oct 6, 2012, 02:22 PM   #1
macmesser
macrumors 6502
 
Join Date: Aug 2012
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.
macmesser is offline   0 Reply With Quote
Old Oct 7, 2012, 09:10 AM   #2
jamietshaw
macrumors member
 
Join Date: Sep 2009
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.
jamietshaw is offline   0 Reply With Quote
Old Oct 8, 2012, 05:24 AM   #3
SrWebDeveloper
macrumors 68000
 
SrWebDeveloper's Avatar
 
Join Date: Dec 2007
Location: Alexandria, VA, USA
 
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.
__________________
Jim Goldbloom
Sr. Web Developer, owner GoldTechPro, LLC
http://www.GoldTechPro.com
SrWebDeveloper is offline   0 Reply With Quote
Old Oct 19, 2012, 01:28 PM   #4
macmesser
Thread Starter
macrumors 6502
 
Join Date: Aug 2012
Quote:
Originally Posted by SrWebDeveloper View Post
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.
Thanks to both of you. I had decided on a length of 70 characters and will build them from custom fields used to record various attributes such as subject, artist, title, etc. in order to provide some content for image searching.
macmesser is offline   0 Reply With Quote

Reply
MacRumors Forums > Special Interests > Visual Media > Web Design and Development

Tags
image file names, web filename length

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
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

Forum Jump

All times are GMT -5. The time now is 02:34 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC