Hmmm, we aren't redeclaring anything here, although the file I edited came from 3.1.2 but I believe they are the same between versions. I dropped the new file in my install with 3.1.1 and had no issues. Where are you getting that error; admin, frontend, after trying to add an image?
All I did was change how the ratio was calculated. Originally it was this:
and I changed it to this:PHP Code:$zoom = $width / $currheight;
You might open you original file and replace line 38 with the second line above and try it that way. It does work (at least for mePHP Code:$zoom = $height / $currheight;
)
Look at your images though... Your large size is 440 x 514 for a (w:h) ratio of .85, however your medium is 308 x 420 for a ratio of .73.
So what we have is 420/514 = .81 and .81 * 440 for 359. 359/420 = .85 just like 440/514. Maybe I'm missing something, (I think this does assume that your AIS config has 359 and 420 as your medium image dimensions). Especially since landscape images are calculated by taking $width / $currwidth and that's working, which is what I believe Jay meant to do for portrait images.
Give it a shot and let us know what happens...



)
Reply With Quote
Could you amend the change and upload the updated module to contribution under our name please!

