Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
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
Re: Better file image names conversion on upload
For SEO – image naming is a huge ranking factor for images…. a number means nothing
Offline
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
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
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
Offline
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