Are you going to change the aspect ratio of the image? Your original image is a 3x4 ratio, where your new image is not. If you resample the entire image, it will look squished.
Would it work to just take a subset of the original image? In this case, just extract the image array and take a subset of it.
Never mind on removing the lines you don't need. This only works when you want every 2nd, 3rd, etc. line of the image.
If you only need to do this once, use a paint program to do it well.
If you are going to resample the entire image, it will be messy programming to write. There isn't a real simple way to do resampling that will look good.
Bruce
Bruce Ammons
Ammons Engineering