How do I auto resize user's inputted images to a specific dimension in PHP?

前端 未结 5 1601
走了就别回头了
走了就别回头了 2021-01-14 16:17

When users input their images, their images are any size. I want to be able to resize all the images to a specific dimension. Is there a function that allows me to do that i

5条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-14 16:50

    Try ImageMagick, it keeps the EXIF information in an image if it needs it, among other things:

    http://php.net/manual/en/book.imagick.php

提交回复
热议问题