Hello, I've got a working version available of a new module I originally designed to work with CGI::Application. (Although, but the time I got done with it, it doesn't depend on CGI::Application at all). The module is tenatively named CGI::MediaDB and is designed to help with tasks associated with managing uploaded media for a database-backed website. Services include: - creating an arbitrary number of varying size thumbnails for images - handling writing the files to disk, and inserting them into the database, storing mime_type, width, height and file extension - deleting media and associated thumbnails based on form input - creating a hash of data in a useful format to pass to a templating system. The distribution includes a complete test suite that has been tested against Postgres and MySQL. Sample SQL files to create your "media" table are also included. The documentation could probably benefit from some more concrete usage examples, though. You can download and try it here: http://mark.stosberg.com/perl/CGI-MediaDB-0.02.tar.gz The documentation... with broken links, is here: http://mark.stosberg.com/perl/mdb.html I believe it does require Image:;Magick. There should be a way to remove this dependency if thumbnails aren't being created. [checks code.]. Ah heck, I already designed it that way. So if you don't have Image::Magick, the tests may fail, but it should work anyway. I'm interested in feedback, especially on the interface design and feature set. Mark -- http://mark.stosberg.com/ --------------------------------------------------------------------- Web Archive: http://www.mail-archive.com/suppressed/ To unsubscribe, e-mail: suppressed For additional commands, e-mail: suppressed
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.