Image styles from private file system?

Created on 19 March 2015, almost 10 years ago
Updated 4 January 2025, 5 days ago

Does S3FS support image styles when using the private file system? With this patch ( https://www.drupal.org/node/1695068#comment-8953159 β†’ ) to the Imagemagick module I've had success generating derived images that are stored on S3, but it only seems to work when S3 File System is used as the upload destination.

When the private file system is selected, the URL for the image doesn't come from S3 (which I think is expected) and my console shows something like the following:

GET http://domain.com/system/files/styles/STYLENAME/private/filename.jpg?itok=4HqqbPyf 503 (Service Unavailable)

This is the most relevant-looking entry in the logs:
User error: ImageMagick error 1: convert: Not a JPEG file: starts with 0x3c 0x21 `/tmp/magick-1306V7tKOrqSu4rd' @ error/jpeg.c/JPEGErrorHandler/322. convert: NoDataReturned `http://domain.com/system/files/filename.jpg' @ error/url.c/ReadURLImage/263. convert: NoImagesDefined `/tmp/6b09173fd96742d4b3b696247e8f2949-filename.jpg' @ error/convert.c/ConvertImageCommand/3210. in _imagemagick_convert_exec() (line 541 of /app/web/sites/all/modules/imagemagick/imagemagick.module).

BTW, I have Drupal running on Heroku with nginx; other than this hiccup with private image files, S3FS has been instrumental in making it possible, so my thanks to you!

πŸ’¬ Support request
Status

Closed: outdated

Version

2.0

Component

Miscellaneous

Created by

πŸ‡ΊπŸ‡ΈUnited States charliekwin

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.

  • πŸ‡ΊπŸ‡ΈUnited States cmlara

    Drupal 7 end-of-life triage:
    Drupal 7 will reach end of life on January 5th.

    The 7.x branches of S3FS do not have any additional planned releases.

    The functions in this issue do not appear to exist in Drupal 8+ as such I am going to close this support request as outdated.

Production build 0.71.5 2024