Forum OpenACS Development: Re: Photo-Album Includelet for Xowiki

Collapse
Posted by Dave Bauer on
See

ad_proc -private image::get_convert_to_sizes {
} {
   List of sizes to convert an image to. List of maximum width x height.
   @author Dave Bauer (mailto:dave@solutiongrove.com)
   @creation-date 2006-08-27
 
} {
   #TODO make a parameter in content repository
        # avatar size to match gravatar.com
   return [list thumbnail 150x150 view 500x500 avatar 80x80]

Which apparently, I didn't make a parameter yet :)

Quick solution is to just add whatever sizes you want there.

Longer solution is to add the parameter to CR and use that.

Note these are square dimensions b/c it will make either dimension no larger than those sizes which retaining the aspect ratio of the original.

Collapse
Posted by Richard Hamilton on
Ok, well I could begin by having a look at adding the parameters! Probably could be a comma delimited list of max dimensions:

{avatar 80,thumbnail 150,view 500}

I would still need the bulk upload feature though. Perhaps I could rip that out and adapt it.

Which CR user interface do you use when working on things like this? xowiki?

I am not exactly clear exactly where and how the user interface for the batched image uploads would best live. Should that be a feature added to xowiki (bulk upload of content items) or added elsewhere?

Also, do we have a way to organise the display of xowiki objects in the admin pages into folders? I suppose if that were possible then there would be no reason at all not to go that route.

Richard