PHP Image Ratio Width & Height, Top & Left


/ Published in: PHP
Save to your folder(s)

Returns array with information like:
Input image
width 200
height 200

print_r(ratioResize('path/to/image.ext' , 100 , 50));



output:


array(
[ratio] => .5,
[height] => 50,
[width] => 50,
[left] => 25,
[top] => 25
);

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.