@@ 57-59 (lines=3) @@ | ||
54 | $pathResolver = new PathResolver($this->relativePath); |
|
55 | ||
56 | // width |
|
57 | if (! isset($data['width']) || ! is_integer($data['width']) || $data['width'] < 1) { |
|
58 | $data['width'] = 800; |
|
59 | } |
|
60 | $width = $data['width']; |
|
61 | ||
62 | // grayscale |
|
@@ 75-77 (lines=3) @@ | ||
72 | $orientation = Utilities::interpretOrientation($data['orientation']); |
|
73 | ||
74 | // height |
|
75 | if (! isset($data['height']) || ! is_integer($data['height']) || $data['height'] < 1) { |
|
76 | $data['height'] = 600; |
|
77 | } |
|
78 | $height = $data['height']; |
|
79 | ||
80 | // foreground |