I've been getting a lot of server timeouts since installing zurb_foudation. All of them due to excessive image resizing.

When I check the Styles folder, I see that the images for each style already exist. But image_style_create_derivative() appears to be getting called for each image field on the page anyway.

Shouldn't there be some check in zurb_interchange_preprocess_field() to see if a derivative image exists before before generating one?

Comments

Media Crumb’s picture

Any more word on this. Having the same issue

johnodonnell@mac.com’s picture

Media Crumb,

this patch should handle that issue and https://www.drupal.org/node/2514956 as well. I'm not too experienced with making patches, so I'll describe what I did if the diff file doesn't work.

Removed line 194, which calls image_style_create_derivative(). The call to image_style_url() (used on line 192) already contains logic to call this function if an image style is missing, so it's redundant.

The second edit is for https://www.drupal.org/node/2514956, which effects the creation of a div with a progressive background image.

's need a closing tag to work properly, but Drupal won't add that closing tag if the element doesn't have a value. I add that #value with a new line at line 202.
$variables['items'][$key]['#value'] = ''; // required to create a closing tag

Hope this helps,
: )