Patent ID: 7978922

Claim:
A computer-implemented method for compressing images stored in a document, comprising: utilizing a processor on a computing device, accessing an image within the document; wherein the document includes other data in addition to the image; determining from the document whether an automatic compression feature is turned on; classifying the image; automatically determining a plurality of compression steps for the image to be applied at a first time; automatically applying the plurality of compression steps to the image at the first time; determining that the compressed image is manipulated after the plurality of compression steps are applied to the image at the first time by a user performing a resize operation such that the compressed image is resized; setting a flag indicating that the compressed image has been modified; and in response to saving the document checking the flag and performing an additional compression step of resampling the compressed image at a second time according to a new size of the resized compressed image when the flag indicates that the compressed image has been modified.