- Issue created by @blink38
My Drupal site is using s3fs module to store file
The module is not able to manage remote file because imagick is not using (drupal) file wrappers.
In spatie/pdf-to-image/src/Pdf.php getImageData(),
$this->imagick->readImage(... this->filename) do not work with Drupal filename like public://file.pdf
See the patch proposed. When reading realpath for the pdf file, if the file is a remote file, then realpath is false. Then read file content and put it in a tempory local file and then use this temporary file to generate image preview.
review the patch.
no change
no change
no change