Ready to get started?Download WordPress


Limit image width? (5 posts)

  1. Younghusband
    Posted 8 years ago #

    I am looking for a way to limit the width of images uploaded in WordPress, and no I don't mean thumbnails. Consider the following:

    90% of the images I post are 400px wide (to match the layout). Every once in a while I post a larger image and select Thumbnail in the WP admin. It would be great if when I select "No Thumb" WP would limit the size of an image to 400px wide so I don't have to resize the images manually every time.

    Anyone know of a hack for this?

  2. geoffe
    Posted 8 years ago #

    I highly recommend the Image manager plugin (and if you're so inclined, Lightbox 2).

    However, this plugin is simpler and perhaps more suited to what you want if it's just to control the size of the thumbnail --it's other main feature is to allow uploading multiple images. They do work in combination as well.

    Your other option is to go into inline-uploading.php and edit the thumbnail values. Image manager lets you set a default size from an extensive options page and the multiple-uploading plugin also gives you a field to enter the max height or width.

  3. Younghusband
    Posted 8 years ago #

    Thanks for the plugin suggestions, but the image-size I want to control isn't the thumbnail, but the actual image. As I said above I rarely use thumbnails. It would be nice to just upload any old 640px wide pic and have it automagically cut down to 400px wide.

  4. manstraw
    Posted 8 years ago #

    You could control how large it appears with css. It wouldn't actually be 400 px (or whatever), but it would be scaled down in the browser to appear that size. The advantage of this is it's theme dependent, and the original images would be untouched if you want them larger in another theme.

  5. geoffe
    Posted 8 years ago #

    That's not a problem. The image manager will work on either and the multiple upload plugin has seperate settings for the max length for both the original and the thumbnail. See here.

    Really, try testing both out.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.