EDIT: This actually isn’t working, a coincidence the resized image was divisible by 18.
I’ve made some progress with this, its not pretty, but its working-ish.
I added the following to wp-includes/media.php at ~line 305
//adhere to basline grid
if($new_h % 18) {
$new_h = $new_h;
} else {
$new_h = floor($new_h/18) * 18;
}
This works on the large scale image which is included in the article, but has no effect on the thumbnail image. Any ideas?