Unable to get Images to Display Online by their Names!

Discussion in 'Programming' started by Aitch, Dec 1, 2009.

  1. #1
    Hi folks.

    I have a property website that displays images from a form onto a template. So if you were to add a new property and upload your images, they would then appear on you ad page for all to see. However, there is a problem.

    Some folks name their images after the name of their property, or with other related text such as 'Bangkok Condo', or 'Thai Studio Apartment' and so on.

    But every image, irrespective of its name, always displays in the formats below:

    /image_apartment/small_31016588b43aec8efde90fec6bea92d9.jpg (for thumbs)

    /image_apartment/big_31016588b43aec8efde90fec6bea92d9.jpg (for full size)

    As you can see, with names like this, it's little wonder I can't get any SEO traffic via image search.

    It's been like this since the start of the project some 5 years ago, and I've always requested a resolve whenever there's been a site update, but no developer has ever come back with one.

    Perhaps it can't be done? I don't know I'm not a developer! But for the few minutes it takes to make this post, it's certainly worth asking.

    Btw, here's a sample page: http://www.mrroomfinder.com/detail.php?id=437

    Thanks in advance

    Andii
     
    Aitch, Dec 1, 2009 IP
  2. pixmania

    pixmania Peon

    Messages:
    229
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Well just on the fly, your images don't have an alt tag so maybe you could add an alt="<?php echo $title;?>" tag or using some other variable to put the "information you want" from the page to an image. At least then you have a description for the image, the image name is not that important.
     
    pixmania, Dec 1, 2009 IP
  3. Aitch

    Aitch Well-Known Member

    Messages:
    113
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    103
    #3
    Thanks for that pixmania. So what you're saying is that if i were to do a Google Image search, for example, and the image name read as: big_31016588b43aec8efde90fec6bea92d9.jpg (or similar), then that image would still be able to compete with others in the search results, providing it had the keyword phrase in the alt tag?

    This sounds like an interesting idea, and images with alt tags are better optimised anyway, but i've just done a search for 'Bangkok condo' and most of the images when opened, have that phrase in the image name, either broad or targeted.

    Thanks for your response :) I've taken it on-board and noted it down, but i really think that to be competitive the key phrase has to be in the image name too. I could be wrong of course as i've only done some brief research, but so far, it looks like this is the dominating factor for image optimisation.

    Cheers

    Andii
     
    Aitch, Dec 1, 2009 IP
  4. pixmania

    pixmania Peon

    Messages:
    229
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    What I suggested will help, but if you want it as part of the name.jpg, you will need to alter how images are uploaded, right now I am of the impression that images are renamed to a rand() number, I guess you could alter that to include a name, the reason its altered in the first place is that some images might have the same name.

    Perhaps you could do a if exists function, then alter the name, but still include the name, if you post here the image upload function, maybe someone will supply you an alternative function....
     
    pixmania, Dec 1, 2009 IP
  5. Aitch

    Aitch Well-Known Member

    Messages:
    113
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    103
    #5
    Hi forum.

    Just thought i'd give this request a final push before laying it to rest. If there is anyone who could suggest a solution to the problem of image names getting lost when loaded to a template, that would be appreciated.

    Thanks in advance

    Andii
     
    Last edited: Jan 7, 2010
    Aitch, Jan 7, 2010 IP