Support » Plugin: Jetpack by WordPress.com » Photon resizing images incorrectly in IE8

  • Resolved lindseybugbee

    (@lindseybugbee)


    Hi,

    I activated Jetpack’s Photon, v2.2, and I’m having issues with how images are displayed in IE8. When Photon is activated, images are displayed with a width and height value of 1px, so basically they can’t be seen. My code in my custom theme for getting the featured images is:

    function get_featured_image($post_id, $size, $class, $title)
    {
    if($class == NULL) { $class = ‘wp-featured-image’; } else { $class = $class . ‘ wp-featured-image’; }
    if($post_id == NULL) { $post_id = get_post_thumbnail_id(); }
    $wp_featured_image = wp_get_attachment_image_src($post_id, $size, true);

    $src = $wp_featured_image[0];
    $width = $wp_featured_image[1];
    $height = $wp_featured_image[2];

    $output = ‘<img width=”‘.$width.'” height=”‘.$height.'” src=”‘.$src.'” class=”‘.$class.'” alt=”‘.$title.'” title=”‘.$title.'” />’;

    return $output;
    }

    Any ideas or suggestion on how to fix this issue are welcome!

    http://wordpress.org/extend/plugins/jetpack/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Photon resizing images incorrectly in IE8’ is closed to new replies.