296 posts
  • Has been part of the Envato Community for over 2 years
  • Sells items exclusively on Envato Market
crossroad says

I’m working on a theme which has been purchased from themeforest. It has defined 13 custom image sizes, so when I upload an image, it creates 13+3 (default WordPress sizes) = 16 copies of a single image. Now just imagine 1000 posts with featured images, it means 16,000 images!

I think this is very bad approach as it requires a lot of server resources. What’s the best way to handle this? How many image sizes are considered ‘normal’?

PS. This is not any support question, just a general discussion.

3576 posts Ruben Bristian
  • Sells items exclusively on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $500,000+ on Envato Market
  • Has been part of the Envato Community for over 6 years
+10 more
KrownThemes says

That’s why you need an external plugin such as aq_resize for image resizing. Because if i want to provide 4 column types of portfolios(and don’t use css for resizing, which would be a bad practice), i can either use an image resizing plugin or make 4 custom image sizes. And the latter is crazy like you said..

So normal is just set the thumbnail size, then use an image resizing function to request sizes as you need them.

631 posts
  • Has been part of the Envato Community for over 3 years
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
ChapterThemes says

Also depends on the size of the image sizes the theme creates. If it are reasonable small sizes i think it’s not a big deal because it won’t be really large files.

In the end it’s less server load than requesting sizes as you need them.

So i would go for a little bit more space usage and less server load if possible

edit: But 16 different sizes is a bit much indeed…

3576 posts Ruben Bristian
  • Sells items exclusively on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $500,000+ on Envato Market
  • Has been part of the Envato Community for over 6 years
+10 more
KrownThemes says

In the end it’s less server load than requesting sizes as you need them.

If the images that you’re requesting are cached, then it’s less server creating images on the fly. aq_resize for example, creates the image and then keeps it in the images folder.. So the image is requested only once, because once it is created, it will be used by everyone. So it’s less server load this way..

631 posts
  • Has been part of the Envato Community for over 3 years
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
ChapterThemes says


In the end it’s less server load than requesting sizes as you need them.
If the images that you’re requesting are cached, then it’s less server creating images on the fly. aq_resize for example, creates the image and then keeps it in the images folder.. So the image is requested only once, because once it is created, it will be used by everyone. So it’s less server load this way..

You’re right about the server load, because they’re only created once.

And that’s also the reason there’s no real point in not using the add_image_resize function, because in the end you still have a lot of different images on the server – NOT as many as using the add_image_resize WP function. But if a theme already only needs a couple of different sizes i think it’s no issue it uses a bit more space.

So i think using a thing like aq_resize is only for a theme with many different sizes not used everywhere.

But i think there’s one benefit more when a user switches theme doesn’t it? Maybe there should be an option for it in a theme :)

3072 posts
  • Has referred 50+ members
  • Has sold $40,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Had an item featured on Envato Market
+5 more
wickedpixel says

It would be cool if that plugin gets somehow embedded inside the default wp_get_attachment_image function. to be compatible with themes that don’t have the plugin enabled.

158 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 50+ members
  • Has sold $1,000+ on Envato Market
  • Sells items exclusively on Envato Market
+1 more
greenshady says
Use this plugin to only create the image sizes that you actually use: http://wordpress.org/extend/plugins/dynamic-image-resizer/
by
by
by
by
by
by