Page MenuHomePhabricator

Create a LUA module that contains commonly-used image functions
Closed, ResolvedPublic

Description

Create Module:ImageUtils that should contain the following functions:

  • imageOrientation - given a file name, it should return different values for portrait, landscape or square
  • isLandscape, isPortrait, isSquare, isUpright - functions returning a boolean based on the return value of imageOrientation (Upright is the same as Portrait)
  • to be added: more functions

References: https://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual (look for Fiel metadata)