Option to not force image style creation

Created on 16 December 2016, over 7 years ago
Updated 23 September 2023, 9 months ago

Hi,

I'm using this on a client website and the feed was getting really slow to load (>8 seconds). After some digging I found that the culprit was these lines in views_rss-media.find.inc:


if (!file_exists(drupal_realpath($path))) {
  image_style_create_derivative($image_style, $item_uri, $path);
}

Eventually I think it's related to the width/height attributes defined below but since they are not required maybe we could give the option to turn this on/off. Once I commented these lines the load speed dropped below 1 second. Note that it may due to the fact that i'm using the s3fs module and the file_exists seems to return false even when the file is already created.

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡¨πŸ‡­Switzerland idflood

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.69.0 2024