Open your themes functions.php file and add your image size:
Example:
add_image_size('slider', 525, 339, true);
Breakdown of the code:
'slider'
= The name of the new image size (use this when adding the new image size to your template file).
525
= The image width
339
= The image height
true
= The image will be cropped to the exact dimensions listed.
Usage:
Use a current template (index.php, single.php, etc.), or create your own. Place this inside the loop (usually just after the_title();
) :
the_post_thumbnail('slider');
Now when you add a page or post that uses the template you added the code above, use the featured image option to upload an image. It will output to the size you've created.
Note:
This will only apply to newly uploaded images.