Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2009-05-11 10:31:43
- carrotrope
- Member
- From: Edinburgh
- Registered: 2007-03-16
- Posts: 39
Retaining filenames of uploaded images?
Hi all,
I’m building a Textpattern site for an artist who is very set on optimising her images so that they appear in Google Image Search. One of the ways I’m aware of to make this happen is to make sure that images are named more descriptively (eg artist-name-artwork.jpg as opposed to DSC-1002.jpg)
However, Textpattern makes this difficult as every image uploaded is renamed to the ID number – is there any way to get around this? Something I’m already missing in Textpattern? A plugin perhaps?
Any help would be much appreciated!
Jez
Offline
#2 2009-05-11 11:23:00
- masa
- Member
- From: Asturias, Spain
- Registered: 2005-11-25
- Posts: 1,091
Re: Retaining filenames of uploaded images?
carrotrope wrote:
However, Textpattern makes this difficult as every image uploaded is renamed to the ID number – is there any way to get around this?
No, that’s how it works.
Google image search detects relevant images by looking at the visible text that accompanies the images. So optimising captions would go a long way in order to increase the images’ relevance.
As an example you could use the Caption field in Textpattern and output it with upm_image using a custom form such as the following:
<p><img src="<txp:upm_img_full_url />" width="<txp:upm_img_full_width />" height="<txp:upm_img_full_height />" alt="<txp:upm_img_alt />" /></p>
<p class="caption"><txp:upm_img_caption /></p>
Last edited by masa (2009-05-11 11:23:48)
Offline