Skip to content

Commit 018483a

Browse files
gvollbachmjansenDatabay
authored andcommitted
Removed unnecessary code parts
1 parent 7440eae commit 018483a

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

components/ILIAS/Badge/classes/Flavours/class.ilBadgePictureMachine.php

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ class ilBadgePictureMachine extends AbstractMachine
4646
public function __construct()
4747
{
4848
parent::__construct();
49-
$this->extract_pages = new ExtractPages();
5049
$this->crop = new CropSquare();
5150
}
5251

@@ -74,27 +73,11 @@ public function processStream(
7473
$this->definition = $for_definition;
7574
$this->information = $information;
7675

77-
$page_stream = $this->extract_pages->processStream(
78-
$this->information,
79-
$stream,
80-
new PagesToExtract(
81-
false,
82-
$this->definition->getWidths()['xl'],
83-
1,
84-
false,
85-
100
86-
)
87-
)->current()?->getStream();
88-
89-
if ($page_stream === null) {
90-
return;
91-
}
92-
9376
$i = 0;
9477
foreach ($for_definition->getWidths() as $width) {
9578
yield new Result(
9679
$for_definition,
97-
$this->cropImage($page_stream, $width),
80+
$this->cropImage($stream, $width),
9881
$i,
9982
true
10083
);
@@ -110,7 +93,6 @@ protected function cropImage(
11093
? 100
11194
: $this->definition->getQuality();
11295

113-
11496
return $this->crop->processStream(
11597
$this->information,
11698
$stream,

0 commit comments

Comments
 (0)