Project

General

Profile

Bug #59528 ยป getimagesize.diff

rengaw83, 2014-06-12 15:40

View differences:

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
    (1-1/1)