Image style not working with private file setting

Created on 8 July 2016, over 8 years ago
Updated 19 April 2024, 8 months ago

Let say I have an image style that crop/scale image to 100x100 and I have an image file with private storage.

Note1: I am also using www.drupal.org/project/filefield_paths
Note2:I have uninstalled the core responsive image module to make sure the problem was not coming from there
Note3:private path is set in settings.php=> $settings['file_private_path'] = '/var/web-private/....';

The output of the image formatter using this style (and any other formatter that is using this style) will be an img tag pointing to the full definition image but with the height and width html attributes set to the correct size (100x100)
=>This is why, I haven't quickly noticed the problem, the image looks at the right size, but this is only due to the html width/height attributes.

If I change the private storage of my field into public storage the problem is solved

πŸ› Bug report
Status

Fixed

Version

8.5 ⚰️

Component
Image systemΒ  β†’

Last updated 2 days ago

Created by

πŸ‡§πŸ‡ͺBelgium DuneBL

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