Support » How-To and Troubleshooting » auto reduce picture size

auto reduce picture size

  • I am a new wordpress blogger, i want to enable a feature in wp that when i insert a image inside a post the image size should automatically reduces to maximum width of 640 pixels ( if the width is more then 640pixel otherwise leave it )
    my blog adress is http://www.freemelo.com/ please suggest me a procedure to do that

    P.S. i want to reduce the image size instead of resizing the image bbia html code.

Viewing 3 replies - 1 through 3 (of 3 total)
  • esmi


    Forum Moderator

    Try adding:

    // set content width
    	if ( ! isset( $content_width ) ) $content_width = 640;

    to the top of your theme’s functions.php file. You can also set a mix-width on images using CSS.

    but it will not reduce the height in same propotion



    Forum Moderator

    You could try using height:auto; but ultimately this is not something that can be handled by coding for all images.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘auto reduce picture size’ is closed to new replies.