Limit Thumbnail Generation

Posted in: Newspaper
Post count: 34

Is there a way to limit thumbnail generation so that the different thumbnails only generate for featured images instead of each and every photo uploaded? They’re putting a load on my server, but I’m afraid to turn certain sizes off on the chance that I change which blocks I use and then images will be missing.

Post count: 9544

Basically create a strategy of the images thumbs you will actually need based on the block sizes actually used, plan to perhaps use more of the same module/block than a whole bunch, then turn off all the image sizes for blocks you’re not using from the theme panel.

Also, trick we use here is making the two smaller sizes in the WP > admin > media the same as the most popular block sizes, which cuts two sizes out of the images also.

Upshot, if you have 5 thumbnail sizes used, you will get 5 thumbs made for each image uploaded.

Also, another trick we use here, for images ONLY placed inside of posts, we just FTP them to our media folder, and then just load them by name in the HTML of the post. 🙂

Post count: 34

Do you know which file has the thumbnail generation function? we want to create a hack that just does it for the featured images

Post count: 34

Also– where do the thumbnails with ‘0’s in the dimensions (ex. 1068×0) show up?

Post count: 23312

Hello slashedbeauty,

All the thumbs used by the theme are created in td_config.php through API method as you can see here -> http://screencast.com/t/j6v39UycSoH and here -> http://screencast.com/t/DmrlCGPTneU you can see a list where you can know where each kind of thumb is used in the theme. If you want to create your own thumb/block, you have to implement it, according to our documentation here -> https://forum.tagdiv.com/td_api_thumbadd/ -> https://forum.tagdiv.com/td_api_blockadd/ Please notice that is not a simple task and it addresses only for advanced users. If you want to display more levels in our theme and if you are not aware to the steps in this regard, please consider hiring a freelancer/developer to do this for you because we cannot provide customization services at the moment, sorry!

Thank you for your understanding!

Post count: 34

What about the thumbs with a height of 0? Where are those used?

Post count: 23312

Hello

In our theme exists two type of thumbs -> one with height 0 and the other one with height 0 value as you can see here -> http://screencast.com/t/IHaFpB1mcda. The thumbs with a height of 0 are used in Post template 3,4,9,10 and smart list style 1,2,5,6,7,9 and the thumbs with width 0 are used only in tagDiv Image Gallery. For these kinds of thumbs are used value 0 for width or height because in theme these parameters are dynamic and change their values as the case.

Thank you for the message!

Post count: 30

Hi slashedbeauty

I have the same problem. It’s insane to generate thumbnails for all images while only featured ones uses them.
I have almost 3000 post published so far and several have also 2 o 3 images in the content. So I have more than 30000 images in the server!!!!
I was wondering if you have come out with a solution. Some kind of hack that can point me in the right direction.

Thanks

Silvia

Post count: 9544

My original answer is still valid.

Viewing 9 posts - 1 through 9 (of 9 total)
You must be logged in to reply to this topic.