WordPress.org

Ready to get started?Download WordPress

Forums

How to specify height/width in a featured image? (9 posts)

  1. mutrux
    Member
    Posted 9 months ago #

    According to gtmetrix, my site is slow because my images don't have height/width specifications (among other things).
    I'm trying to fix this issue, but can't seem to figure it out. Most of the images listed are my featured images.

  2. mutrux
    Member
    Posted 9 months ago #

  3. mutrux
    Member
    Posted 9 months ago #

    No one?

  4. Colin Young
    Member
    Posted 9 months ago #

    Hey Mutrux

    It's a tough one and I don't know why it's telling you to size them. Generally I would size the images outside of the webpage in an editor then upload them to the site so they fit perfectly.

    Maybe I've lost it but I was always told that if you load an image that you have to shrink, the browser still loaded the full size image then had to shrink it which is time/resource consuming.

    The flip side is if it's too small then the image would get distorted when sized up

    I would always take some of these sites with a pinch of salt. I ran your site through another site and it didn't pick up on images but did comment on the amount of http requests required to load the site.

  5. mutrux
    Member
    Posted 8 months ago #

    Thanks for stopping in cyoun75.

    I size all my images to fit the featured image size, so there shouldn't be any issues with the browser shrinking the images.

    Plus, all of my images are hosted off-site.

    Just trying to speed things up. Which site did you run it through?

  6. Colin Young
    Member
    Posted 8 months ago #

    http://www.quicksprout.com/

    Do you think hosting them offsite is causing problems? It's not something I've worked with before

  7. Andrew
    Forum Moderator
    Posted 8 months ago #

    @mutrux, is the issue specifically that you don't have the HTML "height" and "width" attributes on your images?

  8. mutrux
    Member
    Posted 8 months ago #

    @Andrew Nevins, yes. I believe so.

  9. Andrew
    Forum Moderator
    Posted 8 months ago #

    Are you using this theme http://wordpress.org/themes/suevafree ?

Reply

You must log in to post.

About this Topic

Tags

No tags yet.