I was wondering if it is possible to get an uploaded images dimensions using PHP, so that I could set it as a potrait/landscape image, which would help in making 开发者_StackOverflowthumbnails that don't look awful. Anyone know a way to do this?
Thanks!
Sure:
list($width, $height) = getimagesize($image_path); 
Sure, use getimagesize() on your uploaded file.
Use: getimagesize() function
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论