On Monday 13 August 2007 23:15:57 Tels wrote:
Moin,
On Monday 13 August 2007 22:57:37 Rob Church wrote:
On 13/08/07, Emanuele D'Arrigo manu3d@gmail.com wrote:
I thought this could be useful to extend the wiki way of doing things to images, especially SVGs. The history interface would remain the same but the browser would put the two images on two different layers, one obscuring the other, and a simple button would allow (ideally through javascript) to swap the two quickly. Of course a standard diff would then be available to inspect the differences in the actual code if the image in question is SVG.
What do you think?
I think it sounds like a good idea, and likely very easily doable.
I think it would be "easily" possible to overlay the two images on top of each other, with 50% of the top image (new?) transparent, and then let JS switch the transpareny around or let it wave from 25% to 50%.
Downsides is you need JS and a browser with working transparency.
All the best,
Tels
Here is a hastiyl thrown together proof-of-concept, done with prototype and script.acoul.us. It would be trivial to add buttons to control the transparency (but I am too tired):
Tested on Firefox and Opera under Linux.
Konqueror 3.5.6 fails the transparency effect, renders the SVG wrong and generally takes ages to decompress the JS library. Oh well. But "flashing" the second image would still work.
All the best,
Tels
PS: The two SVGs were created from the two attached texts by Graph::Easy, automatically. PPS: Can you spot the third difference? :)