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)

Event Timeline

Strainu created this task.Oct 19 2016, 9:23 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptOct 19 2016, 9:23 AM
Restricted Application added a subscriber: TerraCodes. · View Herald TranscriptOct 19 2016, 9:24 AM
Strainu closed this task as Resolved.Dec 12 2016, 7:29 PM
Strainu claimed this task.
Strainu added a subscriber: borisfba.