With file_entity + media, file entities are often displayed in different contexts. We need to be able to apply core image styles to images that are file entities; the default view modes are insufficient. For example, if you have a "square_thumbnail" image style, which file entity view mode does it correspond with?
Basically, there should be a file_entity view mode for each core image style. Adding image styles as file view modes means that, for as many image styles as a site has, you can always format a media image with it.
The attached patch does exactly that. File entity view modes based on core image styles are disabled by default, and can be enabled via checkboxes in the "custom display settings" collapsible fieldset on the "manage display" tab for file entities.
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch file_entity-override_image_style.patch. Unable to apply patch. See the log in the details link for more information.
[ View ]
|#9||rendered file - override image style (1).png||84 KB||becw|
|#9||rendered file - override image style (2).png||88.67 KB||becw|