Celebrating 7 Years! Get up to $30 off GeneratePress Premium!

[Resolved] Featured images scaled from original

Home Forums Support [Resolved] Featured images scaled from original

Home Forums Support Featured images scaled from original

Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
  • #497913

    My featured images on blog page are scaled down from the full size (usualle h x 800px). How do I get GeneratePress to generate thumbnails or use smaller images instead of the original?

    I’ve set the Featured image width to 392px (number I picked by the size the images were scaled to) on the customize/blog panel instructed here https://docs.generatepress.com/article/adjusting-the-featured-images/

    Isn’t this enough or should I use the filter? What does the featured image size do if not create appropriate thumbnail sizes?

    Sorry, I’m TERRIBLE (…or WordPress is…) with WordPress image scaling.

    GeneratePress 2.0.2
    GP Premium 1.5.6
    Customer Support

    Hi there,

    Have you tried resizing the featured image for both Archives (main blog page) and Posts (single post)?

    Let me know if I misunderstood your question.


    Sorry for being unclear, my problem is this:

    The images on my blog front page are loaded full size and scaled down, like this:

    Um link to full size here.

    Google Pagespeed is very angry and gives me 0 on serve scaled images.

    Lead Developer
    Lead Developer

    If you have a size set in Customize > Layout > Blog, it should use that size – not the full size.

    Sometimes, the server won’t allow for the images to be resized (rarely). That seems to be happening to you for some reason.

    An alternative would be to resize the images before you upload them – that way they’re being served at the exact size you need them to.

    Let me know if you need more info ๐Ÿ™‚


    Thanks! I’ve set them through there, yes. Uploading future featured images in smaller size would fix this in future, yes. Sadly it would require a bit more work as I would need to upload two differently sized pictures, one for GP featured image and other to use in posts. Also I would need to manually set the bigger image for use with social media. And is there anything I can do about old images?

    Hmm, anything I can do about that. What can I ask my host?

    I also tried adding the filter found in the documentation that forces GP to use thumb size medium for featured images but that didn’t work either, which is weird.


    Adding to this, I’m also having the same problem here and it’s hosted on different place than the site under discussion in this topic.

    Lead Developer
    Lead Developer

    Any chance you can send me temporary admin login details so I can take a closer look?: https://generatepress.com/contact/

    Lead Developer
    Lead Developer

    Super weird. Do you have any image related errors in your error_log file?


    Agh! Thanks for checking it out.

    If it’s the debug.log file in wp-content (after turning on debug) I should be looking at then no image related issues. Couldn’t find a file called error_log.

    Lead Developer
    Lead Developer

    error_log should be in your root folder I believe.

    Something is preventing the image resizer event from firing, there should be a log of why somewhere.

    We will be changing the way image resizing works soon, as WooCommerce just implemented it in their plugin which we can use as an example.


    Sorry for taking so long with this. I couldn’t find the error_log on the primary site I reported the error on, but the log was there on the other site that has the same error. No image related errors there.

    Is there any ETA on the WooCommerce style image resizing? If it’s not long (couple of months) I think I can leave this problem at rest, hoping the future release will fix my problem.

    Lead Developer
    Lead Developer

    It won’t make it into 1.6 (beta today), but likely will in the next version.

    For now, you can do a workaround like this: https://generatepress.com/forums/topic/custom-crop-for-blog-index-featured-images/#post-371695

    You may need to regenerate your thumbnails afterwards using this plugin: https://en-ca.wordpress.org/plugins/regenerate-thumbnails/


    Perfect! Thank you so much! From Pagespeed 65 to 96.

    Lead Developer
    Lead Developer

    I realize this thread is a year old, but it was very helpful!

    Fwiw, part of why I purchased GP is seeing all of the responsive, accurate and helpful replies on this forum!

    I wanted to note an issue w/the described solution.

    It breaks the “feature first post” in the sense that w/out this fix, the image is scaled up to fit the featured post size.

    I like the image to fill the display box, so undid the fix, but it definitely improved my pagespeed score as measured by gmetrix. Otoh, it lowered it per the pagespeed site itself, so who knows?

    The other issue is that if you have a mix of landscape and portrait featured images, they are all rendered at the fixed size specified.

    Not a bug, as it’s doing what it was told, but for me I’ll take the perf. hit.

    Thanks for the great answer!

    my site, if anyone is interested: (dev … .org is the real site) http://allthepages.blog/

Viewing 15 posts - 1 through 15 (of 16 total)
  • You must be logged in to reply to this topic.