Add post and gallery Northern Light, minor fix to gallery generator script

This commit is contained in:
2016-03-07 22:20:33 +00:00
parent ec958feac6
commit 43ab67103b
3 changed files with 74 additions and 2 deletions

View File

@@ -123,7 +123,7 @@ $oConsole
if (strpos($sExport, 'x') !== false) {
list($iX, $iY) = explode('x', $sExport);
if ($iX > $oSourceSize->getWidth() || $iY > $oSourceSize->getHeight()) {
if ($iX > $oSourceSize->getWidth()) {
$oOutput->writeln(' <comment>[skipping]</comment>');
continue;
}
@@ -162,7 +162,7 @@ $oConsole
} else {
$aExportsize = $sExportImage->getSize();
if ($iX != $aExportsize->getWidth() || $iY != $aExportsize->getHeight()) {
$oOutput->writeln(sprintf(' [%dx%d] vs [%dx%d]', $iX, $iY, $aExportsize->getWidth(), $aExportsize->getHeight()));
$oOutput->writeln(sprintf(' [%dx%d]', $aExportsize->getWidth(), $aExportsize->getHeight()));
} else {
$oOutput->writeln(sprintf(' [%dx%d]', $iX, $iY));
}