Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
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
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
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
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
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
Re: Improved Image Uploading
You may be able to voice your input to the right person
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline
Re: Improved Image Uploading
How would you handle upgrades on existing installs that still use numeric images names?
Offline
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
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
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
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