Reply to Re: Thumbnail

Re: Thumbnail new!
by Steve, 18 years ago
Ok, got it:

Needs something like this:

$info = getimagesize($handle->file_src_pathname);
$srcWidth  = $info[0];
$srcHeight = $info[1];
$widthMax  = 800;
$widthMax  = 800;
if ($srcWidth > $srcHeight) {
} elseif ($srcWidth < $srcHeight) {	
} else { // x=y	
}
Reply

Your reply

Name *
Email 
Title *
Text *
CAPTCHA image
Enter the code displayed on the image:
Click on the image to generate another one if it is hard to read it. The case is important