Wikimedia

Create a LUA module that contains commonly-used image functions

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)

Docs

Task tags

  • images
  • lua
  • code

Students who completed this task

fba

Task type

  • code Code
close

2016