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?
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
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.
can I set a minimum height on a resize?
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.
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!
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?
You must be logged in to reply to this topic.
Are you a blogger, web designer, developer, or website owner looking to generate more income?
Promote products for the largest and fastest growing online website platform as part of our affiliate program.