Originally Posted by
gothstone
Ok, I found the heart of my issues, and some crappy workarounds. Mabey tomorrow I will be awake enough to actualy fix them. For now, heres what I have:
Function_image_manager.php
lines 337-341
This code check the size of the large image agains the max medium image size. If all my images were the same proportions this would be great. Unfortunately if my max medium is 300x240 and my origional image is 600x229 I'm SOL.
What I want is a large image of 600x229, a medium of 300x114 and a small of 145x55
To hack this for now I change the || on line 341 to &&
The real way to handel this would be to compare to the actual size of the created medium image. Of course first we would have to make sure it exists and get it size, or if it doesn't exist, make sure it could resize and calculate what size it would be. Ugg.
lines 500-507
This currently compares the small image to the max medium image width. Same problems as above. Solution is to replace line 503 with this: if ($image["small"]["width"] > IM_MAX_LARGE_WIDTH || $image["small"]["height"] > IM_MAX_LARGE_HEIGHT) {
Thats sorta works for now, but it needs a secondary check to make sure the large image will be larger than the medium image.