我有一个问题,我想在product.php文件中显示原始大小的图像产品,而不调整其大小
$this->data['thumb'] = $this->model_tool_image->resize($product_info['image'], $this->config->get('config_image_thumb_width'), $this->config->get('config_image_thumb_height'));
然后我想添加$this->config->get('config_image_thumb_width')和另一条语句,以获得原始大小,从而在特定情况下更改
提前感谢
这应该足够了(一定要更改条件
$this->data['thumb'] = HTTP_SERVER . 'image/' . $product_info['image'];
if(.. CONDITIONS HERE FOR RESIZED ..) {
$this->data['thumb'] = $this->model_tool_image->resize($product_info['image'], $this->config->get('config_image_thumb_width'), $this->config->get('config_image_thumb_height'));
}