This commit is contained in:
parent
4decaffd53
commit
e22ece8c00
@ -41,17 +41,15 @@ class Image extends Text
|
||||
$parentWriter = $this->parentWriter;
|
||||
|
||||
$content = '';
|
||||
if (!$parentWriter->isPdf()) {
|
||||
$imageData = $this->element->getImageStringData(true);
|
||||
if ($imageData !== null) {
|
||||
$styleWriter = new ImageStyleWriter($this->element->getStyle());
|
||||
$style = $styleWriter->write();
|
||||
$imageData = 'data:' . $this->element->getImageType() . ';base64,' . $imageData;
|
||||
$imageData = $this->element->getImageStringData(true);
|
||||
if ($imageData !== null) {
|
||||
$styleWriter = new ImageStyleWriter($this->element->getStyle());
|
||||
$style = $styleWriter->write();
|
||||
$imageData = 'data:' . $this->element->getImageType() . ';base64,' . $imageData;
|
||||
|
||||
$content .= $this->writeOpening();
|
||||
$content .= "<img border=\"0\" style=\"{$style}\" src=\"{$imageData}\"/>";
|
||||
$content .= $this->writeClosing();
|
||||
}
|
||||
$content .= $this->writeOpening();
|
||||
$content .= "<img border=\"0\" style=\"{$style}\" src=\"{$imageData}\"/>";
|
||||
$content .= $this->writeClosing();
|
||||
}
|
||||
|
||||
return $content;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user