HomePhabricator

Updated mediawiki/extensions Project: mediawiki/extensions/ParsoidBatchAPI…

Authored by tstarling.

Description

Updated mediawiki/extensions Project: mediawiki/extensions/ParsoidBatchAPI deceda36737ecd68c57f65910a6db879ef764a97

Fix support for height parameter and mustRender

  • Validate txopts as if they were image link parameters, by passing them through $handler->validateParam().
  • Fill in the default width if it is not set, like in Linker::makeImageLink(). Parsoid always sets the width if a thumbnail format is requested, so we can assume that the source width is desired, which reduces the amount of code somewhat. This allows transform requests with only a height to work -- box scaling is done in MediaHandler::normaliseParams().
  • Always transform the image, even if no txopts is given. This matches the behaviour of Linker::makeImageLink() and is required for mustRender() support. Parsoid will happily process the thumbnail output even if it didn't ask for it.

Bug: T111870
Bug: T112045
Change-Id: I56d28e9ae85b03ac59367fb2613da9f6b3987b4a