Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Adding image names to files?

3stripe3stripe ✭✭
edited October 2005 in Vanilla 1.0 Help
Is there any way it could be possible to add a title tag to each image, that was display instead or in addition to the filename?

Then I could use this as a proper gallery plugin... most of my photos have been named by a camera with fairly boring alphanumerical strings.... :-(


  • MarkMark Vanilla Staff
    *moved to filebrowser category*
  • *moved to my pants*
  • MarkMark Vanilla Staff
    The filebrowser was made with simplicity in mind. I've had a few people ask for things like the option of having a file associated with an image that would allow you to give each image a description. So, you'd put the description in the file, and the description would be pulled from the file and displayed on the page when that image is viewed. This custom name thing is pretty similar. When it comes down to it, I didn't want to overcomplicate the filebrowser. Adding in the custom descriptions does just that. I'm of a mind that the thumbnailer takes care of this task because "a picture says a thousand words". And when it comes to adding a whole new component just to give files a faux-name, isn't it the same amount of work to just go rename your files? I'm not shooting down your idea, I'm just sharing my point of view. What do you think?
  • yes i could rename my files easily enough...

    if it were just for my own personal use, of course, that would cool... and i love how it's so simple.... but if it's a gallery i guess it's designed for other people, who would probs rather see something like "Jim and Bob at Bar X" rather than jimandbob_at_bar_x.jpg (ie the extension isn't really relavent in this context)

    anyone else?
  • 3stripe3stripe ✭✭
    edited July 2005
    ok ok... what about... an option to hide the filename extensions, and display any underscore as a space...

    so 'jim_and_bob_at_bar_x.jpg' would display a title of simply 'jim and bob at bar x' ?
  • MarkMark Vanilla Staff
    edited July 2005
    I've actually been thinking about this request quite a bit. I was thinking that it might be cool to have a single file that sits in a directory and contains filename > file title declarations on a line-by-line basis. It would be easy to load that into an array and just check for filename rewrites on a file-by-file basis. Or, as you say, just replace underscores and remove the file extension. It is worth noting, too, that the filebrowser doesn't require underscores in file names, so you could always name something like "jim and bob at bar x.jpg" and it would work just fine.
  • I would be quite contented with an option to blank out underscores, and omit the extension.

    Would have the added bonus that all the files on your HD would end up properly named as well....
  • This would be quite easy, if you knew what you were doing, right?
  • lechlech Chicagoland
    Mark, you mean like this: ? It's something I hacked together but it gets the job done. Not as glitzy as filebrowser, but images shouldn't be too difficult to pull off on your own. All the icons are base64 encoded into a single file, otherwise you can easily link to images from another file. And no, this isn't filebrowser :D
  • edited August 2005
    Would it be hard to do few options you could put on or off during the installation process. I guess that if you want to name your files yourself and have a description you'd have to use MySQL. I'd love to name my files and give them description on my website, since even if picture says more than tousand words, little foreword can't hurt anything, they do it in books too ;) :edit: Oh, lech what filebrowser system is that secondagenda site using? I didn't see any name or anything there, or maybe I didn't look close enough.
  • lechlech Chicagoland
    It's nothing special, it's a royaly hacked up version of celeron dudes browser. But I've added some functionality to it since then.
  • But it looks so sweet, and has pretty neat view, something I wouldn't mind in Filebrowser.
  • lechlech Chicagoland
    it's nothing beyond what mark is already doing, and I'm sure with a cleaver addition he could easily add something like this to filebrowser :D
  • I know that Filebrowser is meant to be very small and very easy, speed is the priority, but maybe god.. I mean Mark could add the extension option to FB like Vanilla has, and have an option for FB to use MySQL to store names and such.
  • bring on the extensions!!!!
  • MarkMark Vanilla Staff
    I was thinking about this one last night in a drunken stupor. I think I've thought up a nice little way to accomplish this with very little headache. By the way, I realize that a lot of people are put off by the fact that there are no templates in the filebrowser. First of all, like many people on the board have said, it's supposed to be small and easy to install. That is why I haven't added templates - because I don't want to add any more files to the thing. Also, it's a pretty complicated set of rules that the thing runs through when building the file lists, and I've had to do it in a really wacky (some might say "retarded") way in order to make it speedy. One of my biggest beefs with tiny little apps like this is when they are slow. Why should a simple one-page php file be slow? I'm on a tangent now, so I'll shut up.
  • Yeah well, it's not the size of the program that is slowing it down, hell, PHPBB gets pages down like a cannon, it's mainly the workflow and how much stress it puts on to the database, and always size and speed doesn't go hand to hand. I appreciate that you want to make the FB small (needs a better name btw) but speed and useability are way more important to me, I can't have customers waiting for their browser to load a page that has half the options they waited for.
  • Why not simply use the title exif metadata from jpg's? I'm sure most people's galleries are using jpgs so am I missing something?
  • Not really, mine has lots of gifs and pngs, as well as jpegs. Any solution would need to work for any and all filetypes. FB itself works for anything, so naming things should work for anything as well.
  • Who the hell uses jpg's anymore? PNG is way better format, besides, when talking about program like FB we should always think about the whole demographic, all file formats, not just the ones that are popular. People will use this for more than just pictures.
Sign In or Register to comment.