Wiki source code of User Macro: me-image - Image lightbox with Confluence style
Last modified by Normann P. Nielsen on 2013/08/27 19:43
Hide last authors
| author | version | line-number | content |
|---|---|---|---|
| |
1.1 | 1 | Images are resized on the fly, making it **pretty slow** - on the other hand, no cache or thumbnail pre-making is needed |
| 2 | |||
| 3 | |||
| 4 | {{code}} | ||
| 5 | ## @param path:title=Status|type=string|required=true|desc=Path to the Image | ||
| 6 | ## @param image:title=Status|type=string|required=true|desc=Image Name | ||
| 7 | ## @param group:title=Status|type=string|required=true|desc=Group | ||
| 8 | |||
| 9 | ## Thumb and Display Sizes: | ||
| 10 | #set($ThumbSize=200) | ||
| 11 | #set($DisplaySize=800) | ||
| 12 | |||
| 13 | <img src="/media/${parampath}thumbs/${ThumbSize}pxHigh/${paramimage}" class="confluence-embedded-image" title="${paramimage}" data-image-src="/media/${parampath}thumbs/${DisplaySize}pxHigh/${paramimage}"> | ||
| 14 | |||
| 15 | {{/code}} |