I would like to adjust large image sizes to the user's screen port by Javascript. Is it possible to address ImageMagick by JS, and if yes, how?
Bernhard
On Mon, Sep 24, 2012 at 11:03 AM, Scheid, Bernhard < Bernhard.Scheid@oeaw.ac.at> wrote:
I would like to adjust large image sizes to the user's screen port by Javascript. Is it possible to address ImageMagick by JS, and if yes, how?
Not directly, but you can use JS to request a thumbnail of a specific size from MediaWiki using the 'imageinfo' API action.
This will perform a resize on the backend (depending on how the wiki is configured) and return you the URL.
-- brion
mediawiki-l@lists.wikimedia.org