mirror of
https://github.com/Karaka-Management/oms-Labeling.git
synced 2026-01-12 09:38:41 +00:00
15 lines
331 B
PHP
15 lines
331 B
PHP
<?php declare(strict_types=1);
|
|
|
|
$layout = $this->data['layout'];
|
|
$template = \reset($layout->template->sources);
|
|
|
|
$item = $this->data['item'];
|
|
|
|
$label = include_once $template->getAbsolutePath();
|
|
|
|
if (isset($this->data['path'])) {
|
|
\imagepng($label->render(), $this->data['path']);
|
|
} else {
|
|
\imagepng($label->render());
|
|
}
|