The Problem:
This challenge comes from a real problem I was having. I have a dual monitor setup at work, and I wanted to use the following image as my wallpaper:
However, my monitors have quite significant bezels, and when I set my background, it looks something like this, where the pier appears (appiers?) to be broken:
I was able to solve this by making an image with the center cut out of it, and then stretching it back to the original size, as in the image below:
The Challenge:
Write a program that takes in an image and "monitorizes" it for use with a dual monitor setup (i.e. deletes the center section of the image, where the bezels are). The rules are as follows:
- It must be a full program that accepts the image, either as a path (string argument, etc), or in the form of a file chooser dialog.
- The program must take as an input the number of vertical lines (one pixel in width) to crop out from the center of the image
- The cropping must come from the center (width-wise) of the original image
- The resultant image must be re-scaled back to the original size of the input image. (Either the halves can be scaled individually, and then concatenated, or concatenated and then scaled. Scaling individually produces a better image/effect, but is hardly noticeable in the real world)
- Background images are generally even, so to make this challenge easier, input images will only have an even number of pixels, and number of lines to remove will only be even as well.
- This challenge is code golf - shortest code in bytes wins
Good Luck!


