ImageCreateFromString and getimagesize in PHP

前端 未结 4 576
我寻月下人不归
我寻月下人不归 2021-02-10 22:36

Currently if a user POST/uploads a photo to my PHP script I start out with some code like this

getimagesize($_FILES[\'picture1\'][\'tmp_name\']);
4条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-10 23:34

    If you've already got an image resource, you'd get the size using the imagesx and imagesy functions.

提交回复
热议问题