1. A computer-implemented method for compressing an image, the method comprising: generating, by a processor, a watermark comprising a set of watermark coefficients representative of a set of truncated image data bits, the truncated image data bits comprising a set of least significant bits of image data representative of the image; generating a transformed image by converting a portion of the image data into a set of image coefficients in a frequency domain; embedding the generated watermark in the transformed image by modifying a subset of the image coefficients with the set of watermark coefficients to form a modified set of coefficients; and generating a modified image by converting the modified set of coefficients into a spatial domain, the modified image representative of both the portion of the image data and the generated watermark.