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

Collapse
Posted by Dave Bauer on
OK, here is what I recommend.

Change the return style from image::convert_to_sizes to return something like this:

[list [list thumbnail {-strip -resize 150x150} view {-strip -resize 500x500]]

and fix the callers to intepret the new format. Since this is a private procedure and it is only called in two places, and only one place actually uses the dimensions part of the size specification.

Collapse
Posted by Richard Hamilton on
Dave,

That sounds like a good suggestion. The only problem I foresee with that is that putting -strip in there will cause an error on earlier versions of ImageMagick.

It would also be useful to apply a change to the xowiki specific image resizing code.

Regards
Richard