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

Command icon 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

jrglasgow created an issue. See original summary.

jrglasgow’s picture

Status: Active » Needs review
StatusFileSize
new990 bytes

This 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.)

jrglasgow’s picture

StatusFileSize
new1.17 KB

an update to the patch for if there is no url set yet

swentel’s picture

I 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.

jrglasgow’s picture

StatusFileSize
new1.36 KB

I 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.