Problem/Motivation
When editing content with an external image attached the preview doesn't show... and when viewing an image in a view using the image formatter the image doesn't render, frequently getting the error "Error generating image, missing source file."
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | imagecache_external-3346403-6-image-formatters.patch | 1.36 KB | jrglasgow |
Issue fork imagecache_external-3346403
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
jrglasgow commentedThis patch uses hook_preprocess_image_widget() and imagecache_external_preprocess_image_formatter() to check the image url and if the scheme is http or https it changes the #theme to imagecache_external whcih causes the image to be properly rendered (assuming the domain is in the whitelist.)
Comment #4
jrglasgow commentedan update to the patch for if there is no url set yet
Comment #5
swentel commentedI think the problem is the 'itok' query at the end because I'm seeing this problem surface on a site here as well, so will dig in a but further to see what happens.
Comment #6
jrglasgow commentedI recently ran into an error with the image formatter being hijacked where there is no image style... this occurs when the content display for the image field is set to show "original" so no image style is there to be applied.