Remove the image resize ratio in OpenCart
问题 I've look everywhere on how I could remove the image resizing in OpenCart but haven't find nothing about that. I need that it resize but don't keep the ratio. I want the image to be just like I set it. Here's the resize code in the system/library/image.php public function resize($width = 0, $height = 0) { if (!$this->info['width'] || !$this->info['height']) { return; } $xpos = 0; $ypos = 0; $scale = min($width / $this->info['width'], $height / $this->info['height']); if ($scale == 1) { return