Go to main content

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,634
GitHub Twitter

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.


Patrick.

Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.

Offline

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

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 3,196
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.


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern

Offline

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

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 859
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: 3,196
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.


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern

Offline

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

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

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
Member
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,634
GitHub Twitter

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.


Patrick.

Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.

Offline

Board footer

Powered by FluxBB