This commit is contained in:
grosroro 2012-06-01 19:03:00 +02:00
commit 1de9390db3

View file

@ -117,7 +117,7 @@ class FFMpeg extends Binary
try { try {
$process->run(); $process->run();
} catch (\RuntimeException $e) { } catch (\RuntimeException $e) {
} }
if ( ! $process->isSuccessful()) { if ( ! $process->isSuccessful()) {
@ -198,7 +198,7 @@ class FFMpeg extends Binary
try { try {
$process->run(); $process->run();
} catch (\RuntimeException $e) { } catch (\RuntimeException $e) {
} }
if ( ! $process->isSuccessful()) { if ( ! $process->isSuccessful()) {
@ -244,13 +244,19 @@ class FFMpeg extends Binary
$originalWidth = $value; $originalWidth = $value;
continue; continue;
} }
if ($name == 'value') { if ($name == 'height') {
$originalHeight = $value; $originalHeight = $value;
continue; continue;
} }
} }
} }
if ($originalHeight !== null && $originalWidth !== null) {
$this->logger->addInfo(sprintf('Read dimension for resizin succesful : %s x %s', $originalWidth, $originalHeight));
} else {
$this->logger->addInfo(sprintf('Read dimension for resizin failed !'));
}
if ($originalHeight !== null && $originalWidth !== null) { if ($originalHeight !== null && $originalWidth !== null) {
$dimensions = $format->getComputedDimensions($originalWidth, $originalHeight); $dimensions = $format->getComputedDimensions($originalWidth, $originalHeight);