@dubois, your patch only works for nodes, here is an updated patch that supports all entity types.
Created patch from the fork.
Uploaded patch.
Here is a patch for 4.2.5
Here is patch to solve the issue.
kevinn β created an issue.
Can we get his merged please.
kevinn β created an issue.
Here is patch with a "NOT LIKE" filter also.
Don't get how you guys got this to work, the checkFileOrigin method is looking for:
public://example.webp
public://example
Which nether exists because the webp is being created by the webp module as a image style and of course public://example does not exist.
Here is a patch that checks for other file extensions.
Btw im using responsive images, maybe thats why it does not work for me.