Creating an image without storing it as a local file

前端 未结 8 1021
时光取名叫无心
时光取名叫无心 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:21

    Most people using PHP choose either ImageMagick or Gd2

    I've never used Imagemagick; the Gd2 method:

    storeResizedImage( $resizedJpegData );
    ?>
    

    Hope this helps.

提交回复
热议问题