
Originally Posted by
windsurfer
I have a small problem on the checkout page where the shipping method is selected, the Canada Post gif is 120x28 .The small image height and width in admin is set to 100 x 100 and this affects the Canada Post gif image on the checout page and makes the Canada Post gif 100 x 100. I have been looking but there is no place i can find where the size of that image is controlled, unless there is a way to exclude certain images from being resized by the admin settings.
could you give me some help on this please ?
Regards
Of the hundreds of people using the CP module, nobody else has complained about this, so that suggests to me that it's being resized by stuff you've got set in your admin. Likely you've set your images settings to "force" resizing of BOTH width and height, which is forcing it to stretch the image to the dimensions set as default.
So, you have two options:
- change your admin image force-resizing settings to be less rigid --- this may or may not have knock-on effects related to your product/category images (in which case you *could* go back to the other thread about Image Preparation, because those concepts *would* then apply to *that* situation, but unrelated to your payment module's logo/icon.
- or tamper with the code in your CP module to force it to set dimensions on the image when it prepares output for the browser.
Code:
if (zen_not_null($this->icon)) $this->quotes['icon'] = zen_image($this->icon, $this->title);
becomes
Code:
if (zen_not_null($this->icon)) $this->quotes['icon'] = zen_image($this->icon, $this->title, '44', '55');
(where you would replace 44 with your icon's width, and 55 with its height)