You can create a new Bitmap with the proper size and draw the original
image to the new Bitmap. The code below will compress (or expand) the
original image to 100x130 pixels
Image i = Image.FromFile(filename);
Bitmap bmp = new Bitmap(100, 130);
using (Graphics g = Graphics.FromImage(bmp))
{
g.DrawImage(i, 0, 0, 100, 130);
}
For blank images you need to check if there are no bytes in the image
field, or maybe check for DBNull.Value if the field is empty (null).
Instead of creating a new bitmap in the code above you can use a default
image for indicating no profile image is available, and, something like
this:
Bitmap bmp = (Bitmap)Bitmap.FromFile(defaultimage);
Image i = GetImageFromDatabase(employeeId);
if(i != null)
{
using (Graphics g = Graphics.FromImage(bmp))
{
g.DrawImage(i, 0, 0, 100, 130);
}
}