Conditions | 2 |
Paths | 2 |
Total Lines | 17 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
51 | public function getCombinedImage() |
||
52 | { |
||
53 | $im = new \Imagick(); |
||
54 | |||
55 | foreach ($this->screenshots as $screenshot) { |
||
56 | $im->readImageBlob($screenshot); |
||
57 | } |
||
58 | |||
59 | /* Append the images into one */ |
||
60 | $im->resetIterator(); |
||
61 | $combined = $im->appendImages(true); |
||
62 | |||
63 | /* Output the image */ |
||
64 | $combined->setImageFormat("png"); |
||
65 | |||
66 | return (string)$combined; |
||
67 | } |
||
68 | |||
77 |