• Resolved hifumi

    (@hifumi)


    I’m confused about the image sizing which is available in three different format via setting > media: thumbnail, medium and large sizes.

    Assume I uploaded an image to the media library, do the images get three new copies of these sizes or is it a CSS that scales the width and height?

    How do I call these sizes out when editing posts where I included <img src>? I want to grab the medium size and apply it to all of my posts.

    However, I could just modify the image sizes for all <img> tags in the CSS file but I’m afraid it’ll modify every single image tags outside the post boundary, plus I want to use media size tool available within WordPress.

    • This topic was modified 3 years, 10 months ago by hifumi.
    • This topic was modified 3 years, 10 months ago by hifumi.
Viewing 2 replies - 1 through 2 (of 2 total)
  • i got you. if you want to resize those thumbnail image via css, you can. you need to use this css for img.

    img{
      width: 100%;
      height: 400px;
      background-image: url('img_flowers.jpg');
      background-size: cover;
      border: 1px solid red;
    }

    hope you solve your problems.
    thanks,
    devecity

    Thread Starter hifumi

    (@hifumi)

    Thank you.

    I just checked out that WordPress does indeed make three new copies in the default setting within settings > media.

    I think it’s just better to resize it manually and make the image responsive friendly.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Image Size for Posts’ is closed to new replies.