Forums

option to disable image resizing? (10 posts)

  1. jillesvangurp
    Member
    Posted 4 years ago #

    I've been playing with the new wordpress 2.5. Overall great improvement. I have one nagging issue though: when I upload a photo with the new media gallery it is automatically downsized to 500 pixels width. There's a full size option there but it appears wordpress interprets that as the downsized version.

    Basically I don't want wordpress to ever resize photos for me. My theme is flexible enough to nicely handle photos that don't fit in the column (flexible layout of course). Generally, I resize to a suitable size (in bytes rather than pixels) before uploading, typically that is way more than 500 pixels for me since that just looks tiny on a modern screen.

    Is this possible or do I need to upload manually to work around this bug (not a feature IMHO)?

  2. pemedia
    Member
    Posted 4 years ago #

    I have the same problem and I would be pleased if there was a solution for it..

  3. Otto
    Tech Ninja
    Posted 4 years ago #

    Add this to your theme's functions.php file:

    $GLOBALS['content_width'] = 500;

    Change "500" to the maximum width you want an image to display on your page at. The idea here is to prevent the image from messing up the theme display by being too wide.

  4. jillesvangurp
    Member
    Posted 4 years ago #

    Nice as a workaround but the same could be achieved by changing the css width. Image resize should always be optional. For photos it is not so visible but e.g. screenshots really suffer from resizing.

    I think this should be considered a bug and not a feature.

  5. mindshare
    Member
    Posted 4 years ago #

    Definitely a bug - should be fixed in future versions.

  6. cathy1099
    Member
    Posted 4 years ago #

    I'm having the same problem and it's driving me nuts. Unfortunately, my theme doesn't have a functions.php file. How else could I stop WordPress from resizing all the screenshots, etc. that I carefully made 600px wide?

  7. cathy1099
    Member
    Posted 4 years ago #

    Replying to my own comment: Just because my theme doesn't have a functions.php file doesn't mean I can't add one. Problem solved.

  8. elanaspantry
    Member
    Posted 4 years ago #

    why is wordpress resizing images at all???

    you can't just change the width without changing the height as well...

  9. the_producer
    Member
    Posted 3 years ago #

    No matter what I do, all the solutions I've tried have not worked, I still end up with squished images. Awesome.

  10. popac
    Member
    Posted 3 years ago #

    Working...ty Otto.

    Now I have 2.6.2 and still must change functions.php file, not fixed yet.

Topic Closed

This topic has been closed to new replies.

About this Topic