I created a module based on imageapi and imagecache_actions that provides imagecache actions using scale-9 formatting. Currently there are resize, scale and overlay actions using this method. I think it could be useful to others and would like to maintain the project on drupal.org.
If you're unfamiliar with scale-9 you can read about it in Adobe's livedocs for Flash/Flex:
livedocs.adobe.com/flex/2/docs/00000976.html
Scale-9 formatting lets you define 9 regions on the image that scale independently. Basically, it lets you scale image assets without distorting border features. I started this as part of a personal project to frame varying sized images using imagecache.
A live example can be viewed here:
Thanks,
Eric de Groot
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | imagecache_scale9actions.tar_.gz | 5.51 KB | edegro |
| #1 | imagecache_scale9actions.tar_.gz | 5.49 KB | edegro |
Comments
Comment #1
edegro commentedI abandoned imageapi integration since it requires function prefixes of imageapi_ and I fixed some others. All functions have the proper module prefix now.
Comment #2
avpadernoComment #3
avpadernoThe first application has been this one: #551920: edegro [edegro].
Comment #4
edegro commentedThe above version had a form bug on one of the actions from my renamings. Please review this one instead. Thanks.
Comment #5
avpadernoAny control structure should always use the curly brackets.
Comment #8
avpaderno