Re: Store images with extension?
"Heath S. Hendrickson" <[email protected]>
| Newsgroups | gmane.comp.horde.ansel |
|---|---|
| Message-ID | <[email protected]> |
I often wondered initially why the file names were changed to random names. I think it was due to some of the legacy code that Ansel started from (Chuck will correct me if I'm wrong here), but it also got around the penchant of windows users to use illegal (for *nix, anyway) characters (!, $, ?). On a related note, would it be that difficult to store the files with the original names after passing it through a sanitization filter (depending on what host OS Ansel was running under)? This way a backup of the Ansel image directory is directly useable instead of having to use the DB to figure out what file was what. I know that the orginal filename is stored in the DB and presented when the image is viewed/downloaded, but I'm just thinking about it from a lower level. heath Jan Schneider wrote: >What do you think about storing the images in the VFS backend with an >extension matching the actual image format? > >This would fulfill two purposes: If you change the default image format in >the configuration, thumbnail images would be regenerated automatically. And >if you use the Alias feature to display the images directly out of the VFS >backend, they have the correct extension and you could use them outside of ><img> tags, plus the webserver sends the correct Content-Type. > >Jan. > > > -- ansel mailing list - Join the hunt: http://horde.org/bounties/#ansel Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail: [email protected]