• Hi,

    I have a question. Is there any option to increase the width of uploaded images in WordPress?
    Is there any plugin or way to do that?

    I want to make all images on my website at width 1200 px or the best only images which are selected as Featured Images in the posts.

    I was looking for solution over a week, but still no clue.

    Thank you.
    Regards,
    Jakub

    • This topic was modified 3 years, 7 months ago by Jan Dembowski.

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hello,

    I would recommend this Smush plugin as you can resize all the image and compress and many more fearture in this plugin.

    https://www.ads-software.com/plugins/wp-smushit/

    I hope this plugin might help your issue.

    Thread Starter cosiek

    (@cosiek)

    Thank you.
    Unfortunatelly, I did check it and it only decreases the size to expected width. If I want to have image increased from 640 to 1200 and it is uploaded already it does not work.

    Appreciate if you have other ideas.

    Regards,
    Jakub

    Moderator bcworkz

    (@bcworkz)

    If the source image file is 640px wide, increasing it to 1200px would cause the image quality to suffer, as the expansion routine would be creating pixels out of nothing. These days there may be some sort of AI based process that does a better job of this, but using the usual image processing tools available to us like ImageMagick or PhotoShop, quality will suffer.

    If you’re willing to let the browser’s graphics engine do the upsizing, you can specify the normal 640px image source and use CSS to have it displayed at 1200px. IME, most site owners would be unhappy with the results.

    What you really should do is obtain a high resolution source image and downsize it to the desired 1200px.

    Thread Starter cosiek

    (@cosiek)

    Thank you.
    Absolutely agree with you. The case is too be inline with Google requirements and have at least 1200px width featured images, which within time will replace with proper resolution and quality ones.

    Not sure if still is there any option to have original image in version bigger than uploaded.

    Regards,
    Jakub

    Moderator bcworkz

    (@bcworkz)

    It’s somewhat theme dependent, but often you can resize the image’s div container to make it any size you want and the image will expand to fill it, even at the cost of poor image quality. Typical HTML:

    <div class="featured">
      <img src="https://example.com/wp-content/uploads/640wide.jpg" />
    </div>

    With this CSS:

    img { max-width: 100%; }
    div.featured { width: 640px; }

    If you changed the div width to 1200px, the 640wide.jpg image will be up scaled. However, your theme manages featured image size by height, not width, but the same concept applies. In any case, you cannot make something bigger if there is an outer container constraining the size. Well, you could allow overflow, but you don’t want to go there ??

    Thread Starter cosiek

    (@cosiek)

    Thank you for meessage.
    Yes, but case is to have the image in this width on server physically; not in Frontend pushed with CSS.
    Let me know if I am in mistake.

    Regards,
    Jakub

    Moderator bcworkz

    (@bcworkz)

    The WP resizing scheme is configured to not utilize registered sizes that are bigger than the uploaded image. I don’t think there’s a good way to override this behavior.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Increase width of uploaded images in WordPress’ is closed to new replies.