TutorMe Posted September 2, 2007 Share Posted September 2, 2007 Is there a way to determine where the bottom right corner is of an image through script? In the script I plan on using, text is placed over an image by entering the x, and y, position of where you want it to go. For the top left, it would be (0,0), but I'm trying to make it work with a bunch of different images, so manually entering each value is impractical. Thanks for any help. Quote Link to comment https://forums.phpfreaks.com/topic/67594-images/ Share on other sites More sharing options...
Fadion Posted September 2, 2007 Share Posted September 2, 2007 the bottom and right coordinates are the width and height of the image. list($width, $height) = getimagesize('yourimage.jpg'); Quote Link to comment https://forums.phpfreaks.com/topic/67594-images/#findComment-339564 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.