An image sharing method, applied to an electronic device that has a display (194; 2007) and on which a social application is installed, wherein the method comprises: detecting a first operation for starting the social application; displaying an initial interface of the social application; detecting a second operation for entering an interface for inputting to-be-posted content; displaying the interface for inputting the to-be-posted content; detecting a third operation for adding an image; displaying a first image (203; 801; 804; 1506; 1704) on the interface for inputting the to-be-posted content, wherein the first image (203; 801; 804; 1506; 1704) comprises an image saved in the electronic device before the first operation, detecting a fourth operation for posting the first image (203; 801; 804; 1506; 1704); and in response to the fourth operation, performing differential compression on the first image (203; 801; 804; 1506; 1704) to obtain a second image, and sending the second image to a server corresponding to the social application, wherein the second image comprises a first area and a second area, the first area is an area in which at least one target object is located on the second image, and the second area is an area other than the first area on the second image; the first area is an area obtained by compressing a third area on the first image (203; 801; 804; 1506; 1704) in a first compression ratio, wherein the third area is an area in which the at least one target object is located on the first image (203; 801; 804; 1506; 1704); the second area is an area obtained by compressing a fourth area on the first image (203; 801; 804; 1506; 1704) in a second compression ratio, wherein the fourth area is an area other than the third area on the first image (203; 801; 804; 1506; 1704); and the first compression ratio is less than the second compression ratio, and the target object comprises a person, an animal, a plant, an object, or a building, characterized in that the method further comprises: saving the second image, and displaying an identifier on the second image, wherein the identifier is used to indicate that the second image is an image obtained by compressing the first image (203; 801; 804; 1506; 1704). detecting a first operation for starting the social application; displaying an initial interface of the social application; detecting a second operation for entering an interface for inputting to-be-posted content; displaying the interface for inputting the to-be-posted content; detecting a third operation for adding an image; displaying a first image (203; 801; 804; 1506; 1704) on the interface for inputting the to-be-posted content, wherein the first image (203; 801; 804; 1506; 1704) comprises an image saved in the electronic device before the first operation, detecting a fourth operation for posting the first image (203; 801; 804; 1506; 1704); and in response to the fourth operation, performing differential compression on the first image (203; 801; 804; 1506; 1704) to obtain a second image, and sending the second image to a server corresponding to the social application, wherein the second image comprises a first area and a second area, the first area is an area in which at least one target object is located on the second image, and the second area is an area other than the first area on the second image; the first area is an area obtained by compressing a third area on the first image (203; 801; 804; 1506; 1704) in a first compression ratio, wherein the third area is an area in which the at least one target object is located on the first image (203; 801; 804; 1506; 1704); the second area is an area obtained by compressing a fourth area on the first image (203; 801; 804; 1506; 1704) in a second compression ratio, wherein the fourth area is an area other than the third area on the first image (203; 801; 804; 1506; 1704); and the first compression ratio is less than the second compression ratio, and the target object comprises a person, an animal, a plant, an object, or a building, characterized in that the method further comprises: saving the second image, and displaying an identifier on the second image, wherein the identifier is used to indicate that the second image is an image obtained by compressing the first image (203; 801; 804; 1506; 1704).