WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Size up images to max width

[Resolved] Size up images to max width

Viewing 1 replies (of 1 total)
  • Plugin Author jepsonrae
    Member

    @jepsonrae

    Hi,

    That is something that would be possible, however it isn’t really the best way to go about it and as such I don’t think we’ll put it into the plugin.

    The reason for this is because the image resizing process we use is destructive, in that it destroys the original image to save space. Down-sizing mega-large images to decently-large images isn’t really a problem as you are simply preventing the mega-large images being on your server. To them resize images for posts, you should use some other plugin or library like timethumb.php, or use WordPress’ built=in image resizing.

    If we were to perform up-scaling, you would end up with a very blurry image, and have no way to retrieve the original which you may require at a later date.

    The best thing would be to use either simple CSS to perform the up-scaling:

    img { min-width: 200px; height:auto; }

    Or to use an on-the-fly image resizing script such as timthumb.php to up-scale images without destroying the original.

    My preference would be the CSS method as it’s quick and efficient and doesn’t mess about creating temporary images on the server.

    I hope that helps,
    Phil

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] Size up images to max width’ is closed to new replies.