Forums / Templates, Stylesheets, Page Layout / Icon image resizing problem

Icon image resizing problem

Results 1 to 10 of 10
28 Jan 2012, 17:59
#1
windsurfer avatar

windsurfer

Zen Follower

Join Date:
Jun 2011
Posts:
185
Plugin Contributions:
0

Icon image resizing problem

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
28 Jan 2012, 18:01
#2
windsurfer avatar

windsurfer

Zen Follower

Join Date:
Jun 2011
Posts:
185
Plugin Contributions:
0

Re: Icon image resizing problem

I have one image on my site that gets resized by the small image settings in admin, is there a way to exclude an image from the size setings in admin ?

Thank you.
28 Jan 2012, 19:06
#3
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Posts:
10,011
Plugin Contributions:
1

Re: Icon image resizing problem

windsurfer:

I have one image on my site that gets resized by the small image settings in admin, is there a way to exclude an image from the size setings in admin ?

Thank you.
Not if it's a product or category image..
28 Jan 2012, 19:20
#4
windsurfer avatar

windsurfer

Zen Follower

Join Date:
Jun 2011
Posts:
185
Plugin Contributions:
0

Re: Icon image resizing problem

It is not a product or category, the image is located on the checkout page, the Canada Post Logo image is affected by these settings and it puts it all out of proportion.
28 Jan 2012, 19:30
#5
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Posts:
10,011
Plugin Contributions:
1

Re: Icon image resizing problem

windsurfer:

It is not a product or category, the image is located on the checkout page, the Canada Post Logo image is affected by these settings and it puts it all out of proportion.

You probably should post this in a new thread.. (I'd include a screen print and/or link to the page you are referring to in your new post) What you are asking about is a tad off topic for this thread which is about image preparation/optimization.. You might get a better response if you were to post this question in it's own post..
28 Jan 2012, 21:13
#6
windsurfer avatar

windsurfer

Zen Follower

Join Date:
Jun 2011
Posts:
185
Plugin Contributions:
0

Re: Icon image resizing problem

Sorry my mistake, I thought this was a post about image preparation.
28 Jan 2012, 21:20
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

Re: Icon image resizing problem

windsurfer:

Sorry my mistake, I thought this was a post about image preparation.

Exactly. You had posted in a thread about image preparation. But you're asking about a problem that has nothing to do with creating new images for your site.

Your various posts have been merged from multiple threads into this one, since it's a unique problem affecting you specifically.
28 Jan 2012, 21:25
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

Re: Icon image resizing problem

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.
    if (zen_not_null($this->icon)) $this->quotes['icon'] = zen_image($this->icon, $this->title);
becomes
    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)
28 Jan 2012, 22:17
#9
windsurfer avatar

windsurfer

Zen Follower

Join Date:
Jun 2011
Posts:
185
Plugin Contributions:
0

Re: Icon image resizing problem

THank you, i changed the code and that works, thanks. I just spent almost an hour trying to find what you are reffering to as image force-resizing and have not been able to find anything in zen cart or on the internet about these settings. Am i not seeing something here ?
28 Jan 2012, 23:17
#10
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

Re: Icon image resizing problem

What are your admin settings under Configuration->Images for:
- Calculate Image Size
- Image - Use Proportional Images on Products and Categories