This will allow a lot of nice tools like built-in rotation and so on, as well as being able to strip out lots of jQuery UI stuff and simplify the core code.
Will also allow:
- Easy implementation of the region selector for T269818
- Loading of much higher res images perhaps via a tiled image engine
This should re-use the packaging already done in T283917.
Also, there should be some "global" access to the OSD viewer object in JS so other gadgets can interact with it.