deliciousbrains / wp-image-processing-queue

Resize WordPress images in the background
203 stars 18 forks source link

Support when local file removed from server #1

Closed A5hleyRich closed 7 years ago

A5hleyRich commented 7 years ago

Currently, this doesn't work when the local file has been removed from the local server. Needs further investigation, but I'm not sure if GD or Imagick support stream wrappers. We may have to download the file locally resize it, then upload to S3 as a workaround.

A5hleyRich commented 7 years ago

GD supports stream wrappers, but Imagick doesn't. When a stream wrapper is detected and wp_get_image_editor returns an instance of WP_Image_Editor_Imagick we need to temporarily copy the full size file locally to perform the resize.

A5hleyRich commented 7 years ago

Resolved in ed98a38ce53936a4ddb0c07f9e06912513a52f63