We had a bit of trouble with the max_pic_size when defining the width and height in the parameter, eg: 600x480. The problem was it wasn’t resizing portrait style images who’s height was larger then the defined max and where the width was smaller than the max width defined. Ie: images would only resize if their width was wider than the max width, and completely ignore the height. We only noticed it when using smoothgallery as it doesn’t display the overflow.
I jumped into the maxigallery class file: /assets/snippets/maxigallery/maxigallery.class.inc.php and edited the resize check guard for the normal image:
Around line #442. It splits the max pic size parameter into an array and uses them to check against the images sizes..
$sizes = split('x', $this->mgconfig['max_pic_size']);
if($this->mgconfig['max_pic_size']>0 && ($imagesize[0]>$sizes[0] || $imagesize[1]>$sizes[1])) {
$this->createthumb($name,$type,$this->path_to_gal,"");
}else if($this->mgconfig['pic_use_watermark'] || $this->mgconfig['pic_use_dropshadow'] || $this->mgconfig['pic_use_imagemask']){
//if max image size is not reached, but the image needs some changing to be done
$this->createthumb($name,$type,$this->path_to_gal,"",false);
}
Seems to work fine for us
hope this helps someone else too.