Fix bug
This commit is contained in:
parent
0e30b11436
commit
1de9390db3
1 changed files with 9 additions and 3 deletions
|
|
@ -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);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue