Creating an image without storing it as a local file

前端 未结 8 1000
时光取名叫无心
时光取名叫无心 2020-12-01 08:45

Here\'s my situation - I want to create a resized jpeg image from a user uploaded image, and then send it to S3 for storage, but am looking to avoid writing the resized jpeg

8条回答
  •  伪装坚强ぢ
    2020-12-01 09:19

    Maye by using the GD library.

    There is a function to copy out a part of an image and resize it. Of course the part could be the whole image, that way you would only resize it.

    see imagecopyresampled

提交回复
热议问题