Featured Widget Amplified Image Resizing

Community Forums Forums Design Tips and Tricks Featured Widget Amplified Image Resizing

This topic is: not resolved

This topic contains 6 replies, has 3 voices, and was last updated by  Bill Murray 1 year, 11 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #9273

    JenniB
    Participant
    Post count: 19

    Hi,

    I’m using the Featured Widget Amplified plugin on my sidebar here: http://infomediallc.com/outfit/

    As you can see my images are being resized, but by width as the primary size. My featured image size is 80×80. Is there any way to have the plugin resize by height first and crop the width?
    So I get a full 80×80 image?

    Thanks!

    Jenn

    #9277

    Ozzy
    Participant
    Post count: 214

    the link didn’t work, but what does your functions.php look like?

    is should look like this if you want a hard crop:
    add_image_size ( 'whatever_your_thumb_is', 80, 80, true);
    for more info, try looking at http://codex.wordpress.org/Function_Reference/add_image_size


    #9326

    JenniB
    Participant
    Post count: 19

    Thanks Ozzy,

    yes, here is my functions.php line:

    add_image_size( ‘sidebar-featured’, 100, 100, TRUE);

    P.S. I changed to 100×100 image size but still have same issue.

    This has resized the image based on its width. I would like to resize it based on its height and then crop the width. I saw the link you gave me but that doesn’t explain how to resize by height first.

    Thanks

    #9328

    JenniB
    Participant
    Post count: 19

    can I set a minimum height on a resize?

    #9329

    Bill Murray
    Participant
    Post count: 575

    You’re going about it in the right way but missing a step. After you change the image sizes your theme supports, you need to generate thumbnails, using a plugin like this one.

    Whether you want 80 x 80 or 100 x 100 thumbnails on your blog page, edit your child theme’s functions.php, adjust your widget, then regenerate your thumbnails.

    Hope that helps.


    Web: https://wpperform.com or Twitter: @wpperform

    We do managed WordPress hosting.

    #9339

    JenniB
    Participant
    Post count: 19

    I tried that Bill using the Ajax Thumbnail plugin you gave me, but no go. You should know that these images being shown are wider than they are tall, so the proportional resize shown in the sidebar is accurate but how do I get it to show a minimum of 100 px high?

    Thanks for your help!

    #9344

    Bill Murray
    Participant
    Post count: 575

    Sorry, I misunderstood. I overlooked the comment about your sidebar. Have you tried setting a new image size that has a height of 100px and a width that is proportional? You’d then do the steps I outlined – change the image size, change the widget to use that new image size, then regenerate. If you want an image that is a minimum of 100px high, you have to have an image size that supports that. Won’t a 100px high image have to be over 200px wide to be proportional to the images you already have? Is that the look you want for your sidebar?


    Web: https://wpperform.com or Twitter: @wpperform

    We do managed WordPress hosting.

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.