1. A method for image compression, the method comprising: converting, by an image processor, an image to a halftoned image, wherein one or more halftoned lines in the halftoned image comprise one or more pixels; generating, by the image processor, a first transformed image from the halftoned image based on shifting of the one or more pixels, associated with the one or more halftoned lines in the halftoned image, by a first value; generating, by the image processor, a second transformed image from the first transformed image based on shifting of the one or more pixels, associated with the one or more halftoned lines in the first transformed image, by a second value; and generating, by the image processor, a compressed image based on compression of the second transformed image, wherein the compressed image is stored in a storage device.