Jasmine walks from the school to the post office, which is a distance of $2 - (-4) = 6$ blocks horizontally and 0 blocks vertically, so the distance is 6 blocks. Then she walks from the post office to the library, which is a distance of $2 - 2 = 0$ blocks horizontally and $-4 - 1 = -5$ blocks vertically, so the distance is 5 blocks.
The total distance of Jasmine's walk is the sum of the distances of each leg of her journey, which is $6 + 5 = 11$ blocks. Therefore, Jasmine walks 11 blocks in total.