When an image file is updated (I.e edited through the admin screen or the media ctools popup modal) the media_thumbnail image style is not flushed for that image. That means that the thumbnail on the admin page and the node edit for stays as the old image. We definitely need to clear it on both occasions otherwise we get the case where an image gets updated and the next time a user goes to edit the node or image they are shown an incorrect thumbnail.

We could use image_flush_path() to flush all style paths for the new image on submitting the form. I will look into doing this but it may be over my head.

Comments

JMC’s picture

Hi acbramley, I've had this issue too and was about to look into putting a patch together but when I tried the latest dev version I spotted that it had been fixed :-)

acbramley’s picture

@JMC awesome will give that a shot, wondering whether there's another issue with patch, or someone knows a commit with this fix so we can provide a way to fix without upgrading to dev.

JMC’s picture

yeah, I couldn't find any other reference to it in the issue queue or the github log, but I'm really new to git so I've obviously overlooked it somehow.

One way to track it down maybe to upgrade to the dev release and when you run update.php the fix for this is the only one that pops up. The message probably included the issue/patch reference but I wasn't smart enough to make a note of it at the time.

devin carlson’s picture

Status: Active » Fixed

File entity has called image_path_flush() when updating image files since http://drupalcode.org/project/file_entity.git/commit/a39488e8dbf97949966....

As JMC mentioned, using the -dev releases of Media and File entity might be easier than tracking down specific commits.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.