You can default image size in admin-panel af yours WordPress site. For this go to Settings -> Media and set a new image size.
But what if it needs to be done in the code of your theme or plugin? The functions below will allow you to solve this issue.
First, you need to disable the default thumbnail sizes:
add_action( 'after_setup_theme', 'remove_plugin_image_sizes' ); function remove_plugin_image_sizes(){ remove_image_size('image_size_name'); }
And after that, register this same thumbnail but with new dimensions:
add_action( 'after_setup_theme', 'remove_then_add_image_sizes' ); function remove_then_add_image_sizes(){ add_image_size( 'image-size-name', 200, 200, true ); }