• Resolved anonamix

    (@anonamix)


    Back in version 2.2.1 a full thumbnail was loaded in the widget. This allowed the use of CSS to set a certain height or width and have the other set to auto creating a scaled image that could fit into a sidebar. Example:

    img.wpp-thumbnail {
    height: 100%;
    width: 160px;
    }

    In the newer versions, the thumb is cropped prior to loading based on the set dimensions, with seemingly no control over what is being cropped out. Is possible to get the old functionality of having the full image loaded or a scaled version loaded instead of cropped?

    https://www.ads-software.com/plugins/wordpress-popular-posts/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Hector Cabrera

    (@hcabrera)

    Hi there,

    The problem with that approach is that you’re loading full-size images just to display a thumbnail, which in most cases is far from ideal. Logic dictates that thumbnails should be small images to help reduce the loading times of the site.

    Have you tried changing the size of the thumbnail on the widget and then use CSS to scale it?

    Thread Starter anonamix

    (@anonamix)

    Sorry, yep. Figured out my mistake. I was setting width at 160px in the widget settings, but if I set both dimensions higher than that of any of the images being loaded then it worked just fine.

    Thread Starter anonamix

    (@anonamix)

    I guess I’m making this a feature request then ?? It would cool if we could set height or width to ‘auto’ in the widget settings and have the images load scaled down instead of cropped so that load times would be faster.

    Plugin Author Hector Cabrera

    (@hcabrera)

    Sorry, yep. Figured out my mistake. I was setting width at 160px in the widget settings, but if I set both dimensions higher than that of any of the images being loaded then it worked just fine.

    No problem, glad I could help ??

    It would cool if we could set height or width to ‘auto’ in the widget settings and have the images load scaled down instead of cropped so that load times would be faster.

    This would need some experimenting to make sure it works on most themes out there, which is the real challenge here. I could also try to add a “don’t crop, just resize” sort of option, what do you think? Anyways, I’ll see what I can do but no promises here ??

    Thread Starter anonamix

    (@anonamix)

    That could work. I think most people who use the widget have it in a sidebar, so they need to have a set width so that the images fit. Then they either want a set height (crop) or automatic height (scaled). So if we can get the images to load scaled down to a set width, that would be great.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Scale thumbnails instead of cropping?’ is closed to new replies.