Remember you added under function.php this:
add_image_size('professorLandscape', 400, 260, true);
add_image_size('professorPortrait', 480, 650, true);
You would call these pics like this:
<?php the_post_thumbnail('professorPortrait'); ?>
<img class="professor-card__image" src="<?php the_post_thumbnail_url('professorLandscape'); ?>" alt="">