On 1/22/2011 4:44 AM, Colin wrote:

Real case scenarios when this would be useful include plugins that provide:

- a drag-and-drop HTML5 upload interface which over-rides the default silo
- add links to something like Picnik for basic image editing etc along
the top
- add image editing/cropping/resizing tools
- add buttons for different sizes and content.

None of these examples are things that should be added to the Habari silo plugin, though. I'm not sure if that was the implication of this or if it was otherwise, but the features that are described here (or the hooks to enabled them) should be added to core, not to the silos themselves.

Even then, it should be possible (although admittedly not very straightforward) to add many of these features to all silos via plugin.

Please bear in mind that the silo functionality was NOT intended to be exclusive interfaces into different storage mechanisms. It was meant to produce a unified API to media storage that could be accessed through a single GUI, and produce that single GUI so that other plugins could hook into it to alter the display.

For example, the silo system should allow for a plugin to expose (via streamhandlers) a file stored locally to a cropping tool, that would save the cropped file to S3, and insert the file into a post as part of a slideshow via a special insertion button in the dropdown. There would be multiple plugins required to provide this functionality: a local file silo (like the Habari silo), a cropping plugin, an S3 plugin, and a slideshow plugin that would provide the javascript to both show the slideshow and add the menu action item to image/* content types displayed in the media tray.

Silo plugins should strive to not provide any functionality that is not specific to their storage mechanism, because it limits what output is possible in a post. I think it's ok (for now) to provide insertion buttons for differently-sized images, but ultimately it might be better to have a system-provided mechanism for this, since many services (SmugMug, Flickr, Picasa?) provide that feature internally. A separate cropping/resizing plugin could enable this for silos that don't provide it natively.

Owen



--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/habari-dev

Reply via email to