Page MenuHomePhabricator

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


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: (look for Fiel metadata)