WordPress.org

Ready to get started?Download WordPress

Forums

How to Resize Image from Uploaded featured image only (4 posts)

  1. cepplux
    Member
    Posted 1 year ago #

    I need help from anyone expert with wordpress function or know information about featured image.

    I want to resize or crop image are uploaded by featured images only or i want resize several image for thumbnail only

    EXAMPLE

    domain/wp-content/upload/image1.jpg
    domain/wp-content/upload/image1-200x200.jpg
    domain/wp-content/upload/image1-50x50.jpg
    domain/wp-content/upload/image2.jpg
    domain/wp-content/upload/image3.jpg

    Note: i dont want to resize more image in same post/article example image 2 , 3 ,4 , 5 ,6 and first image use for thumbnail.

    Thanks for yout attention

  2. cepplux
    Member
    Posted 1 year ago #

    I use bellow code but all image are re-sized. it is not for featured image only.

    add_theme_support( 'post-thumbnails', array( 'post' ) );
    set_post_thumbnail_size( 50, 50, false);
  3. cepplux
    Member
    Posted 1 year ago #

    are any plugin can help me ? to make thumbnail for choosen / spesific image

  4. paulwpxp
    Font hero
    Posted 1 year ago #

    By default, every image uploaded to WP will be cropped to these sizes:

    Thumbnail = 150px
    Medium = 300px
    Large = 1024px
    Full = original

    If the original is smaller than any size, it won't be enlarged. You can not tell WP to not crop it, but you can change the sizes in Media Settings. So if you don't want 300px, you could enter 150px there.

    For your question in particular, you are not required to set post thumbnail size to 50px. You can change the Thumbnail size in Media Settings from 150px to 50px. The other two default sizes, that you don't want, you could also put in 50px.

    This will result in having 2 sizes for every image uploaded, original and 50px.

Topic Closed

This topic has been closed to new replies.

About this Topic