How to disable "resize" thumbnail for featured image

Posted in: ionMag
Post count: 3

Thank you for making an awesome theme for free!
I just changed my theme to ionMag. I don’t want to resize thumbnails on any featured image of my posts, because the resized thumbnail has a bigger size.
for example: the featured image (700px x 350px) size is 4KB. and the thumbnail size (300px x 220px) is 47KB. It becomes a little bit slow when the user opening my website.

how do I disable it?

  • This topic was modified 1 year by  odieardhia. Reason: typo
Alin V.
Post count: 335

Hi,

All the uploaded images are copped so the thumbs can be used on modules/blocks. You will need to optimize your images, you could use a plugin for this, unfortunately I cannot recommend one you will need to test. Or as an alternative you could use this code in functions.php:

add_filter( 'jpeg_quality', create_function('', 'return 50;' ) );

After you add the code you need to regenerate the thumbs, for that you could use the Force Regenerate plugin.

Thanks!

Post count: 3

Thanks for the advice, but I have changed some files:
\includes\td_config.php
\includes\modules\td_module_1.php
\includes\modules\td_module_2.php
\includes\wp_booster\td_util.php

And add an option in “Theme Panel>>Block Settings>>Thumbs on Modules/Blocks”, so it looks like this:
http://prnt.sc/e8majk

it works fine.

Viewing 3 posts - 1 through 3 (of 3 total)
The forum ‘ionMag’ is closed to new topics and replies.