1. A method comprising: obtaining, by a printing device, a×b pixel macro-cells for each of a luminance plane, a first color plane, and a second color plane of an input image, wherein the a×b pixel macro-cells each contain 4 non-overlapping m×n pixel cells, and wherein pixels in the a×b pixel macro-cells have respective pixel values; determining, by a processor of the printing device, whether at least e pixels in the a×b pixel macro-cells represent edges in the input image, wherein e is at least 1; based on whether at least e pixels in the a×b pixel macro-cells represent edges in the input image, selecting, by the processor of the printing device, either a first encoding or a second encoding of the a×b pixel macro-cells, wherein the first encoding weighs some pixels that represent edges in the input image heavier than pixels that do not represent edges in the input image, wherein the second encoding does not consider whether pixels represent edges in the input image, and wherein the first encoding is the selected encoding; performing, by the processor of the printing device, the selected encoding, wherein performing the selected encoding comprises (i) downsampling blocks of pixels in the a×b pixel macro-cells of the first color plane and the second color plane to form a first downsampled m×n pixel cell for the first color plane and a second downsampled m×n pixel cell for the second color plane, wherein the downsampling weighs pixels that represent edges in the input image heavier than pixels that do not represent edges in the input image, and (ii) encoding a transform of the 4 non-overlapping m×n pixel cells of the luminance plane, the first downsampled m×n pixel cell, and the second downsampled m×n pixel cell; and writing, by the processor of the printing device, a representation of the selected encoding, as performed, to a computer-readable output medium.