Active
Project:
Remote Stream Wrapper
Version:
7.x-1.0-beta4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 May 2012 at 19:13 UTC
Updated:
9 Jul 2015 at 21:36 UTC
Jump to comment: Most recent
Comments
Comment #1
agoradesign commentedI have the same problem. After researching, I can confirm that it has to do with the file entity update. In unstable4 a new function checking if a file is local (file_entity_file_is_local() ) was introduced, which is used e.g. in file_entity_file_formatter_file_image_view() which is only supporting the display of local files from this change on.
This new behaviour was introduced during a bugfix for the media module: http://drupal.org/node/1142630#comment-5690580
As the fact that this function is only able to show local files is documented as well ("This formatter is only capable of displaying local images. If the passed in file is either not local or not an image, nothing is returned, so that file_view_file() can try another formatter."), this is not really a bug, it works by design.
But as not seeing the preview images is annoying, the Remote Stream Wrapper module should implement an own image formatter to correct this.
For a quick fix, I just implemented the hook_file_formatter_info_alter() by myself and changed the
$info['file_image']['view callback']to an own function, which is a copy of the file_entity_file_formatter_file_image_view() function from before that patch, that changed the display.See my hacky solution below:
Comment #2
cmalek commentedagoradesign, the code from your comment #1 helped me out tremendously in getting my AmazonS3 backed file entites to render their image styles. Thanks!
Comment #3
egarias commentedThanks!
worked for me too!
Comment #4
lookatthosemoose commentedI can confirm this issue as well.
Comment #5
socialnicheguru commentedWould http://drupal.org/project/imagecache_external work here