WordPress.org

Ready to get started?Download WordPress

Forums

How to resize uploaded image from original (300x200) to featured (350x200)? (2 posts)

  1. term25
    Member
    Posted 1 year ago #

    Currently this code in functions.php is working good only for at least 350px wide images but for everything smaller say 300px it will not resize it correctly to 350x200, but stay on 300x200:

    add_image_size( 'featured', 350, 200, true );

    How to force WP to resize it even my uploaded image is smaller than the resized proportions. I guess I need to adjust some core function for resizing.

    Any advice?

  2. Max
    Member
    Posted 1 year ago #

    WordPress will not upscale images... only downscale. Upscaling is usually a bad idea visually as it destroys the images sharpness.

Topic Closed

This topic has been closed to new replies.

About this Topic