[resolved] How to disable thumbnail sizing? (2 posts)

  1. ebedgert
    Posted 3 years ago #

    I'm using a theme which takes a featured-image attachment and plugs it into a page. The images I use are already correctly sized for the space, so I really don't need the images to be resized, and in fact I suspect this code is really slowing my page load down. How do I simply have the featured image used "as is" with no resizing function? See code below ("featured_540x270" is defined in functions.php for this theme):

    '$post_img_big = wp_get_attachment_image(get_post_thumbnail_id($post -> ID),'featured_540x270','' );
    $img_description = de_getPostImageDescription($post -> ID,get_post_thumbnail_id($post -> ID));
    $post_img_big = get_first_image($post -> ID,'540x270'); '

  2. ebedgert
    Posted 3 years ago #

    Resolved. Problem was de_getPostImageDescription

Topic Closed

This topic has been closed to new replies.

About this Topic