Get the X prior to resize

See all posts See thread Reply

Re: Get the X prior to resize new!
by Todd, 17 years, 2 months ago
sratch that, $handle->Image_x defaults to 150, sooooo I guess my original question still stands.Reply
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