protected function findUnsupportedImageFormats($driver)
{
$this->imagineFactory->injectSettings(array('driver' => ucfirst($driver)));
$imagine = $this->imagineFactory->create();
$unsupportedFormats = array();
foreach (array('jpg', 'gif', 'png') as $imageFormat) {
$imagePath = Files::concatenatePaths(array($this->packageManager->getPackage('Neos.Neos')->getResourcesPath(), 'Private/Installer/TestImages/Test.' . $imageFormat));
try {
$imagine->open($imagePath);
} catch (\Exception $exception) {
$unsupportedFormats[] = sprintf('"%s"', $imageFormat);
}
}
return $unsupportedFormats;
}