Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2016-01-19 10:24:05

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,256
Website

Better file image names conversion on upload

Feature idea for the next release:

On upload, convert automatically all image file names to proper ones: change spaces to hyphens, change accented and uppercase characters to lower cases and non accentuated.

Offline

#2 2016-01-20 01:42:48

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 1,643
Website

Re: Better file image names conversion on upload

Why is that needed? AFAICT, Texpattern saves the image file to the file system with a number (e.g. 50.png) and only uses that for any reference. The original file name is only used as a user friendly thing. And that name can be edited on the Image edit panel.

Now if you are actually talking about the File panel (uploads text files or pdfs etc), you may have a case. I’m not convinced though, a reasonably modern file system should be able to handle that.

Online

#3 2016-01-20 06:49:21

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 858
Website

Re: Better file image names conversion on upload

For SEO – image naming is a huge ranking factor for images…. a number means nothing

Offline

#4 2016-01-20 06:57:39

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 1,643
Website

Re: Better file image names conversion on upload

tye wrote #297494:

For SEO – image naming is a huge ranking factor for images…. a number means nothing

Oh, I don’t disagree with that, but that is unrelated to Pat’s request. And it has long annoyed me that the images are stored with those silly numbers, instead of just keeping the (original) file name.

Online

#5 2016-01-20 07:57:23

philwareham
Core designer
From: Farnham, Surrey, UK
Registered: 2009-06-11
Posts: 3,188
Website

Re: Better file image names conversion on upload

I agree about the image names. If someone were to offer to create a patch for this at 4.7 then I would give it my support. It would need to have some backwards compatibility (for any existing image uploads).

Offline

#6 2016-01-21 00:23:27

maniqui
Moderator
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: Better file image names conversion on upload

tye wrote #297494:

For SEO – image naming is a huge ranking factor for images…. a number means nothing

There is a way for having SEO-friendly image names (and in a pretty friendly/flexible way) in Textpattern.
It involves a little .htaccess trick (using regexes).
In case you would like to know the solution, check this thread


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#7 2016-01-21 07:25:49

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,256
Website

Re: Better file image names conversion on upload

Sure Julian ;)

But this excellent advice doesn’t work with all servers :(

The alternative is to use the kuo_image_clean_url plugin by Petri Ikonen which involves image file names.

Offline

Board footer

Powered by FluxBB