Image sharing method and mobile device
AssigneeHuawei Technologies Co., Ltd.
InventorJingguo Xu
Life of this patent
Estimating the term…
Abstract
An image compression method includes: starting a social media application to enter an interface for inputting a to-be-posted content; when an operation for adding an image is detected, displaying a first image in the interface; and when an operation for posting the first image is detected, in response to the operation, performing differential compression on the first image to obtain a second image, and sending the second image to a server corresponding to the social application. The method enables an electronic device to perform differential compression on the image and post the compressed image on a social media platform.
Claims20
An image sharing method implemented on an electronic device that includes a display 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 a 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 on the interface for inputting the to-be-posted content, wherein the first image comprises an image saved in the electronic device before the first operation, or a picture shot by a camera after the first operation;
- detecting a fourth operation for posting the first image in the social application;
- and
- in response to the fourth operation, performing differential compression on the first image 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 obtained by compressing a third area on the first image in a first compression ratio, wherein the third area is an area on the first image in which at least one target object is located;
- the second area is an area obtained by compressing a fourth area on the first image in a second compression ratio, wherein the fourth area is an area on the first image other than the third area;
- and
- the first compression ratio is less than the second compression ratio, and the at least one target object comprises a person, an animal, a plant, an object, or a building.
A mobile device, comprising:
- a display, one or more processors, a memory, one or more applications, and one or more programs, wherein the one or more programs are stored in the memory, the one or more programs comprise an instruction, and when the instruction is executed by the mobile device, the mobile device is enabled to perform the following steps:
- detecting a first operation for starting a 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 on the interface for inputting the to-be-posted content, wherein the first image comprises an image saved in the mobile device before the first operation, or a picture shot by starting a camera after the first operation;
- detecting a fourth operation for posting the first image in the social application;
- and
- in response to the fourth operation, performing differential compression on the first image 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 obtained by compressing a third area on the first image in a first compression ratio, wherein the third area is an area on the first image in which at least one target object is located;
- the second area is an area obtained by compressing a fourth area on the first image in a second compression ratio, wherein the fourth area is an area on the first image other than the third area;
- and
- the first compression ratio is less than the second compression ratio, and the at least one target object comprises a person, an animal, a plant, an object, or a building.
A mobile device, comprising:
- a display, a camera, one or more processors, a memory, one or more applications, and one or more programs, wherein the one or more programs are stored in the memory, the one or more programs comprise an instruction, and when the instruction is executed by the mobile device, the mobile device is enabled to perform the following steps:
- detecting a first operation for starting a social application;
- displaying an initial interface of the social application;
- detecting a second operation for entering an interface for inputting a to-be-posted content;
- displaying the interface for inputting the to-be-posted content;
- detecting a third operation for adding an image obtained by starting a photographing application;
- in response to the third operation, displaying a viewfinder interface on the display, wherein the viewfinder interface comprises a preview image, and the preview image comprises at least one to-be-shot object;
- in response to a fourth operation of confirming photographing, shooting a first image, wherein the first image is an image obtained by performing differential compression on the preview image;
- displaying the first image on the interface for inputting the to-be-posted content;
- detecting a fifth operation for posting the first image;
- and
- in response to the fifth operation, sending the first image to a server corresponding to the social application, wherein
- the first image comprises a first area and a second area, and the at least one target object is at least one object in the at least one to-be-shot object;
- and
- the first area is an area obtained by compressing a third area on the preview image in a first compression ratio, wherein the third area is an area on the preview image in which the at least one target object is located;
- the second area is an area obtained by compressing a fourth area on the preview image in a second compression ratio, wherein the fourth area is an area on the preview image other than the third area;
- and the first compression ratio is less than the second compression ratio.
Dependencies are inferred from the claim text.