Forums / All Other Contributions/Addons / Image Handler 2: autosize generated image issues

Image Handler 2: autosize generated image issues

Locked

Started by steveduncan on 23 Jan 2010, 1:49 PM · Views: 1,430

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
23 Jan 2010, 1:49 PM
#1
steveduncan avatar

steveduncan

New Zenner

Join Date:
Jan 2010
Posts:
52
Plugin Contributions:
0

Image Handler 2: autosize generated image issues

Hi all,

How to set IH2 so that the sizes of auto-generated images match those in Admin/Configuration/Images, rather than maintan its proportion? :frusty: :bangin:

When IH2 auto-sizes images, the size of images generated do **NOT **match those specified in Admin/Configuration/Images. Whereas, the size of those images maintain its proportion. For example:

Below are settings in Admin/Configuration/Images:

Small Image Width 100
Small Image Height 80
Product Info - Image Width 240
Product Info - Image Height 241
IH large image maximum width 550
IH large image maximum height 450

Below are the sizes of auto-sized images when an image of 640x480 is supplied:

100x75
240x180
640x480

Thank you for your help in advance.

Steve

System:

  • Image Handler 2 for v1.3.x (ver 2.0 rev 7)
  • Zen Cart 1.3.8a.
24 Jan 2010, 3:01 PM
#2
steveduncan avatar

steveduncan

New Zenner

Join Date:
Jan 2010
Posts:
52
Plugin Contributions:
0

Re: Image Handler 2: autosize generated image issues

I think it is possible to specify the width and height in IH2 php code. Does anyone know which php file to edit?

Thank you! :frusty:

Steve

24 Jan 2010, 5:18 PM
#3
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: Image Handler 2: autosize generated image issues

I don't use IH2 so have no answer there... but do you really want the thumbnails to be distorted instead of keeping their proportions? Why?

There is an admin setting Configuration > Images > Image - Use Proportional Images on Products and Categories. Does that affect the display in IH2?

24 Jan 2010, 10:37 PM
#4
steveduncan avatar

steveduncan

New Zenner

Join Date:
Jan 2010
Posts:
52
Plugin Contributions:
0

Re: Image Handler 2: autosize generated image issues

gjh42:

I don't use IH2 so have no answer there... but do you really want the thumbnails to be distorted instead of keeping their proportions? Why?

There is an admin setting Configuration > Images > Image - Use Proportional Images on Products and Categories. Does that affect the display in IH2?

Dear gjh42,

Thank you for your help.

I tried that it not only does NOT work, but the zoom small images function also lost, which should not happen. When I changed it back, the function turned back. Still, the issue remains.

The reason is that, I want all small image the same size regardless the size of the large image. Now, the height of small images depends on the height of the large image.

Thank you again.

Steve

24 Jan 2010, 11:06 PM
#5
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: Image Handler 2: autosize generated image issues

If you want all small images the same width AND height, you must make all large images the same proportions (not necessarily the same size), or else have some of the small images distorted.

If height is your real concern, try specifying just that in your small image settings, leaving width as blank. In stock ZC, this will allow the width to float so the images stay in proportion and at the same height. I don't know how IH2 will handle this, though.

25 Jan 2010, 12:11 PM
#6
steveduncan avatar

steveduncan

New Zenner

Join Date:
Jan 2010
Posts:
52
Plugin Contributions:
0

Re: Image Handler 2: autosize generated image issues

gjh42:

If you want all small images the same width AND height, you must make all large images the same proportions (not necessarily the same size), or else have some of the small images distorted.

If height is your real concern, try specifying just that in your small image settings, leaving width as blank. In stock ZC, this will allow the width to float so the images stay in proportion and at the same height. I don't know how IH2 will handle this, though.

Dear jh42,

Thank you for your advice.

Both width and height of small images are required. The last option is that I prepare s/m/l size for every image using other image programme. However, I still prefer to coding it if I knew how.

Steve