From: Verdon V. <ve...@ve...> - 2007-01-05 14:25:01
|
Hi Shaun, On 5-Jan-07, at 9:02 AM, Shaun Murray wrote: > > On 3 Jan 2007, at 14:27, Verdon Vaillancourt wrote: > >> * Core image upload function (perhaps added to core/class/File.php) > > I was thinking about this this morning when working out how http:// > www.huddletogether.com/projects/lightbox2/ might be used to present > images in blog or a photoalbum rewrite or in an ecommerce module > where you want small images in the description but big images, or > multiple images. > > I'd like to see a core Image class instead of bundling into File like > we used to. Maybe it's parent is File so that there's common > functions but there's different requirements often such as > thumbnailing, resizing, watermarking and viewing. > > I was also thinking that an 'album' class was needed to manage a > group of images or maybe this should be able to more generally manage > a group of files including audio, video and normal files. Then with > an album core class available it'd be easier to upload, present and > manage multiple images in a standard way across the modules. I've come to realize since my initial post that there is a fairly good image class in File Cabinet (that's what the Featured Photo mod is using and it seems a good example of how it might be used) but it's not as complete as what you're describing. I wasn't really looking there for 'core' things. I guess that's just semantics and in the long run probably doesn't matter where things are located in the file system, but I was considering File Cabinet a mod and not core (albeit a core module). Another way it might have been handled would have been to have put File Cabinet's file and image classes in /core/ class/ and I might have found them there. You say tomato and I say tomato ;-) Anywise, I agree that thumbnailing/resizing and watermarking are critical functions. BTW... thumbnailing/resizing is still available in /core/class/File.php > > Have a play with lightbox2 btw. It's lovely. That is a nice visual effect. Someone has made a mod for zen-cart (open source e-commerce solution) that uses it and it's pretty popular. rgds, verdon |