404 Error for Some Image Size

Posted in: Newspaper
Post count: 73

Prior to Newpaper we have different theme and we used force regenerate thumbnails plugin to generate new thumbnails for newspaper theme.

Now, force regenerate plugin deleted all previous thumbnails except what newspaper required. We are now getting error for three thumbnails ending with -310×165.jpg & -70×70.jpg & 600×330.jpg

Is there any way to define them in some function file so that force regenerate thumbnails plugin will not delete them.

We are using newspaper 8.

Post count: 23312

Hello lethow,

Please check this section of our Theme panel here -> https://www.screencast.com/t/NvgRf9yYd because there you will see what kind of thumbs our theme uses. Notice that your thumb’s dimensions are not using the theme and if you want to declare them in our theme you should add it only through the code in the td_config.php file. Notice that is not a simple task and if you are not aware of the steps which are needed to take in this regard, please consider hiring a freelancer/developer to help you because we cannot provide custom services at the moment, sorry!

Thanks for your understanding!

Post count: 73

Thank you for the quick response, please note that i dont want to use different thumbnails…i only want that when we generate thumbnails then force regenerate plugin dont those size and if someone gave reference to that image then 404 error wont come to us..
td_api_thumb::add(‘td_324x160’,
array(
‘name’ => ‘td_324x160’,
‘width’ => 324,
‘height’ => 160,
‘crop’ => array(‘center’, ‘top’),
‘post_format_icon_size’ => ‘normal’,
‘used_on’ => array(
‘Module 1, 2’, ‘Block 2, 3, 4’, ‘Big grid 2’
),
‘no_image_path’ => td_global::$get_template_directory_uri,
)
);

Can i use the code below from above modified code so that force regenerate plugin only generate those specific size and wont use them in theme or any where else…

td_api_thumb::add(‘td_310x165’,
array(
‘name’ => ‘td_310x165’,
‘width’ => 310,
‘height’ => 165,
‘crop’ => array(‘center’, ‘top’),
‘post_format_icon_size’ => ‘normal’,
)
);

Or these arrays defined somewhere else also..??

Post count: 23312

Hello lethow,

Sorry for this but please notice that what you are trying to do is to create a new thumb which crops the images on that sizes. Notice that is not a simple task and if you are not aware of the steps which are needed to take in this regard and if you do not know what files are needed to be edited and what custom code is required for this, please consider hiring a freelancer/developer to help you because we cannot provide custom services at the moment, sorry!

Thanks for the message!

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