• upload 400×800 pic via media. go into edit, crop only the top half (so now thumbnail is 400×400). i select it as a feature image.

    in code, add_image_size( ‘test’, 200, 200, true );
    and it displays a 200×200 of the full original image (400×800) not the cropped 400×400 thumbnail that i selected it as

    any ideas how to fix so it displays feature from the thumbnail not original?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter babooza69

    (@babooza69)

    searched the forum quite a bit, seems like some other pple have this problem, but not a solid fix. any ideas?

    Are you sure you are clicking on the right buttons? Look at this picture:

    https://tinyurl.com/cpc2zna

    In this picture, there are three links/buttons to click: You need to click on the first one that says insert into Post.

    It looks like you are clicking into the second button that says “Use as featured image” or you are not clicking anything and so the application is using the default action!!!!

    Hope this helps.

    Thread Starter babooza69

    (@babooza69)

    yes i am sure i am clicking the right button…

    Thread Starter babooza69

    (@babooza69)

    any other suggestions? how can i have the add_image_size select from thumbnail not the original?

    any other suggestions? how can i have the add_image_size select from thumbnail not the original?

    Have you tried resizing the image to correct size before uploading it? You can use Fireworks or Photoshop to do this and the quality of your image will be preserved.

    hth

    Thread Starter babooza69

    (@babooza69)

    i am actually a graphics designer by nature, i don’t want to resize before uploading

    The idea of having a cropped image is to upload two images: 1) for the feature image – this is normally the correct size;

    2) The original image (un-cropped): This is used to create a link to so that when your users click on your thumbnail, they get a full image in the same window or in another window/tab.

    Can you post one of your images online so that I create an example page to show you how this is done.

    Hope you can do this.

    Why not change the thumbnail or medium image size in Settings > Media, then you can call it like:

    if(has_post_thumbnail()) {
    	the_post_thumbnail('thumbnail');
    }

    Or:

    if(has_post_thumbnail()) {
    	the_post_thumbnail('medium');
    }

    These images are created by WordPress so you can change the size to whatever you want, unless it is for a client, then you could change the default image sizes in code.

    Another option is to get the featured image (400 * 400) and set the width to 50% 200px * 200px this should resize the image proportional.

    if(has_post_thumbnail()) {
    	the_post_thumbnail( array(200,200) );
    }

    HTH

    David

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘cropped thumbnail become featured image?’ is closed to new replies.