Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
You could break the problem into smaller problems like this:
1. Cut the image vertically into five pieces: two are blue, three are not blue.
2. Resize the blue pieces, enlarging them horizontally.
3. Append the five pieces together.
Is that what you want?
So, the smaller problem is determining where to make the cuts in (1). The image has roughly three colours: black, white and blue. After scaling to one row, each pixel either has some saturation (it is blue), or has no saturation. So threshold on some saturation. The border between black and white says where to make the cuts.