I have very little and big images in my album. I set "Normal Size" to 100px. But little images are pixelized when they are displayed...
So i would like to keep image's original size when my "Normal Size" configuration is bigger than it.
To do it, I modified "ImageGalleryPage.php" lines 272-275 :
if($item->Image()->Landscape())
$normalImg = $item->Image()->SetWidth($this->NormalSize);
else
$normalImg = $item->Image()->SetHeight($this->NormalSize);
by
$normalImg = $item->Image();
if($item->Image()->Landscape() && ($item->Image()->getWidth() > $this->NormalSize) )
$normalImg = $item->Image()->SetWidth($this->NormalSize);
elseif ($item->Image()->getHeight() > $this->NormalSize)
$normalImg = $item->Image()->SetHeight($this->NormalSize);
Hope this help somebody !
Is there another cleaner way to do that ? thanks.