iReflect - DokuWiki images do have a reflection

iReflect hooks into the sendfile mechanism and creates an reflected image version which is delivered to the browser instead of the original. The modified file will be stored as a cache file without touching the original cache file.

It is originaly based on the reflect.php - modified by imageflow. In version 2009-01-19 the reflection code has been changed to the more flexible one of php.net.

iReflect does support transparent PNGs. If the return_type (see below) is set to PNG, the reflection will be alpha-transparent.


Syntax

{{reflect><IMG>($<PARAMS>)|<ALT>}}

e.g.
{{reflect>pb110615.jpg?200$bgc=#aaa&fade_start=20|}}

The syntax is easy: it uses the original image syntax, without the brackets (e.g :namespace:image.png?400×100) and the known alternative text syntax for images - split by the pipe.

In addition there is the $<PARAMS> section where parameters are defined as key=value pairs, split by an ampersand ('&'). The syntax is similar to the image syntax - you can insert two whitespaces at either end of the image to right- or left align it.

Parameter Value
bgc background color of the reflection as hex value [default: #fff]. This can be defined as RGBA hex value too
reflect_height value between 0 and 1 [default: 0.5] - how heigh will the reflection be
fade_start value between 1 and 127 [default: 80]
fade_end value between 1 and 127 [default: 0]
return_type jpg or png [default: jpg]

Download

Version Requirement
2009-03-02 see previous
2009-01-19 see previous
2009-01-16 see previous
2008-06-04 Current DokuWiki Stable

Support

If you need help or have suggestions on how to improve this plugin, feel free to contact us.

 

© Copyright 1996 - 2012, i-net software; All Rights Reserved.