MDanz Posted August 28, 2009 Share Posted August 28, 2009 when using img src, how do i make sure the image thats only allowed is 100px x 100px ? Quote Link to comment https://forums.phpfreaks.com/topic/172245-solved-img-src-picture-dimension-limit/ Share on other sites More sharing options...
ignace Posted August 28, 2009 Share Posted August 28, 2009 You can't. <img> will just crop the image to the desired dimensions using the width and height attribute. You need a server-side script to limit an image upload to some desired dimensions. Quote Link to comment https://forums.phpfreaks.com/topic/172245-solved-img-src-picture-dimension-limit/#findComment-908178 Share on other sites More sharing options...
MDanz Posted August 28, 2009 Author Share Posted August 28, 2009 thx u still answered my question Quote Link to comment https://forums.phpfreaks.com/topic/172245-solved-img-src-picture-dimension-limit/#findComment-908183 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.