frontpage image too small
-
Hi,
The Featured Images used for the frontpage, does not correctly re-size; and is way too low quality.
Looking at the featured images in use on my blog pages, these re-size and scale with high quality.
Basically my frontpage/homepage forward slashed with http://www.sheilds.org/amp/ – the featured image looks terrible due to really small size dimensions being used somewhere in the code (which I can’t locate).
The featured image used has exactly the same original aspect dimensions of: 1220x707px
I have swapped between each design 1, 2 & 3 and this issue happens every time and only on the home page (so far), not posts, not any other page, just the homepage only.
the home page http://www.sheilds.org/amp/ when inspecting the image reflects these dimensions: 300x174px
Inspecting html of frontpage:
<figure class="amp-wp-article-featured-image wp-caption"> <amp-img src="http://www.sheilds.org/wp-content/uploads/2015/01/sheilds-health-safety-training-home-min-300x174.jpg" width="300" height="174" layout="responsive" alt="Home" class="i-amphtml-element i-amphtml-layout-responsive i-amphtml-layout-size-defined i-amphtml-layout"><i-amphtml-sizer style="display: block; padding-top: 58%;"></i-amphtml-sizer> <img alt="Home" class="i-amphtml-fill-content i-amphtml-replaced-content" src="http://www.sheilds.org/wp-content/uploads/2015/01/sheilds-health-safety-training-home-min-300x174.jpg"></amp-img> </figure>
Looking at the featured image used on blog pages, here for example:
http://www.sheilds.org/occupational-disease-construction/amp/
reflects the image dimensions of:1030x597pxInspecting the html from a blog post:
<div class="post-featured-img"> <figure class="amp-wp-article-featured-image wp-caption"> <amp-img width="1030" height="597" src="http://www.sheilds.org/wp-content/uploads/2017/08/OccupationalDiseaseInConstruction1A-min-1030x597.jpg" class="attachment-large size-large wp-post-image amp-wp-enforced-sizes i-amphtml-element i-amphtml-layout-responsive i-amphtml-layout-size-defined i-amphtml-layout" alt="Occupational Disease in Construction" srcset="http://www.sheilds.org/wp-content/uploads/2017/08/OccupationalDiseaseInConstruction1A-min-1030x597.jpg 1030w, http://www.sheilds.org/wp-content/uploads/2017/08/OccupationalDiseaseInConstruction1A-min-300x174.jpg 300w, http://www.sheilds.org/wp-content/uploads/2017/08/OccupationalDiseaseInConstruction1A-min-768x445.jpg 768w, http://www.sheilds.org/wp-content/uploads/2017/08/OccupationalDiseaseInConstruction1A-min-705x409.jpg 705w, http://www.sheilds.org/wp-content/uploads/2017/08/OccupationalDiseaseInConstruction1A-min-450x261.jpg 450w, http://www.sheilds.org/wp-content/uploads/2017/08/OccupationalDiseaseInConstruction1A-min.jpg 1220w" sizes="(min-width: 1000px) 1000px, 100vw" style="width: 1000px;"><i-amphtml-sizer style="display: block; padding-top: 57.9612%;"></i-amphtml-sizer><img alt="Occupational Disease in Construction" class="i-amphtml-fill-content i-amphtml-replaced-content" src="http://www.sheilds.org/wp-content/uploads/2017/08/OccupationalDiseaseInConstruction1A-min-1030x597.jpg"></amp-img> </figure> </div>
Now if I set a featured image to any other page that is not the home page I don’t have this issue, same as blog posts, this issue does not occur.
Here’s inspected html code from a regular ‘page’ that does not suffer from the issue – as I said this problem only affects the homepage:
<div class="amp-wp-article-featured-image amp-wp-content featured-image-content"> <div class="post-featured-img"> <figure class="amp-wp-article-featured-image wp-caption"> <amp-img width="1030" height="597" src="http://www.sheilds.org/wp-content/uploads/2015/01/sheilds-health-safety-training-home-min-1030x597.jpg" class="attachment-large size-large wp-post-image amp-wp-enforced-sizes i-amphtml-element i-amphtml-layout-responsive i-amphtml-layout-size-defined i-amphtml-layout" alt="SHEilds Health Safety Training" srcset="http://www.sheilds.org/wp-content/uploads/2015/01/sheilds-health-safety-training-home-min-1030x597.jpg 1030w, http://www.sheilds.org/wp-content/uploads/2015/01/sheilds-health-safety-training-home-min-300x174.jpg 300w, http://www.sheilds.org/wp-content/uploads/2015/01/sheilds-health-safety-training-home-min-768x445.jpg 768w, http://www.sheilds.org/wp-content/uploads/2015/01/sheilds-health-safety-training-home-min-705x409.jpg 705w, http://www.sheilds.org/wp-content/uploads/2015/01/sheilds-health-safety-training-home-min-450x261.jpg 450w, http://www.sheilds.org/wp-content/uploads/2015/01/sheilds-health-safety-training-home-min.jpg 1220w" sizes="(min-width: 1000px) 1000px, 100vw" style="width: 1000px;"><i-amphtml-sizer style="display: block; padding-top: 57.9612%;"></i-amphtml-sizer><img alt="SHEilds Health Safety Training" class="i-amphtml-fill-content i-amphtml-replaced-content" src="http://www.sheilds.org/wp-content/uploads/2015/01/sheilds-health-safety-training-home-min-1030x597.jpg"></amp-img> </figure> </div> </div>
Does anyone know the source of this problem? I’ve been looking for quite some time but can’t see it in the code for the plugin.
Thanks
The page I need help with: [log in to see the link]
- The topic ‘frontpage image too small’ is closed to new replies.