How to read image size before process

See all posts Reply

How to read image size before process new!
by Remco, 6 years, 4 months ago
You mentioned before processing the image i can check the image width and height with image_src_x


i used this:

$foto_width= $handle->image_src_x;
$foto_height= $handle->image_src_y;

But it doesnt give the value in the string. what am i doing wrong?Reply
Re: How to read image size before process new!
by colin, 6 years, 4 months ago
See this example for instance.Reply
Re: How to read image size before process new!
by Remco, 6 years, 4 months ago
Thats not enough for my purpose. I want to place the text Vertical when the height is bigger than the width. and Horizontal when the width is bigger than the height.

else when the text is to long it will cutt off a part of the text.Reply
Re: How to read image size before process new!
by colin, 6 years, 4 months ago
Re: How to read image size before process new!
by Remco, 6 years, 4 months ago
Thanks, this did the trick for me....Reply