WordPress.org

Ready to get started?Download WordPress

Ideas

Image Sizes for Featured Images Only

  1. Louy Alakkad
    Member

    12345

    Whenever you add extra image sizes to your theme all of your newly uploaded images gets resized with the new sizes.

    I suggest that you give theme authors the option to choose that "this size is only for featured images". So whenever you upload an image it wont get resized to this "featured image" size. But when you choose to set it as a featured image in one of your posts it gets resized to that "featured image" size.

    This way you can save too much space. especially if your website have too many images and you only use part of them as featured images.

    Posted: 1 year ago #
  2. cathy700
    Member

    12345

    Excellent idea, i think it could save me a lot of space that way !

    Posted: 1 year ago #
  3. Louy Alakkad
    Member

    12345

    It will also mean that if you use old thumbnails in a new theme with different sizes the new sizes will be fixed automatically and you won't need to regenerate your entire library.
    This will save me too much effort as i have websites with 22000+ image in the library!

    Posted: 1 year ago #
  4. crstauf
    Member

    12345

    i may attempt to write a function that does this. i think all the necessary hooks are present, just a matter of getting them all put together. maybe creating a function will help integrate into core..?

    Posted: 1 year ago #
  5. crstauf
    Member

    12345

    whooo! here we go...

    GitHub: https://github.com/crstauf/WordPress-FeaturedImage-SpecialImageSize

    will not be providing support; code is tested on my local machine, and provided as-is. there are of course better ways of implementing, but this is what i was able to come up with quickly.

    Posted: 1 year ago #
  6. Louy Alakkad
    Member

    12345

    Well, your plugin inspired me to create something.

    This solves half of the problem (images will get re-sized when you choose them as featured), it's handy when you switch themes.
    https://github.com/louy/featured-image-resize

    The other half is to save space when it's not needed. Would be better if integrated into core.

    Posted: 1 year ago #

RSS feed for this topic

Reply

You must log in to post.

  • Rating

    12345
    6 Votes
  • Status

    This idea is under consideration