Community Forums › Forums › Archived Forums › Design Tips and Tricks › Featured Widget Amplified Image Resizing
- This topic has 6 replies, 3 voices, and was last updated 13 years, 2 months ago by
Bill Murray.
-
AuthorPosts
-
January 3, 2013 at 2:55 pm #9273
JenniB
MemberHi,
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 80x80. Is there any way to have the plugin resize by height first and crop the width?
So I get a full 80x80 image?Thanks!
Jenn
January 3, 2013 at 2:59 pm #9277Ozzy
Memberthe 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
January 3, 2013 at 7:00 pm #9326JenniB
MemberThanks Ozzy,
yes, here is my functions.php line:
add_image_size( 'sidebar-featured', 100, 100, TRUE);
P.S. I changed to 100x100 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
January 3, 2013 at 7:06 pm #9328JenniB
Membercan I set a minimum height on a resize?
January 3, 2013 at 7:08 pm #9329Bill Murray
MemberYou'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.
January 3, 2013 at 7:30 pm #9339JenniB
MemberI 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!
January 3, 2013 at 7:39 pm #9344Bill Murray
MemberSorry, 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.
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.