Portfolio thumbnails all different sizes

I know you have addressed this issue before, but my portfolio thumbnails are all different sizes.

I have used the previous fix that has been posted on the forum, using a custom developed plugin with thumb regen, but it has not worked. (I am also using WP SMUSH to optimise all images).

Is there a way to force them to neatly align in a grid format?