Hi,
Im having this problem. I have an image resizing script going on. Im using the getimagesize function and then a function thats similar to the sitepoint image resizing script.
What im doing is finding the width and height using imageresize and then if its more than a certain number im populating a variable with a desried resize value. This is then used later in the sitepoint image resize script.
Heres the code:
right so larger images ( larger than 425) are sized down t o425 correctly....problem is smaller images are now sized up to 425.PHP Code:$imagearray = getimagesize($file);
print_r($imagearray);
if(imagearray[0] || imagearray[1] >= 425)) {
$sizeup = 425;
}
else {$sizeup = 0;
}
What am i doing wrong?
Thanks![]()






Bookmarks