I am creating some derivatives for images using image_style_create_derivative() on a hook_entity_presave() for an API. When this runs through and tries to generate the image through epsacrop_crop_image(), it looks for the style name from the url... which in my case is the node edit url. I found a way around this by passing the image style along on the settings and checking if that is set before trying the other options. I will upload a patch shortly...

Realize this is an edge case, but in case anyone else needs it. The style name would need to be added to the data array of the effect keyed by style.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

evanjenkins created an issue. See original summary.

evanjenkins’s picture