The function image_display() creates an Only local images are allowed. tag and gives it the attributes retrieved from image_get_info(). If for some reason the height and width weren't retrieved, the attributes will be passed with no value which will cause IE to consider the empty values as 0s and won't display the image at all.

A simple check if the value of $image_info is not empty before assigning the height and width to the attributes array will solve this.

CommentFileSizeAuthor
#2 image.empty_.dimensions.patch955 bytesAnonymous (not verified)
#1 image-HEAD.image-empty-dimensions.patch955 bytessun

Comments

sun’s picture

Version: 5.x-2.x-dev » 6.x-1.0-alpha4
Status: Active » Needs review
StatusFileSize
new955 bytes

Please test attached patch.

Anonymous’s picture

Version: 6.x-1.0-alpha4 » 6.x-1.x-dev
Status: Needs review » Reviewed & tested by the community
StatusFileSize
new955 bytes

worked for me.

rerolled to get rid of fuzz only.

sun’s picture

Status: Reviewed & tested by the community » Fixed

Thanks, committed to 6.x-1.x and 5.x-2.x.

@justinrandell: No need to re-roll a patch if there is only fuzz.

Status: Fixed » Closed (fixed)

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