Reply to Re: Get the X prior to resize

Re: Get the X prior to resize new!
by colin, 17 years, 2 months ago
No, it is not possible to know the size of the image prior to resizing, at least not in the class itself. The X and Y sizes are retrieved when you call process(), not before.

However, you can read some class variables before calling process(). For instance, you can read $foo->file_src_name which gives you the filename of the just-uploaded file. From there, you can get the size of your picture, outside of the class, and then call process() with different options.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