Images Do Not Appear When Resizing Disabled (Internet Explorer)

Mike Wacker - August 26, 2009 - 01:16
Project:Taxonomy Image
Version:5.x-1.6
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:needs review
Description

When the Resizing Options are set to disabled in the options, the pictures will not display when taxonomy_image_display() is called. Checking the HTML source, I see the tag, but the following empty attributes are here:

width="" height=""

Those empty attributes cause the image to not display (at least in IE8 it does, probably other browsers, too). When resizing options are turned on, the width and height attributes will have actual numbers in them, and the image will display.

#1

Mike Wacker - August 26, 2009 - 01:42
Title:Images Do Not Appear When Resizing Disabled» Images Do Not Appear When Resizing Disabled (Internet Explorer)

Bug seems to limit itself to IE users, but obviously that's a very large demographic.

Here's a patch to fix it. Interestingly enough, it looks like this change has already been committed to the 6.x branch and wasn't synced to the 5.x branch.

AttachmentSize
taxonomy_image-559562.patch 658 bytes

#2

Mike Wacker - November 1, 2009 - 19:34
Status:active» needs review

Put in a patch long ago but forgot to mark as "needs review"

 
 

Drupal is a registered trademark of Dries Buytaert.