Enlarging Images Bug?
-
When using the width and height parameter to display a product or category image, if these are larger than the original image, the result will be an image with a white bar to the right and/or at the bottom, as the image is not being scaled up, but a canvas of the larger size is allocated.
A fix appears to be to modify the start of ImageProcessor::scale() [plugins/shopp/core/model/Image.php]:
// Allocate a new true color image [REMOVED] //$this->canvas($width, $height, $alpha); // Determine the dimensions to use for resizing $this->dimensions($width, $height, $fit, $dx, $dy, $cropscale); // Allocate a new true color image [ADDED] $this->canvas($this->width, $this->height, $alpha);
Unless I have overlooked something?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Enlarging Images Bug?’ is closed to new replies.