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 ? 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. 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 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
Archived
This topic is now archived and is closed to further replies.