It would be nice if the transclusion syntax for images can be enhanced
- by an option to set an image description (not alt-tag / title tag)
- and maybe an option to hide/show some toolbar
so you can do things like this:
It would be nice if you could use normal wikimarkup for the image description. Furthermore it would be good to have to ability to hide/show a toolbar:
- toolbar = 0: Show no toolbar
- toolbar = 1: Show a zoom icon whichs links to the image (item's page)
- toolbar = 2: Show zoom icon + accessibility icons
Maybe there is a way to integrate (for a first try) the things I developpped for Accessible Moin. Clicking on the icons with the palette renders the image in a special way so people with a color vision deficiency can perceive important details. If this does not help you can also render the image in gray (with an improved algorithm which preserves important details)
You can run it from the command line.
One big problem is, that both image correction effects run very slow. And there is no way to optimize that.
Maybe one solution would be to do some (C based) PIL plugin / extension module like http://mail.python.org/pipermail/image-sig/2008-May/005003.html. That might be faster. So we can do something like this:
Ok. I have now done a Python/PIL extension module ("Binary"), see C2GExtensionModule.zip. Whereas the Python implementation takes for a certain reference image 3.015s, the C implementation now does it within 0.015s! Wow!
I have now also done a Python/PIL module for the daltonize effect, "), see DaltonizeExtensionModule.zip. This is also quite fast. Whereas the Python implementation takes for the above reference image 6.320s, the C implementation now does it within 0.017s!
GreyColor.py shows an action which currently converts all attachment jpg images of a page to grey color images using the method color2gray. The results are stored by the action cache. It can be changed to convert only one submitted image by e.g. using some form element data. To get more speed we do the calculation on a resized image by im.thumbnail((640, 640), Image.ANTIALIAS) to a width or height not bigger than 640. Afterwards it is resized to it's orignial size by im.resize(old_size, Image.ANTIALIAS)
The images are stored at e.g. moin-1.z/wiki/data/cache/wikiconfig/sendcache (z >= 7.1)