Bug #59528 ยป getimagesize.diff
sysext/core/Classes/Resource/Service/IndexerService.php | ||
---|---|---|
// @todo: this should take remote services into account
|
||
if ($fileInfo['type'] == $fileObject::FILETYPE_IMAGE && !$fileInfo['width']) {
|
||
$rawFileLocation = $fileObject->getForLocalProcessing(FALSE);
|
||
list($fileInfo['width'], $fileInfo['height']) = getimagesize($rawFileLocation);
|
||
if (is_array($imageSize = getimagesize($rawFileLocation))) {
|
||
$fileInfo['width'] = $imageSize[0];
|
||
$fileInfo['height'] = $imageSize[1];
|
||
}
|
||
}
|
||
// If the file is already indexed, then the file information will
|
||
// be updated on the existing record
|