• Resolved gordo019

    (@gordo019)


    -WP 5.0.2
    -Jetpack 6.8.1 (yes: Speed up image load times, no: lazy images)
    -Bootstrap 4.1.3
    Chrome 71.0

    As you move between site pages (only 3) the header banner (same on all pages: fish image) loads pixelated then the header image shrinks to fit it’s header container. Unwanted and unsightly fadein effect. Any ideas on getting the image to display when fully loaded and not pixelated?

    The issue does not occur consistently.

    Here is the relevant HTML….

    <?php $images = rwmb_meta( 'dwp_banner_image', array( 'limit' => 1 ) );
    	  $image = reset( $images );
    	  $img_url = $image['url'];
    	 ?>
    	 
    <div class="container">
        <div class="homepage-banner">
    	<div class="card mb-4">
    	    <img class="card-img" src="<?php echo $img_url ?>" alt="Card image">
    		<div class="card-img-overlay  justify-content-end d-flex align-items-start flex-column">
                 <h2 class="card-title"><?php echo rwmb_meta('dwp_banner-text', 'type=text') ?></h2>
    		</div> <!-- card-img-overlay -->
    					
    	    </div> <!-- card -->
       </div> <!-- homepage-banner -->
    </div> <!-- container -->

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor James Huff

    (@macmanx)

    Does the situation improve if you switch off “Speed up image load times”?

    Thread Starter gordo019

    (@gordo019)

    Good point. If you turn off “Speed up image load times” the header image never stretches back to correct image size. The image just loads stretched/distorted.

    Thread Starter gordo019

    (@gordo019)

    Removed PHP image tag src….
    ” alt=”Card image”>

    Changed image tag to this (hardcoded src url)…

    Image load times settings is back on. Stretch loading of header image is gone.

    Plugin Support supernovia

    (@supernovia)

    @gordo019 thanks. It sounds like it could have been affected by something in the theme (whatever functions were selecting the image) since it still appeared poorly even with photon off.

    Do you want to leave things as they are now or troubleshoot further?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Photon images ugly stretch in to fit header banner container’ is closed to new replies.