|
|
|
|
|
|
|
|
$pngFile = $folder->newFile($key . '.png'); |
|
|
$pngFile = $folder->newFile($key . '.png'); |
|
|
$pngFile->putContent($finalIconFile->getImageBlob()); |
|
|
$pngFile->putContent($finalIconFile->getImageBlob()); |
|
|
} catch (\ImagickException $e) { |
|
|
} catch (\ImagickException $e) { |
|
|
$this->logger->info('The image was requested to be no SVG file, but converting it to PNG failed.', [$e->getMessage()]); |
|
|
|
|
|
|
|
|
$this->logger->info('The image was requested to be no SVG file, but converting it to PNG failed: ' . $e->getMessage()); |
|
|
$pngFile = null; |
|
|
$pngFile = null; |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |