Reply to Re: how do i resize based on landscape or portrait?

Re: how do i resize based on landscape or portrait? new!
by sarmen, 12 years, 7 months ago
nm, i found out.
for whoever else is wondering.
if($handle->image_src_x > $handle->image_src_y) {.... } //this means landscape
if($handle->image_src_x < $handle->image_src_y)  {..... } //this means portrait
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