Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-07-23 23:43:08

driz
Member
From: Huddersfield, UK
Registered: 2008-03-18
Posts: 441
Website

Improved Image Uploading

One the things thats always bothered me in TXP is giving image ID’s and then dumping them in the /images/ folder as 1.png and 1t.png

What would be better if it was done like: /images/2009/07/image_name.jpg and then the thumbnail had -thumb as the extension to the name!
In addition to this, if you alter the name of the image, the image also changes inside the folder it is stored in.

Thoughts? One of the biggest reasons for me for such a feature would be the easy identification of images when looking in the FTP, as well as general organization.


~ Cameron

Offline

#2 2009-07-24 06:24:53

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,090
Website GitHub Mastodon Twitter

Re: Improved Image Uploading

How would you secure duplicate name content? I know that there are ways of checking but this would actually slow things down.

One of the things I like with txp is that it renders ftp almost unnecessary.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#3 2009-07-24 11:37:37

driz
Member
From: Huddersfield, UK
Registered: 2008-03-18
Posts: 441
Website

Re: Improved Image Uploading

You could do it the same way OS X handles duplicates, in that they add the -2 to the end of file if their is already another one present. So you mite upload an image of a butterfly twice and the url would be: /images/2009/07/butterfly.jpg and /images/2009/07/butterfly-2.jpg


~ Cameron

Offline

#4 2009-07-24 12:30:44

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Improved Image Uploading

When using a CMS, you shouldn’t be using FTP to find an image… that’s what the CMS is for.

Offline

#5 2009-07-24 12:44:56

driz
Member
From: Huddersfield, UK
Registered: 2008-03-18
Posts: 441
Website

Re: Improved Image Uploading

ruud wrote:

When using a CMS, you shouldn’t be using FTP to find an image… that’s what the CMS is for.

I’m not, but I’d much rather my images on my site be meaningful names rather than just numbers.


~ Cameron

Offline

#6 2009-07-24 18:01:00

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

Re: Improved Image Uploading

i dunno i don’t buy the ‘duplicate name content’ reason for having numbered image filenames. i’ve heard that reason for years already. as far as i can tell, theres no unique name check for the “image name” field in txp either. and yet theres a check for unique article titles to ensure no overlapping urls. why would this be an issue for images?

Last edited by iblastoff (2009-07-24 18:01:16)

Offline

#7 2009-07-24 19:15:45

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: Improved Image Uploading

You may be able to voice your input to the right person


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#8 2009-07-24 19:42:17

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Improved Image Uploading

How would you handle upgrades on existing installs that still use numeric images names?

Offline

#9 2009-07-26 13:58:17

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

Re: Improved Image Uploading

ruud wrote:

How would you handle upgrades on existing installs that still use numeric images names?

well thats just it i suppose. the same issue stems towards one day having native unlimited custom fields without paying $20 for gerhards plugin (i have it and love it, but shouldn’t be necessary), or unlimited categories instead of 2 per article in which we currently have to rely on robert sables defunct plugin that i cannot find a recent download for. i think its been taken over by the community in some 30+ page thread somewhere or other. personally i am all for breaking seamless upgrades in favour of vastly improving txp out of the box. of course this is easy for me to say, not being a dev for txp that has to worry about such things :)

Last edited by iblastoff (2009-07-26 13:59:05)

Offline

#10 2009-07-26 20:43:22

driz
Member
From: Huddersfield, UK
Registered: 2008-03-18
Posts: 441
Website

Re: Improved Image Uploading

Why would upgrades be a problem? Perhaps the filename should be decided by the user in a text input, so for example you type myimage and it will be saved as myimage.png. And ALL other images that have already been uploaded that have names such as 1.png or 1t.png will be said as that in the textbox. That would solve it!!!


~ Cameron

Offline

#11 2009-07-26 21:40:04

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Improved Image Uploading

LOL. so you want to throw away all the existing, stored image names in the database and replace them with numbers?
Sure, that would “solve” it, but do you really think that’s a good solution?

Offline

#12 2009-07-26 22:28:56

driz
Member
From: Huddersfield, UK
Registered: 2008-03-18
Posts: 441
Website

Re: Improved Image Uploading

No, I meant have an image name and then the filename, the filename being what its called in the database and the directory.


~ Cameron

Offline

Board footer

Powered by FluxBB