Good point about there not being a small suffix.
maybe we can agree on something like:
Code:function determine_image_sizetype() { global $ihConf; $this->sizetype = 'generic'; if($ihConf['large']['suffix'] != '') { if (strstr($this->src, $ihConf['large']['suffix'])) { $this->sizetype = 'large'; } } if($ihConf['medium']['suffix'] != '') { if (strstr($this->src, $ihConf['medium']['suffix'])) { $this->sizetype = 'medium'; } } if ((intval($this->width) == intval($ihConf['small']['width'])) && (intval($this->height) == intval($ihConf['small']['height']))) { $this->sizetype = 'small'; } }


Reply With Quote

