Doesn't work with S3FS

Created on 30 June 2022, almost 3 years ago
Updated 25 September 2023, over 1 year ago

Problem/Motivation

When using S3FS and storing all public files on S3, the image styles aren't generated

Steps to reproduce

Enable S3FS and configure it to send all public files to S3
Visit a page that uses image styles - files won't load and an error such as "File 'JPEG:/tmp/imagick_DMaj11' could not be copied because it does not exist." is logged.

Looks like a fix was attempted 5 years ago in https://www.drupal.org/project/imagick/issues/2857497 - but the commit mentioned in that issue doesn't match the patch supplied - the code that prefixes the temp path with the image format always happens where as the patch removed it...

Attaching a patch that only adds the image format if the original destination is not a remote uri...

🐛 Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

🇬🇧United Kingdom mjpa

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024